Skip to content

Instantly share code, notes, and snippets.

View badarahmed's full-sized avatar

Badar Ahmed badarahmed

View GitHub Profile
@badarahmed
badarahmed / recursively-rename-extension.sh
Created September 15, 2022 23:02 — forked from bzerangue/recursively-rename-extension.sh
Terminal Script: Recursively rename or change file extensions (this example, changing extension from .html to .php)
find . -name "*.html" | while read i; do mv "$i" "${i%.html}.php"; done
@badarahmed
badarahmed / tmux.cheat
Created September 21, 2017 21:10 — forked from afair/tmux.cheat
Tmux Quick Reference & Cheat sheet - 2 column format for less scrolling!
========================================== ==========================================
TMUX COMMAND WINDOW (TAB)
========================================== ==========================================
List tmux ls List ^b w
New -s <session> Create ^b c
Attach att -t <session> Rename ^b , <name>
Rename rename-session -t <old> <new> Last ^b l (lower-L)
Kill kill-session -t <session> Close ^b &
@badarahmed
badarahmed / slack.py
Created November 6, 2015 07:38 — forked from TheWaWaR/slack.py
Slack python webhook client
#coding: utf-8
import json
import requests
class Slack(object):
"""
References:
@badarahmed
badarahmed / bash-cheatsheet.sh
Created October 10, 2015 02:45 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
classification=spark-defaults,properties=[spark.dynamicAllocation.enabled=true,spark.executor.memory=2G,spark.executor.cores=2]

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

How to install PhantomJS on Ubuntu

Version: 1.9.7

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update