Skip to content

Instantly share code, notes, and snippets.

https://www.reddit.com/r/tailswiki/wiki/index/internal-hd-install
1) boot from DVD/USB and set a password, then open a terminal
a) sudo gedit /usr/lib/python2.7/dist-packages/tails_installer/creator.py
-> search for "Only pay attention to USB and SDIO devices"
-> comment out next 7 lines (until and including "continue") by prepending a "#" (a changing font color means you did it right)
b) sudo /usr/bin/python -tt /usr/lib/tails_installer/tails-installer -u -n --clone -P -m -x
-> choose your hdd and create the Tails device
c) mount "Tails" partition from just created device/drive using Applications | Utilities | Disks
d) gedit /media/amnesia/Tails/syslinux/live*.cfg
@chriswayg
chriswayg / README.md
Last active February 25, 2024 02:41 — forked from nicerobot/README.md
Modified macOS uninstall script for packaged install of node.js from https://stackoverflow.com/a/9287292/23056

To run this, you can try:

curl -ksO https://gist.githubusercontent.com/chriswayg/cd923e933062f0c053a417fa6bf1094e/raw/uninstall-node.sh
chmod +x ./uninstall-node.sh
./uninstall-node.sh
rm uninstall-node.sh
@chriswayg
chriswayg / CC-Offline-Package-Generator.md
Last active July 7, 2020 15:05 — forked from jorisguex/ccdl.command
CC Offline Package Generator v0.1.2 (macOS only)

Create Yosemite.iso from OS X App Store installer

If you prefer to make a bootable dvd, you can do it this way:

After downloading the full Yosemite installer app from the Mac App Store, run these 14 commands in Terminal to create a Yosemite.iso file and then burn it to a dual layer DVD with Disk Utility. You may then boot up from it by holding the option key down and then install Yosemite.

  • This worked on Mojave in 2020-06
  • Location of archived installer: /Volumes/MEDIA_DB4/macOS Installers 2019/Install OS X Yosemite.app
@chriswayg
chriswayg / ansible-role-test.sh
Last active April 28, 2020 11:35 — forked from geerlingguy/ansible-role-test.sh
Ansible Role Test Shim Script
#!/bin/bash
#
# Ansible role test shim.
#
# Usage: [OPTIONS] ./tests/test.sh
# - distro: a supported Docker distro version (default = "centos7")
# - playbook: a playbook in the tests directory (default = "test.yml")
# - role_dir: the directory where the role exists (default = $PWD)
# - cleanup: whether to remove the Docker container (default = true)
# - container_id: the --name to set for the container (default = timestamp)