Skip to content

Instantly share code, notes, and snippets.

View Akhilan's full-sized avatar
🎯
Focusing

Akhilan Akhilan

🎯
Focusing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am akhilan on github.
  • I am akhilan (https://keybase.io/akhilan) on keybase.
  • I have a public key ASCaiJwNZ-rfQqvH-XVkv-K1KsKPihr6EseSyrxPxQluogo

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
find . -name "*.pdf" -exec pdftk {} dump_data output \; | grep NumberOfPages | awk '{s+=$2} END {print s}'
#!/bin/bash
if [[ $1 = "-g" ]]; #Ordinary Case
then
a=`expr "$2" \\* 2`
b=$(bc <<< "$3 * 0.666")
c=$(bc <<< "$a - $b")
echo -e "\n Cor. Scores: $a \n Wrg. Scores: $b \n\n Tot. Scores: \e[4m\033[1m$c\033[0m\e[0m\n"
elif [[ $1 = "-o" ]]; #ExtraOrdinary Case
then
a=`expr "$2" \\* 2`
#/bin/bash
./pdf-rotate-even.sh I.pdf left right out.pdf
#!/bin/sh
footskip=2.1cm
pagecommand='{\thispagestyle{empty}}'
case ${1} in
--pagenumbering)
case ${2} in
false)
continue ;;
true)
pagecommand='{\thispagestyle{plain}}' ;;
#include <stdio.h>
main()
{
int a,b,c;
int count = 1;
for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\
TFy!QJu ROo TNn(ROo)SLq SLq ULo+\
UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\
NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\
HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\
@Akhilan
Akhilan / bday.sh
Created April 7, 2014 08:33
B'day Wish
#!/bin/bash
today=$(date +"%Y-%m-%d")
birthdate=$(date +"YYYY-MM-DD")
for (( ; ; ))
do
clear
diff=$( printf '%s' $(( $(date -u -d"$today" +%s) - $(date -u -d"$birthdate" +%s))) )
days=$(( $diff /86400 ))
hours=$(( $diff / 3600 ))
mintues=$(( $diff/ 60 ))
@Akhilan
Akhilan / add_shortcut.sql
Last active August 29, 2015 13:58
Shortcut
insert into sw.script_js values('topbar','shortcut');
insert into sw.script_js values('topbar','shortcutDef');
insert into sw.script_fnc values ('topbar', 'initKeys()');
@Akhilan
Akhilan / wvdial.conf
Last active August 29, 2015 13:56
wvdial configuration file
[Dialer MODEM]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Stupid mode=1
Phone = #777