##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/.git
# Install ARCH Linux with encrypted file-system and UEFI | |
# The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description. | |
# Download the archiso image from https://www.archlinux.org/ | |
# Copy to a usb-drive | |
dd if=archlinux.img of=/dev/sdX bs=16M && sync # on linux | |
# Boot from the usb. If the usb fails to boot, make sure that secure boot is disabled in the BIOS configuration. | |
# Set swedish keymap |
#!/bin/bash | |
# Lists connections on a given port, defaults to 80 | |
PORT=${1:-80} | |
clear | |
while x=0; do | |
clear; | |
echo "Connections to $HOSTNAME:$PORT" | |
echo "[Updated: $(date)]"; | |
echo "=============================="; |
##Create a new repository on the command line
touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:alexpchin/.git
Note: This is an opinionated guide. While it is most effective for on-site, the same pattern can work with remote candidates.
Interviewing is hard. It's not easy to find good people, and once you do, it's often difficult to find out what they can do and how they work. A badly-run interview can pass over a great engineer. Conversely, some engineers are good at passing traditional tech interviews, but bring major problems with work habits or team fit.
The first priority of any manager is to hire the best people. Everything else must wait.
#!/bin/bash | |
#Simple script for VirtuaBox memory extraction | |
# Usage: vboxmemdump.sh <VM name> | |
VBoxManage debugvm $1 dumpvmcore --filename=$1.elf | |
size=0x$(objdump -h $1.elf|egrep -w "(Idx|load1)" | tr -s " " | cut -d " " -f 4) | |
off=0x$(echo "obase=16;ibase=16;`objdump -h $1.elf|egrep -w "(Idx|load1)" | tr -s " " | cut -d " " -f 7 | tr /a-z/ /A-Z/`" | bc) | |
head -c $(($size+$off)) $1.elf|tail -c +$(($off+1)) > $1.raw |
#include <ESP8266WiFi.h> | |
WiFiClient client; | |
const char* ssid = "pwned"; | |
const char* password = "deauther"; | |
const char* host = "192.168.4.1"; | |
void setup() | |
{ | |
Serial.begin(115200); |
i3-gaps has some packages that are required for it to work so install these things:
sudo apt install libxcb1-dev libxcb-keysyms1-dev libpango1.0-dev libxcb-util0-dev libxcb-icccm4-dev libyajl-dev libstartup-notification0-dev libxcb-randr0-dev libev-dev libxcb-cursor-dev libxcb-xinerama0-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev autoconf xutils-dev libtool automake
You also need to install libxcb-xrm-dev
, but I got Unable to locate package libxcb-xrm-dev
when trying to install from the apt repositories on Ubuntu 16.04. If this happens to you, just install it from source using these commands:
mkdir tmp
# install gpg | |
brew install gnupg | |
# copy my-gpg-key.asc from other workstation or lastpass or somewhere | |
# and then import it | |
gpg --import ~/Downloads/my-gpg-key.asc | |
# make sure it's there and get the key id (the part that comes after "rsa4096/") | |
gpg --list-secret-keys --keyid-format LONG |
#!/bin/sh | |
# From https://www.hiroom2.com/2017/09/24/parrotsec-3-8-docker-engine-en/ | |
# Changelog: | |
# @DavoedM: Apr 3, 2020 | |
# @C922A10971734: Jan 19, 2023 | |
set -e | |
# Install dependencies. |