Skip to content

Instantly share code, notes, and snippets.

View genevera's full-sized avatar

genevera (she/her) genevera

  • Queens, NY
View GitHub Profile
@genevera
genevera / rename.sh
Created February 15, 2017 18:52 — forked from szeidner/rename.sh
Shell script for renaming an Android package and app name.
#!/bin/sh
set -e
PROGNAME=$(basename $0)
WORKING_DIR=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
OLD_TITLE="DTStart"
OLD_PACKAGE="old.package.name"
die() {
echo "$PROGNAME: $*" >&2
@genevera
genevera / README
Created May 24, 2016 23:45 — forked from k4ml/README
Install alpine linux on xhyve VM
# curl -LO http://wiki.alpinelinux.org/cgi-bin/dl.cgi/v3.3/releases/x86_64/alpine-3.3.3-x86_64.iso
curl -LO http://wiki.alpinelinux.org/cgi-bin/dl.cgi/v3.3/releases/x86/alpine-3.3.3-x86.iso
# create hdd image (8GB)
dd if=/dev/zero of=hdd.img bs=1g count=8
# extract kernel and initramfs
brew install cdrtools
isoinfo -i alpine-3.3.1-x86.iso -J -x /boot/initramfs-grsec > initramfs-grsec
isoinfo -i alpine-3.3.1-x86.iso -J -x /boot/vmlinuz-grsec > vmlinuz-grsec
@genevera
genevera / proxytoggle.sh
Last active June 15, 2016 19:47
Toggle web proxy via command-line (cli) in Mac OS X
# use sudo else you'll need to deal with a popup auth dialog.
#
# you can also add yourself to the sudoers file with NOPASSWD for this particular command.
# e.g. genevera ALL = (genevera) NOPASSWD: /usr/sbin/networksetup
# then you won't need to enter a pw at all for this :)
proxytoggle () {
if [[ $(networksetup -getwebproxy Wi-Fi | grep -c Yes) -eq 1 ]]
then
export http_proxy=
export https_proxy=