Commit 20864e45 authored by psachin's avatar psachin 🎮

Various changes

- Line number in code blocks having multi-line
- Center align text in about page
- Strike-out Google links
- FSF twitter link in about page
parent 6e8f3eb7
Pipeline #42221544 passed with stages
in 1 minute and 4 seconds
......@@ -3,15 +3,18 @@
#+ATTR_HTML: :class center no-border
[[file:../../images/about/isitme.png]]
#+ATTR_HTML: :style text-align:center
Developer, FOSS enthusiast, & avid GNU Emacs user.
#+ATTR_HTML: :class center no-border
[[file:../../images/about/rx_open_source.png]]
I try not to be biased with any programming language or technology.
I work on GNU/Linux and Free & Open Source Software for living. If
you are passionate about GNU and Free Software like me, I encourage
you to watch this [[https://www.youtube.com/watch?v=Er1pM9suxvE][YouTube video]] by Benjamin Mako Hill.
I work on GNU/Linux and Free & Open Source Software for living. I
prefer to use Google products at minimum and use [[https://duckduckgo.com/][duckduckgo]] to
search the Web using [[https://www.privateinternetaccess.com/][privateinternetaccess]] VPN service. If you are
passionate about GNU and Free Software like me, I encourage you to
watch this [[https://www.youtube.com/watch?v=Er1pM9suxvE][YouTube video]] by Benjamin Mako Hill.
** My work-space
......@@ -51,12 +54,13 @@
#+ATTR_HTML: :class center no-border
[[file:../../images/about/tools-server-small.png]]
[[https://www.gnu.org/software/emacs/][GNU Emacs]] and a terminal are the least I need.
[[https://www.gnu.org/software/emacs/][GNU Emacs]] and a terminal are the essential tools I need. However I
manage most of the shell tasks from Emacs.
I prefer to use latest Emacs version. My Emacs is heavily
[[https://gitlab.com/psachin/emacs.d][configured]] for all my needs from programming(Python, Django, C,
elisp, Ruby, shell etc.), blogs & note taking[[https://orgmode.org/][(org-mode)]], eshell,
tramp, [[https://magit.vc][magit]] etc. Recently I fell in love with =M-x
elisp, Ruby, shell etc.), blogs & note taking[[https://orgmode.org/][(org-mode)]], agenda,
eshell, tramp, [[https://magit.vc][magit]] etc. Recently I fell in love with =M-x
emacs-timemachine=. Terminal is occasionally needed to keep some
front-end jobs running.
......@@ -69,8 +73,8 @@
** More..
I find programming in =elisp= relaxing when I'm bored with Python
and friends. Though not much but I do write helper functions and
share it on [[http://sachin.pythonanywhere.com][sachin.pythonanywhere.com]].
and friends. Occasionally I do write helper functions and share it
on [[http://sachin.pythonanywhere.com][sachin.pythonanywhere.com]].
** Blogs
......@@ -85,7 +89,8 @@
** Talks/Presentations/Slides
All my presentation slides are pushed to
[[https://gitlab.com/psachin/slides][https://gitlab.com/psachin/slides]]. With few exceptions(Online):
[[https://gitlab.com/psachin/slides][https://gitlab.com/psachin/slides]]. With few exceptions()hosted
online):
- Freenode #live 2018: [[https://www.youtube.com/watch?v=FOZ2KZpl4OM][GNU Emacs for All]] [[https://gitlab.com/psachin/psachin.gitlab.io/blob/master/slides/gnu_emacs_for_all/index.org][(Org file)]]
- Red Hat forum: [[http://redhat.slides.com/psachin/rh-forum-2016][2016]], [[https://github.com/psachin/slides/blob/master/RH-forum/RedHatCloudForms-2017-Sachin.pdf][2017]]
......@@ -96,16 +101,14 @@
- [[http://psachin.github.io/py-starwars/][py-starwars]]: Introductory talk on Python programming language.
** Articles
*** Published on [[https://opensource.com/users/psachin][opensource.com]]
*** Other web portals
- [[http://www.csi-india.org/communications/CSIC%20July%202013.pdf][GNU/Linux on Aakash]]: An article published in CSI
communications(July 2013) on [[http://aakashlabs.org/gnu/][Aakash]] during my work at Indian
Institute of Technology Bombay.
- [[http://www.linuxquestions.org/linux/answers/hardware/configuring_huaweiec152_modem][Configuring Huawei-EC152 modem]]: My very first article appeared
on [[https://www.linuxquestions.org/][linuxquestions.org]]. I just started using GNU/Linux that time
and USB-modeswitch was also quite new.
- Posts published on [[https://opensource.com/users/psachin][opensource.com]]
- Posts published on other web portals:
* [[http://www.csi-india.org/communications/CSIC%20July%202013.pdf][GNU/Linux on Aakash]]: An article published in CSI
communications(July 2013) on [[http://aakashlabs.org/gnu/][Aakash]] during my work at Indian
Institute of Technology Bombay.
* [[http://www.linuxquestions.org/linux/answers/hardware/configuring_huaweiec152_modem][Configuring Huawei-EC152 modem]]: My very first article appeared
on [[https://www.linuxquestions.org/][linuxquestions.org]]. I just started using GNU/Linux that time
and USB-modeswitch was also quite new.
** Contact
......@@ -116,7 +119,8 @@
- [[mailto:iclcoolster@gmail.com][Email]]
** Social
You won't find me on Twitter, Whatsapp, [[https://www.fsf.org/facebook][Facebook]] & Linkedin.
#+ATTR_HTML: :style text-align:center
You won't find me on [[https://www.fsf.org/twitter][Twitter]], Whatsapp, [[https://www.fsf.org/facebook][Facebook]] & Linkedin.
#+ATTR_HTML: :class center no-border
http://static.fsf.org/nosvn/no-facebook-me.png
#+title: Boot2Gecko 1.5.0.0-prerelease build
#+author: Sachin
#+date: <2014-03-27>
#+keywords: firefox, b2g, keon
#+setupfile: ../org-templates/post.org
For impatient Geeksphone(Keon) users who want to try the latest
version of **Boot2Gecko** (Firefox-OS), I have compiled an pre-release
......@@ -45,7 +46,7 @@ Geeksphone(Keon v1, model: =qcom=).
- Download [[https://drive.google.com/uc?id=0B-PZvjWWRSpQcUF1dVJEc2s5V3M&export=download][zip]] and [[https://docs.google.com/file/d/0B-PZvjWWRSpQenNBX0dld0NIQ2c/][checksum]] files
- Verify the checksum using following command:
#+BEGIN_SRC bash
#+BEGIN_SRC sh
md5sum -c image-1.5.0.0-prerelease-keon-v1-2014-03-27.md5
#+END_SRC
......@@ -55,13 +56,13 @@ Geeksphone(Keon v1, model: =qcom=).
[[file:images/posts/b2g/gp-md5check.png]]
- Extract the zip file using:
#+BEGIN_SRC bash
#+BEGIN_SRC sh
unzip image-1.5.0.0-prerelease-keon-v1-2014-03-27.zip
#+END_SRC
- Visit the directory
=image-1.5.0.0-prerelease-keon-v1-2014-03-27= using:
#+BEGIN_SRC bash
#+BEGIN_SRC sh
cd image-1.5.0.0-prerelease-keon-v1-2014-03-27
#+END_SRC
......@@ -71,7 +72,7 @@ Geeksphone(Keon v1, model: =qcom=).
**Settings > Device information > More information > Developer > Remote debugging**
- Flash the image using:
#+BEGIN_SRC bash
#+BEGIN_SRC sh
bash ./flash.sh
#+END_SRC
......
#+title: Find bash function
#+author: Sachin
#+date: <2014-03-04>
#+keywords: bas, function
#+setupfile: ../org-templates/post.org
In this post I'll walk you through few commands which will help to
find the location & definition of Bash functions.
......@@ -19,19 +20,19 @@ can read the function definition and also find its location.
** Read function definition
=type= can be used to read function definition.
#+BEGIN_SRC bash
#+BEGIN_SRC sh
type -a <FUNCTION-NAME>
#+END_SRC
For example, I have a function called =mcd= to create new directory
and =cd= in to it. The following command will print the function
definition
#+BEGIN_SRC bash
#+BEGIN_SRC sh
type -a mcd
#+END_SRC
Output:
#+BEGIN_SRC bash
#+BEGIN_SRC shell -n
# mcd is a function
mcd () {
if [ "$#" -eq 1 ]; then
......@@ -48,7 +49,7 @@ Output:
I you enable shell debug ON USING =set -e=, you can still read a
function definition.
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
set -e
which mcd
#+END_SRC
......@@ -58,22 +59,22 @@ function definition.
In the similar way =declare= can be used to locate the function.
To locate the function, turn on shell debugging using
#+BEGIN_SRC bash
#+BEGIN_SRC sh
shopt -s extdebug
#+END_SRC
and then
#+BEGIN_SRC bash
#+BEGIN_SRC sh
declare -F <FUNCTION-NAME>
#+END_SRC
For example, to find =mcd='s location, type
#+BEGIN_SRC bash
#+BEGIN_SRC sh
declare -F mcd
#+END_SRC
Output:
#+BEGIN_SRC bash
#+BEGIN_SRC sh
mcd 51 /home/sachin/.bashrc
#+END_SRC
......@@ -81,7 +82,7 @@ Output:
/51/ is the line number in file =~/.bashrc= where =mcd= is defined.
Finally turn off shell debugging.
#+BEGIN_SRC bash
#+BEGIN_SRC sh
shopt -u extdebug
#+END_SRC
......@@ -89,7 +90,7 @@ Finally turn off shell debugging.
Its better to write a custom function(=whichf= in this case) using
above commands.
#+BEGIN_SRC bash
#+BEGIN_SRC shell -n
function whichf () {
if [ ${1} ]; then
shopt -s extdebug
......@@ -103,16 +104,16 @@ above commands.
#+END_SRC
Copy above function in =~/.bashrc= file and source the file using
#+BEGIN_SRC bash
#+BEGIN_SRC sh
source ~/.bashrc
#+END_SRC
Now call this function by typing
#+BEGIN_SRC bash
#+BEGIN_SRC sh
whichf <FUNCTION-NAME>
#+END_SRC
For example
#+BEGIN_SRC bash
#+BEGIN_SRC sh
whichf mcd
#+END_SRC
#+title: Change default org-mode HTML tags
#+author: Sachin
#+date: <2014-02-26>
#+keywords: emacs, org-mode, orgmode, html, tags
#+setupfile: ../org-templates/post.org
This brief post is result of a [[https://plus.google.com/110929313922902668537/posts/8FLNDvKc3sp][question]] posted by Icaro Perseo. He
......
#+title: Working with chroot environment
#+author: Sachin
#+title: Working on chroot environments
#+date: <2013-02-25>
#+keywords: linux, makefile
#+setupfile: ../org-templates/post.org
This post covers what is =chroot= and why to use it? It also provides
steps to create =chroot= environment.
As its =man page= says, /"it is used to run commands or an interactive
As its man-page says, /"it is used to run commands or an interactive
shell with special root directory"/. It provides an environment to
test new packages in a secured way without touching an actual system.
It can be called as a virtual system with isolated root(/)
......@@ -94,4 +95,4 @@ Linux environment.
:END:
- Visit the manual page - =man chroot=
- Guide to [[http://technoreview.net/2011/10/using-rootstock.html][rootstock]]
- Why FreeBSD prefers [[http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-intro.html][jail]] instead of `chroot`?
- Why FreeBSD prefers [[http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails-intro.html][jail]] instead of chroot?
#+title: Enable Kernel virtualization on Intel/AMD arch
#+author: Sachin
#+date: <2012-08-23>
#+keywords: linux, kernel, intel, amd, arch, virtualization
#+setupfile: ../org-templates/post.org
Enable *Kernel-based Virtual Machine* on your system.
......@@ -14,7 +15,7 @@ If you can see a output, means your hardware supports VT.
Next step is to load kernel modules(Irrespective of your processor
type)
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
sudo modprobe kvm_intel
sudo modprobe kvm
#+END_SRC
......
......@@ -9,7 +9,7 @@ How to manually install =ffmpeg= with =libmp3lame= encoder support.
Download and extract lame from [[https://sourceforge.net/projects/lame/?source=typ_redirect][https://sourceforge.net/projects/lame]]
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
cd lame-*
make
sudo make install
......@@ -17,7 +17,7 @@ How to manually install =ffmpeg= with =libmp3lame= encoder support.
** Clone and install ffmpeg
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
git clone https://git.ffmpeg.org/ffmpeg.git
./configure --enable-libmp3lame
make
......
#+title: 2 factor authentication and git
#+author: Sachin
#+date: <2018-03-29>
#+keywords: git, 2FA
#+setupfile: ../org-templates/post.org
Google's [[https://www.google.com/landing/2step/][2 Step Verification]] and GitHub's [[https://help.github.com/articles/about-two-factor-authentication/][2 Factor Authentication]] are
preferred & secured but they are quite confusing when using =git=. In
......@@ -108,7 +109,7 @@ commit to remote server using =git-push=.
Or store details in =~/.gitconfig=
#+BEGIN_SRC sh
#+BEGIN_SRC shell -n
[user]
name = <FirstName LastName>
email = <username>@gmail.com
......@@ -154,7 +155,7 @@ commit to remote server using =git-push=.
Each credential is stored on its own line in file
=~/.git-credentials= file, something like,
#+BEGIN_SRC sh
#+BEGIN_SRC shell -n
smtp://<username>%40gmail.com:<16CharPassword>@smtp.gmail.com%3a587
https://<GitHub username>:<GitHub Token>@github.com
#+END_SRC
......
......@@ -28,7 +28,7 @@ a smart-watch.
model(WI501Q). This was brought up by /bencord0/ on [[https://asteroidos.org/irc-channel/][#asteroid
channel]]
#+BEGIN_SRC bash
#+BEGIN_SRC
psachin bencord0: All the files are downloaded from official page and are intact
psachin bencord0: Do you want to look at the output of above command?
bencord0 Sure
......@@ -47,17 +47,17 @@ a smart-watch.
I tried to compile few builds to verify this using /bencord0's/
suggestions
#+BEGIN_SRC bash
#+BEGIN_SRC
bencord0 https://github.com/AsteroidOS/meta-sparrow-hybris/blob/master/recipes-core/initrdscripts/initramfs-boot-android/init.sh is the init script in the initramfs. Stick an infinite loop near the top, run the build and boot that. If it stays blank, then we will have learned something.
#+END_SRC
which yield similar results and failed to boot AsteroidOS
#+BEGIN_SRC bash
#+BEGIN_SRC
psachin bencord0: even with infinite loop it booted with android-wear
#+END_SRC
I also tried few AOSP branch which gave same results
#+BEGIN_SRC bash
#+BEGIN_SRC
psachin kido: Didn't get you. What branch? android-msm-sparrow-3.10-marshmallow-mr1-wear-release? with commit: 8ffc85d0e5dba485a52a4405a21d3a516f969420. Do you want me to test the patch manually?
@kido this branch is marshmallow, maybe there is a newer branch for lollypop or whatever
#+END_SRC
......@@ -117,7 +117,6 @@ a smart-watch.
Finally it has wallpapers which can be applied over a Watchface.
*** Install AsteroidOS
AsteroidOS Alpha 1.0 can be [[https://asteroidos.org/install/][installed]] on four smartwatches
......@@ -131,7 +130,7 @@ a smart-watch.
One can build AsteroidOS following [[https://asteroidos.org/wiki/building-asteroidos/][wiki page]]. On Fedora-25, one
need to install following dependencies
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
dnf install -y git perl-bignum git patch chrpath gawk diffstat texinfo libaccounts-glib libaccounts-glib-devel
dnf groupinstall -y "C Development Tools and Libraries"
#+END_SRC
......
......@@ -8,7 +8,7 @@ List of commands for day-to-day use
(*Last updated on Jan 03, 2019*)
**** SOCKS proxy using SSH
#+BEGIN_SRC bash
#+BEGIN_SRC sh
ssh -N -D 1080 user@server
#+END_SRC
......@@ -19,7 +19,7 @@ List of commands for day-to-day use
=-D=: =[bind address:]port= (Port in above example)
**** wget a website
#+BEGIN_SRC bash
#+BEGIN_SRC sh
wget -rkp -l5 -np -nH -cut-dirs=1 https://example.com
#+END_SRC
......@@ -34,22 +34,20 @@ List of commands for day-to-day use
=-H=: Span across hosts when doing recursive retrieving.
**** Capture screenshot
#+BEGIN_SRC bash
#+BEGIN_SRC sh
import -window root screenshot.png
#+END_SRC
**** Reduce PDF size
#+BEGIN_SRC bash
#+BEGIN_SRC sh
gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -sOutputFile=new_file.pdf original_file.pdf
#+END_SRC
**** Unlock PDF file
#+BEGIN_SRC bash
#+BEGIN_SRC sh
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=unencrypted.pdf -c .setpdfwrite -f encrypted.pdf
#+END_SRC
**** Rotate video
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
# Using mplayer(watch rotated video)
mplayer -vf-add rotate=1 sample.mp4
......@@ -58,17 +56,17 @@ List of commands for day-to-day use
#+END_SRC
**** Convert 3GP to MP4
#+BEGIN_SRC bash
#+BEGIN_SRC sh
ffmpeg -i VID_0050.3gp -strict -2 -q:a 0 -ab 64k -ar 44100 VID_0050.mp4
#+END_SRC
**** FLV to MP4
#+BEGIN_SRC bash
#+BEGIN_SRC sh
ffmpeg -i input.flv -qscale 1 -ar 22050 output.mp4
#+END_SRC
**** Extract audio(MP3) from MP4 video
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
ffmpeg -i video.mp4 -f mp3 -ab 192000 -vn music.mp3
# or specify codec to use `libmp3lame` in this case.
......@@ -86,46 +84,45 @@ List of commands for day-to-day use
=-vn=: don't want video
**** Cut video by time interval
***** Cut video starting from 19 min 49 seconds up to 04 mins 18 seconds.
#+BEGIN_SRC bash
#+BEGIN_SRC sh
ffmpeg -y -i Video.mp4 -qscale 1 -ss 00:19:49.0 -t 00:04:18.0 -acodec copy -vcodec copy output.mp4
#+END_SRC
/Note/: =-sameq= was removed in recent version of =ffmpeg=
**** Use =mplayer= to extract audio(MP3)
#+BEGIN_SRC bash
#+BEGIN_SRC sh
mplayer -dumpaudio movie.flv -dumpfile movie_audio_track.mp3
#+END_SRC
**** Reduce resolution
#+BEGIN_SRC bash
#+BEGIN_SRC sh
ffmpeg -i Birdman.mp4 -strict -2 -s 720x480 birdman.mp4
#+END_SRC
**** recordmydesktop
#+BEGIN_SRC bash
#+BEGIN_SRC sh
recordmydesktop -x 100 -y 100 --width 1280 --height 720 --freq 48000 --fps 30 -o ~/Videos/recordings/test-video.ogv
#+END_SRC
**** Include subtitles(Use =subtitleeditor= to create subtitle)
#+BEGIN_SRC bash
#+BEGIN_SRC sh
ffmpeg -i video.avi -vf subtitles=subtitle.srt out.avi
#+END_SRC
**** Resize image 50% of its original size
#+BEGIN_SRC bash
#+BEGIN_SRC sh
convert dragon.gif -resize 50% half_dragon.gif
#+END_SRC
**** Control compression level of an image
#+BEGIN_SRC bash
#+BEGIN_SRC sh
convert input.png -quality 75 output.jpg
#+END_SRC
**** Clean up =~/.ccache/= directory
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
# View statistics using
ccache -s
......@@ -134,7 +131,7 @@ List of commands for day-to-day use
#+END_SRC
**** Git
***** Find commits by author between timeline
#+BEGIN_SRC shell
#+BEGIN_SRC sh -n
# Syntax
git log --since "START" --until "END" --author=AUTHOR --pretty=oneline --diff-filter=A
......
......@@ -17,13 +17,13 @@ version. Compiling and using should not be a problem. But still for
newcomers, following are the steps:
- Download and extract the latest pretest version.
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
wget -Nc --show-progress http://alpha.gnu.org/gnu/emacs/pretest/emacs-25.0.92.tar.xz
tar xvJf emacs-25.0.92.tar.xz
#+END_SRC
- Configure and compile.
#+BEGIN_SRC bash
#+BEGIN_SRC sh
cd emacs-25-0.92
#+END_SRC
......@@ -33,12 +33,12 @@ newcomers, following are the steps:
#+END_SRC
Configure the build environment
#+BEGIN_SRC bash
#+BEGIN_SRC sh
./configure --prefix=/opt/emacs-pretest --host=x86_64-fedora23-linux-gnu
#+END_SRC
Build from source
#+BEGIN_SRC bash
#+BEGIN_SRC sh
make
#+END_SRC
......@@ -55,7 +55,7 @@ newcomers, following are the steps:
or 'gnu'.
If the =make= is successful, you can go head and try the build using.
#+BEGIN_SRC bash
#+BEGIN_SRC sh
src/emacs
#+END_SRC
......@@ -69,7 +69,7 @@ newcomers, following are the steps:
Try out Emacs with your custom configuration. When you are happy,
you can proceed toward installation.
#+BEGIN_SRC bash
#+BEGIN_SRC sh
sudo make install
#+END_SRC
......@@ -86,5 +86,5 @@ default.
If you encounter any issues during =make=, make sure you have all
dependencies installed. If you think, there is an issue in the pretest
release and needs to be fixed, make sure that it is reproducible
before notifying `emacs-devel@gnu.org`. You can also ask for help on
before notifying /emacs-devel@gnu.org/. You can also ask for help on
IRC at freenode, channel *#emacs*.
......@@ -11,7 +11,7 @@ based on [[http://nodejs.org/][Node.js]]. To install Protractor, you need to ins
user may use =apt-get= to install Node.js.
2. Untar using =tar -xvzf node-xxx.tar.gz=
3. Configure, compile, and install using
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
cd node
./configure
make
......@@ -21,7 +21,6 @@ based on [[http://nodejs.org/][Node.js]]. To install Protractor, you need to ins
4. =npm= is a package-manager for Node.js. It should installed
with Node.js
**** Now install Protractor using
1. =sudo npm install -g protractor=. =-g= will install protractor
globally
......
#+title: Introducing Clojure
#+author: Sachin
#+title: Introduction to Clojure
#+date: <2013-10-18>
#+keywords: linux, clojure, lein
#+setupfile: ../org-templates/post.org
**Clojure** has been around for couple of years now. It has been
recognized for its features like functional programming, elegance,
......@@ -50,7 +51,7 @@ With this brief introduction lets start setting up Clojure.
=~/.lein/profiles.clj=. Create this file if it does not exist.
- A sample =profiles.clj= file looks like below
#+BEGIN_SRC lisp
#+BEGIN_SRC lisp -n
{:user {:plugins [[lein-difftest "1.3.8"]
[lein-marginalia "0.7.1"]
[lein-pprint "1.1.1"]
......@@ -107,7 +108,7 @@ With this brief introduction lets start setting up Clojure.
- Lets say the project name is =my-stuff=, go to project directory
and run REPL using
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
cd my-stuff
lein
#+END_SRC
......@@ -153,13 +154,13 @@ With this brief introduction lets start setting up Clojure.
:PROPERTIES:
:ID: 2f0155c9-d839-40ff-8995-fcc2101daa77
:END:
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
lein repl
...
#+END_SRC
Simple queries can be performed inside a REPL
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
user=> (require 'my-lib.core)
nil
user=> (ns my-lib.core)
......@@ -175,7 +176,7 @@ With this brief introduction lets start setting up Clojure.
- Add project dependencies to =~/.lein/profiles.clj= or
=your-app/project.clj=
- Below is my sample =profiles.clj= file
#+BEGIN_SRC lisp
#+BEGIN_SRC lisp -n
{:user {:plugins [[lein-difftest "1.3.8"]
[lein-marginalia "0.7.1"]
[lein-pprint "1.1.1"]
......@@ -184,7 +185,7 @@ With this brief introduction lets start setting up Clojure.
[lein-ring "0.8.7"]]}}
#+END_SRC
- Or you can have it specific to the project
#+BEGIN_SRC lisp
#+BEGIN_SRC lisp -n
(defproject perfect-clojure "0.1.0-SNAPSHOT"
:description "A simple clojure app to test my environment"
:url "<http://clojuremadesimple.co.uk>"
......@@ -246,7 +247,7 @@ With this brief introduction lets start setting up Clojure.
:ID: 085fb66b-fba4-4939-84ae-f008edd7b9e7
:END:
- Install =marginalia=
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
cd ~/.lein
touch profiles.clj
#+END_SRC
......
......@@ -63,17 +63,17 @@ by a **brand-new** commit.
Below commands can be really handy:
- Check local commit
#+BEGIN_SRC bash
#+BEGIN_SRC sh
git log
#+END_SRC
- Check remote commit
#+BEGIN_SRC bash
#+BEGIN_SRC sh
git log origin
#+END_SRC
- View both local and remote(origin) logs all-together
#+BEGIN_SRC bash
#+BEGIN_SRC sh
git log origin master
#+END_SRC
......@@ -88,13 +88,13 @@ scenario in a better way.
In order to push, I first need to pull that lost commit from remote. A
simple
#+BEGIN_SRC bash
#+BEGIN_SRC sh
git pull
#+END_SRC
or
#+BEGIN_SRC bash
#+BEGIN_SRC sh
git pull origin master
#+END_SRC
......
......@@ -88,7 +88,7 @@ then I came across this [[https://github.com/ManageIQ/manageiq/pull/13318][Pull
/Note that the feature work on **euwe** release of ManageIQ. If not
already done, please upgrade ManageIQ version following below steps./
#+BEGIN_SRC bash
#+BEGIN_SRC sh -n
ssh root@<ManageIQ Appliance>
vmdb
git fetch --all
......
#+title: My own build of Cyanogenmod 7 for ZTE Blade
#+author: Sachin
#+date: <2014-04-19>
#+keywords: linux, makefile
#+setupfile: ../org-templates/post.org
Altough I use Cyanogenmod-9 on ZTE Blade(Orange San Francisco),
Cyanogenmod-7 works best on ZTE Blade because of its low RAM(176MB in
......
#+title: Network utilities
#+author: Sachin
#+date: <2012-03-24>
#+keywords: linux, networkm ifconfig, ip, route
#+setupfile: ../org-templates/post.org
Few network configuration which can be performed using CLI, this post
covers examples with syntax.
......@@ -16,14 +17,14 @@ covers examples with syntax.
:END:
Syntax
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
ifconfig <INTERFACE> <IP-ADDRESS> netmask <NETMASK>
# or
ip addr add <IP-ADDRESS/CIDR> dev <INTERFACE>
#+END_SRC
Example
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
ifconfig eth0 192.168.1.11 netmask 255.255.255.0
# or
ip addr add 192.168.1.11/24 dev eth0
......@@ -35,14 +36,14 @@ covers examples with syntax.
:END:
Syntax
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
route add default gw <GATEWAY-IP> <INTERFACE>
# or
ip route add default via <GATEWAY-IP> dev <INTERFACE>
#+END_SRC
Example
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
route add default gw 192.168.1.1 eth0
# or
ip route add default via 192.168.1.1 dev eth0
......@@ -54,14 +55,14 @@ covers examples with syntax.
:END:
Syntax
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
ip link set down dev DEVICE_NAME
ip link set dev DEVICE_NAME address AA:BB:CC:DD:EE:FF
ip link set up dev DEVICE_NAME
#+END_SRC
Example
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
ip link set down dev enp0s21
ip link set dev enp0s21 address AA:BB:CC:DD:EE:FF
ip link set up dev enp0s21
......@@ -75,7 +76,7 @@ covers examples with syntax.
Optionally DNS can be entered in the file =/etc/resolv.conf= in
following format
#+BEGIN_SRC sh
#+BEGIN_SRC sh -n
# /etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4
......