-
Boot a live CD
-
Mount linux partitions
# mount /dev/sdXX /mnt/linux
# mount /dev/sdYY /mnt/linux/boot
- Prepare for chrooting
- Mount /proc, /sys, and /dev
Host github.com | |
HostName github.com | |
User git | |
IdentityFile /home/user/.ssh/id_rsa_alt | |
IdentitiesOnly yes |
mdserver() { | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: mdserver file.md" | |
return | |
fi | |
local TMP="$HOME/tmp" | |
mkdir -p "$TMP" || return | |
local CSS="markdown_pandoc.css" | |
if [ ! -r "$TMP/$CSS" ]; then |
#!/bin/bash | |
# INSTALL: copy this script to ~/bin/some_convenient_name | |
unset BOOKMARKS | |
BOOKMARKS=(\ | |
~ \ | |
~/bin \ | |
) | |
# BOOKMARKS[99]=".." |
Boot a live CD
Mount linux partitions
# mount /dev/sdXX /mnt/linux
# mount /dev/sdYY /mnt/linux/boot
#!/bin/bash | |
# genkernel --menuconfig --no-clean all | |
CONFIGFILE=$1 | |
if [ ! -f "$CONFIGFILE" ]; then | |
echo "File not exists: $CONFIGFILE" | |
exit 1; | |
fi |
매번 까먹어서 적어둔다.
https://virtualenv.pypa.io/en/latest/
$ [sudo] pip install virtualenv
$ virtualenv ENV
$ cd ENV && virtualenv .
#!/usr/bin/env python | |
# Python port of https://gist.github.com/stbuehler/8616943 | |
# Disclaimer | |
# There is absolutely no guarantee. | |
# | |
# Guide | |
# 0. Install Android SDK and Android Backup Extractor | |
# 1. Backup Battle.net Authenticator | |
# adb backup com.blizard.bma -f bma.ab |
# CVE-2014-6271 | |
# * https://securityblog.redhat.com/2014/09/24/bash-specially-crafted-environment-variables-code-injection-attack/ | |
# * http://seclists.org/oss-sec/2014/q3/649 | |
# * http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271 | |
# * http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-6271 | |
env x='() { :;}; echo vulnerable' bash -c "echo this is a test" | |
# CVE-2014-7169 (still vulnerable) | |
# * https://twitter.com/taviso/statuses/514887394294652929 | |
# * http://seclists.org/oss-sec/2014/q3/671 |