Skip to content

Instantly share code, notes, and snippets.

View Link-'s full-sized avatar
:octocat:

Bassem Dghaidi Link-

:octocat:
View GitHub Profile
@Link-
Link- / gist:5043704
Created February 27, 2013 00:25
# Linux # Will tarify all folders/files in a directory and create # a separate tar file for each
#!/bin/bash
# Will tarify all folders/files in a directory and create
# a separate tar file for each
for f in */; do tar -cvf "${f%/}.tar" "$f"; done
# Kill Ghost sshd sessions
pkill -o -u YOURUSERNAME sshd
@Link-
Link- / wifi_pass
Last active August 29, 2015 14:25
Get WiFi password of a connected network
#OS X
security find-generic-password -ga <SSID> | grep password
# Windows
netsh wlan show profile name=<SSID> key=clear

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@Link-
Link- / inputrc
Created March 1, 2015 07:32
Up/Down history search
# Create ~/.inputrc file and paste
# this in it
"\e[A": history-search-backward
"\e[B": history-search-forward
# Example:
# cd+UP : will return all previous cd commands
# and paramters