-
Download bios from lenovo website https://support.lenovo.com/gb/en/
-
Convert the iso to a bootable image:
geteltorito -o bios.img g2uj18us.iso
- Write to usb stick and boot
#!/bin/sh -eu | |
echo "pulling all projects..." | |
for d in "${HOME}"/projects/*; do | |
if [ -d "${d}/.git" ]; then | |
CURRENT_BRANCH="$(git -C "${d}" rev-parse --abbrev-ref HEAD)" | |
[ "${CURRENT_BRANCH}" = 'master' ] || echo -e "\r\033[KWARNING: ${d} is not on branch master" | |
if [ -z "$(git -C "${d}" status --porcelain)" ]; then | |
echo -en "\r\033[K ${d}" | |
git -C "${d}" pull --rebase --quiet |
Download bios from lenovo website https://support.lenovo.com/gb/en/
Convert the iso to a bootable image:
geteltorito -o bios.img g2uj18us.iso
#!/bin/sh -eu | |
BATCH_SIZE=100 | |
debug() { | |
#echo "${1}" 1>&2 | |
true | |
} | |
isin_to_json() { |
#!/bin/sh -eu | |
while [ ${#} -gt 1 ]; do | |
key="${1}" | |
case "${key}" in | |
-n|--name) | |
NAME="${2}" | |
shift | |
;; | |
-a|--architecture) |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash -eu | |
LOCKFILE='/var/lock/.aptly-upload.exclusivelock' | |
LOCK_TIMEOUT_SECONDS='300' | |
PROMOTE=0 | |
DISTRIBUTION='all' | |
STABLE_PREFIX='stable' | |
UNSTABLE_PREFIX='unstable' |
#!/bin/bash | |
virsh list | tail -n +3 | head -n -1 | awk -F" " '{print $2}' | sed 's/.*/\/etc\/libvirt\/qemu\/\0.xml/' | xargs grep memory | |
grep MemTotal /proc/meminfo |
Generating the PSK value for wpa_supplicant.conf
$ wpa_passphrase SSID
#!/bin/bash -eu | |
# Mirrors GitHub repos | |
# Takes a list of repos to mirror formatted as "user/reponame". | |
# The reponame can be omitted to mirror all repos for a user or organisation e.g. "youdevise/" | |
# The repos for a team can be mirrored using the syntax "team:orgname/teamname | |
#FIXME these might be better as arguments | |
MIRROR_DIR="${MIRROR_DIR:-/tmp/githubhmirror}" | |
GITHUB_USER="${GITHUB_USER:-}" |