Skip to content

Instantly share code, notes, and snippets.

View vishaltelangre's full-sized avatar

Vishal Telangre vishaltelangre

View GitHub Profile
@vishaltelangre
vishaltelangre / docker.sh
Created October 1, 2016 08:16
Add a volume to an existing Docker container
docker run --name rails-modified-container -v "$PWD":/usr/src/app -w /usr/src/app -d rails
^ ^ ^ ^
name of container app dir dir on image from which
on host container create container
hp-scan -s pdf
@vishaltelangre
vishaltelangre / merge_vob.sh
Created September 24, 2016 10:26
Join multiple VOB video files into one
cat *.VOB | pv | dd of=final.vob
@vishaltelangre
vishaltelangre / gist:e60095d257d38cd1a51c302d1a8d8118
Created June 4, 2016 16:04
#mac #osx recursively delete all #exe files
find . -name '*exe' -exec rm -rf {} \;
@vishaltelangre
vishaltelangre / tools_i_use.md
Last active July 11, 2022 12:43
Tools I Use #tools_i_use

Shell

  • z - Easily jump around
  • tmux - Sessions, windows, panes, whoa! (key-bindings)
    • On a remote server, tmux -CC [attach] mode from iTerm2. More details here.
  • https://asciinema.org - Record and share terminal sessions as video (very lightweight!)
  • FiraCode Nerd Font (previously used FiraCode, mononoki and Consolas)
  • fzf - Fuzzy reverse search (using Ctrl-R)
  • nvim with Nvchad
  • gifgen - video to GIF converter
@vishaltelangre
vishaltelangre / download.sh
Last active February 22, 2017 13:38
ePub book links from https://msblc.maharashtra.gov.in/download1.html (Total 337 books, net size around 1.7 GiB)
#!/bin/sh
cat links.txt | parallel --gnu "wget {}" --no-check-certificate
@vishaltelangre
vishaltelangre / emacs_keybindings
Last active January 1, 2016 05:22
Fundamental Emacs Keybindings #emacs
* Movement
------------
C-v Move next screen
M-v Move backwords one screen
C-f Move forward a character
C-b Move backward a character
M-f Move forward a word
@vishaltelangre
vishaltelangre / hello.asm
Last active August 29, 2015 14:26
Hello NASM on x86_64 Mac OSX
;; BUILD AS:
; nasm -f macho64 -o hello.o 1.asm && ld -macosx_version_min 10.7.0 -lSystem -o hello hello.o && ./hello
; ^ ^ ^
; [generate object file from assembly] [link object file] [execute]
%define SYSCALL_WRITE 0x2000004
%define SYSCALL_EXIT 0x2000001
;; initialised data section
section .data
@vishaltelangre
vishaltelangre / slack_rss
Created June 18, 2015 14:43
Slack is a deveoper's slave, abusing it to this extent! Subscribe to engineering blogs of popular companies.
/feed subscribe http://tech.adroll.com/feed.xml
/feed subscribe http://adzerk.com/tech/feed.xml
/feed subscribe https://www.airpair.com/rss
/feed subscribe https://blog.algolia.com/feed/
/feed subscribe http://allegrotech.io/feed.xml
/feed subscribe http://artsy.github.io/atom.xml
/feed subscribe https://eng.asana.com/feed/
/feed subscribe https://developer.atlassian.com/blog/feed.xml
/feed subscribe http://feeds.feedburner.com/auth0
/feed subscribe http://engineering.aweber.com/feed/
Count All Open File Handles
lsof | wc -l
List File Descriptors in Kernel Memory
sysctl fs.file-nr