Skip to content

Instantly share code, notes, and snippets.

View spikegrobstein's full-sized avatar

spike grobstein spikegrobstein

View GitHub Profile
#!/usr/bin/env bash
# You can call this script like this:
# $ ./volumeControl.sh up
# $ ./volumeControl.sh down
# $ ./volumeControl.sh mute
# Script modified from these wonderful people:
# https://github.com/dastorm/volume-notification-dunst/blob/master/volume.sh
# https://gist.github.com/sebastiencs/5d7227f388d93374cebdf72e783fbd6a
#!/usr/bin/bash
#source: https://gist.github.com/Blaradox/030f06d165a82583ae817ee954438f2e
id=5555
function get_brightness {
xbacklight -get | cut -d '.' -f 1
}
@BinaryMuse
BinaryMuse / README.md
Last active April 20, 2022 21:45
Elixir Map/HashDict Performance on Erlang OTP R17 vs R18
@djtech42
djtech42 / revertosxrootless.sh
Last active May 1, 2018 18:11
Disable Rootless Feature (System Integrity Protection) in OS X El Capitan (Updated)
#!/bin/bash
#Beta 4 to Final Public Release (Must be run in Recovery Mode)
csrutil disable
#Beta 1-3
sudo nvram boot-args="rootless=0";sudo reboot
@parente
parente / install_latest_docker.sh
Last active February 6, 2022 17:35
Install Docker latest on Ubuntu 14.04 with AUFS as the storage driver
#!/bin/bash
sudo apt-get update
sudo apt-get -y install linux-image-extra-$(uname -r)
sudo sh -c "wget -qO- https://get.docker.io/gpg | apt-key add -"
sudo sh -c "echo deb http://get.docker.io/ubuntu docker main\ > /etc/apt/sources.list.d/docker.list"
sudo apt-get update
sudo apt-get -y install lxc-docker
@robertsosinski
robertsosinski / factorial.go
Last active August 29, 2015 14:01
Computing Factorials in Parallel in Go
package main
import (
"fmt"
"math/big"
"runtime"
)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
@namuol
namuol / INSTALL.md
Last active July 24, 2023 11:53
rage-quit support for bash

rage-quit support for bash

HOW TO INSTALL

Put flip somewhere in your $PATH and chmod a+x it.

Copy fuck into ~/.bashrc.

@orlissenberg
orlissenberg / gist:7125064
Created October 23, 2013 19:28
Configure Kaleidoscope as the GIT difftool on the terminal.
------------------------------------
.git/config
------------------------------------
[diff]
tool = ksdiff
[difftool "ksdiff"]
cmd = ksdiff \"$LOCAL\" \"$REMOTE\"
------------------------------------
@wsargent
wsargent / docker_cheat.md
Last active August 31, 2023 12:10
Docker cheat sheet
@FiloSottile
FiloSottile / How to dump the iOS simulator memory.md
Last active October 5, 2022 06:55
How to dump the iOS simulator memory

Dumping the iOS simulator memory

To audit memory or to debug with external tools it can be useful to get a dump of the running memory of an app.

To do so on a device you'll need a Jailbreak, SSH access, and gdb. See this or this.

If instead you're up to a simulated app, things are easier: apps running in the simulator are actually just native processes on your Mac OS X.

So, how to get a core dump of a Mac OS X process? Sadly gdb can't do so. Mac OS X Internals comes to the rescue with this article.