Skip to content

Instantly share code, notes, and snippets.

View aki237's full-sized avatar

Akilan Elango aki237

  • Tuticorin
View GitHub Profile
@aki237
aki237 / tree
Created February 23, 2017 17:22
droid tree
This file has been truncated, but you can view the full file.
.
├── abi
│   └── cpp
│   ├── include
│   └── src
├── bionic
│   ├── benchmarks
│   ├── libc
│   │   ├── arch-arm
│   │   │   ├── bionic
@aki237
aki237 / tom_and_jerry.sh
Created November 29, 2016 08:43
Download archive stuff
#!/bin/sh
curl "https://archive.org/details/126BuddiesThickerThanWater1962" > /tmp/tmp-0932902.html
cat /tmp/tmp-0932902.html | grep -o "download-pill\"\ href=\".*\.mp4\">" | sed "s/download-pill\"\ href=\"/axel\ -n\ 20\ \"https:\/\/archive.org/g" | sed "s/\">$/\"/g" > /tmp/tjdwnscr
sh /tmp/tjdwnscr
@aki237
aki237 / progyinstaller
Last active November 21, 2016 22:30
Install proGY using an automated script
#!/bin/bash
progyinstaller()
{
if [ "$(id -u)" == "0" ]; then
echo "Please don't run this script as root"
exit
fi
echo "Installing proGY..."
echo "Installing Binary from github releases"
@aki237
aki237 / emacs
Created September 13, 2016 08:40
single emacs instance
#!/bin/sh
if [ -e "/tmp/emacs1000/server" ]; then
if [ $# == 0 ]; then
emacsclient -n -e "(other-frame 0)"
else
emacsclient -n $@
fi
else
/usr/bin/emacs $@ &
fi
@aki237
aki237 / .bashrc.sh
Created August 23, 2016 10:22
My new bashrc
export http_proxy="http://127.0.0.1:9999"
export https_proxy="http://127.0.0.1:9999"
export GOPATH=$HOME/gospace
export GOROOT=/usr/local/go
export PATH=$PATH:$HOME/.local/bin:$GOPATH/bin:$HOME/bin:$GOROOT/bin:$HOME/.cargo/bin
export RUST_SRC_PATH=$HOME/.cargo/src/rustc-1.11.0/src
RED="\[$(tput setaf 9)\]"
GREEN="\[$(tput setaf 12)\]"
RESET="\[$(tput sgr0)\]"
#include <stdio.h>
int main(int argc, char* argv[]){
printf("Hello World\n");
return 0;
}
@aki237
aki237 / .bashrc
Last active August 29, 2015 14:24
Enhanced bash prompt style with git information in it
PS1='\[\033[01;32m\]└──[\[\033[00m\]\[\033[01;31m\]\w\[\033[00m\]\[\033[01;32m\]]──[\[\033[00m\]\[\033[01;34m\]ѱ \[\033[00m\]$(gitp)\[\033[01;32m\]]──[\[\033[00m\]$(gits)\[\033[01;32m\]]\[\033[00m\]\n \[\033[01;32m\]└──>\[\033[00m\] '