- Install Ubuntu 13.10 on top of encrypted lvm by Janne Haapsaari
- HOWTO: install and reinstall on an encrypted LUKS/LVM system on UbuntuForums
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ELF -> H[0,128] | |
for i = 0 to H.e_shnum in (SH[H.e_shoff+i*H.e_shentsize, H.e_shoff+(i+1)*H.e_shentsize]) | |
for i = 1 to H.e_shnum in (Sec[SH(i).sh_offset, SH(i).sh_offset+SH(i).sh_size]) | |
where Sec -> | |
switch(SH(i).sh_type = 6 -> DynSec[SH(i).sh_offset, SH(i).sh_offset+SH(i).sh_size] | |
/ SH(i).sh_type = 3 -> StrSec[SH(i).sh_offset, SH(i).sh_offset+SH(i).sh_size] | |
/ (SH(i).sh_type = 11) || (SH(i).sh_type = 2) -> DynSymSec[SH(i).sh_offset, SH(i).sh_offset+SH(i).sh_size] | |
/ SH(i).sh_type = 7 -> NoteSec[SH(i).sh_offset, SH(i).sh_offset+SH(i).sh_size] | |
/ SH(i).sh_type = 9 -> RelSec[SH(i).sh_offset, SH(i).sh_offset+SH(i).sh_size] | |
/ SH(i).sh_type = 4 -> RelAddEndSec[SH(i).sh_offset, SH(i).sh_offset+SH(i).sh_size] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding=utf-8 | |
""" | |
Demonstrates how a [Mapped Diagnostic Context](http://logback.qos.ch/manual/mdc.html) | |
of log4j MDC fame (and also provided in slf4j) could be implemented in Python | |
""" | |
import json | |
import logging | |
import sys | |
import threading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# we never want it to contact IMDS since that's just log noise | |
export AWS_EC2_METADATA_DISABLED=true | |
if [[ -z "${AWS_CONFIG_FILE:-}" ]]; then | |
AWS_CONFIG_FILE=$HOME/.aws/config_awslocal | |
if [[ ! -e "$AWS_CONFIG_FILE" ]]; then | |
unset AWS_CONFIG_FILE | |
else | |
export AWS_CONFIG_FILE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
__log=$HOME/op-pinentry.$$.txt | |
# { set; printenv; echo "ARGV=$*"; } &>"$__log" | |
# exec 2>>"$__log" | |
# set -x | |
# if we are not running under gpg-agent, that is fatal | |
if [[ -z "$_assuan_pipe_connect_pid" ]]; then | |
exit 143 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env gawk -f | |
# git --no-pager log | gawk -f this-script > revmap.txt | |
# xxd -c 24 -r revmap.txt \ | |
# .git/svn/refs/remotes/trunk/.rev_map.cfe28804-0f27-0410-a406-dd0f0b0b656f | |
# 0000000: 0000 0001 cce6 285e 48e1 e3cc 0d7d 0617 beb0 4e88 a126 8634 | |
# 0000018: 0000 0006 6e4f ada4 bed4 6660 c987 dc74 1243 8973 16cc c810 | |
BEGIN { | |
FS=" " | |
# this number comes from ``git --no-pager log | grep ^commit | wc -l`` | |
# and is ZERO-indexed because the last xxd will begin with 0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "ubuntu1204_64" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMAKE_MINIMUM_REQUIRED(VERSION 3.9.0) | |
CMAKE_POLICY(VERSION 3.9) | |
SET(PUTTY_VERSION "0.70.20180101") | |
PROJECT(putty VERSION ${PUTTY_VERSION} LANGUAGES C) | |
FIND_PROGRAM(PERL_EXE | |
NAMES perl perl.exe | |
DOC "location of an executable Perl used to generate files within the project") | |
OPTION(NO_IPV6 [=[ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -ex | |
hostname -f > /etc/hostname | |
hostname -F /etc/hostname | |
depmod -a || true | |
modprobe -v ip6_tables | |
for i in ip_vs ip_vs_rr ip_vs_wrr ip_vs_sh; do | |
modprobe -v $i | |
done | |
if ! type docker >/dev/null 2>&1; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
image_name="get the ECR image name through tomfoolery" | |
export JOB_Q='arn:our-ci-cd-queue' | |
python -u queue_worker.py & | |
worker_pid=$! | |
trap "kill -INT $worker_pid" EXIT | |
export TASK_ARN='arn:a-ci-cd-specific-task' | |
python -u queue_submit.py -<<DOIT |
NewerOlder