64 bit | 32 bit | 16 bit | 8 bit | |
---|---|---|---|---|
A (accumulator) | RAX |
EAX |
AX |
AL |
B (base, addressing) | RBX |
EBX |
BX |
BL |
C (counter, iterations) | RCX |
ECX |
CX |
CL |
D (data) | RDX |
EDX |
DX |
DL |
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 python3 | |
def read_from(data, form): | |
import struct | |
n = struct.calcsize(form) | |
return data[n:], struct.unpack_from(form, data)[0] | |
def read_string(data): | |
data, n = read_from(data, "I") |
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
#CC = /home/justin/.local/lib/jsix/toolchains/llvm-13/bin/clang++ | |
#LD = /home/justin/.local/lib/jsix/toolchains/llvm-13/bin/ld.lld | |
#CC = g++ | |
#LD = ld | |
#CC = clang++-13 | |
#LD = clang++-13 | |
#LD = ld.lld-13 | |
CC = clang++-16 | |
LD = ld.lld-16 |
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
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile" : "{58ad8b0c-3ef8-5f4d-bc6f-13e4c00f2530}", | |
"copyOnSelect": true, | |
"alwaysShowTabs" : false, | |
"initialCols" : 120, | |
"initialRows" : 40, | |
"requestedTheme" : "system", | |
"showTabsInTitlebar" : true, |
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
00000000-0000-0000-0000-000000000000 | Zero | |
---|---|---|
00000000-0000-0000-0000-000000000000 | EfiPartTypeUnused | |
00000000-0000-0000-0000-000000000000 | EfiTpmDeviceInstanceNone | |
00160F8D-2B35-4DF2-BBE0-B272A8D631F0 | FirmwarePerformanceDxe | |
00214CC1-06D1-45FE-9700-DCA5726AD7BF | ArmVirtPlatformLib | |
0049858F-8CA7-4CCD-918B-D952CBF32975 | VirtioFdtDxe | |
0053D9D6-2659-4599-A26B-EF4536E631A9 | ShellAlias | |
0065D394-9951-4144-82A3-0AFC8579C251 | EfiPeiRscHandlerPpi | |
00720665-67EB-4A99-BAF7-D3C33A1C7CC9 | EfiTcp4ServiceBindingProtocol | |
00C86DB8-013B-4FF4-B8E9-208F4FCF1C00 | LibSignal |
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 | |
PROFILE=${1:-justinian} | |
USER=${2:-justin} | |
OUTFILE="/home/${USER}/.ssh/authorized_keys" | |
TEMPFILE=$(mktemp) | |
if curl -sL "https://github.com/${PROFILE}.keys" > "${TEMPFILE}"; then | |
if grep -q "ssh-rsa" "${TEMPFILE}"; 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
#include <Adafruit_LEDBackpack.h> | |
#include <ESP8266WiFi.h> | |
#include <WiFiClientSecure.h> | |
#include <Wire.h> | |
const char* ssid = "xxxxxx"; | |
const char* password = "xxxxxxx"; | |
const char* host = "api.pushover.net"; | |
const int httpsPort = 443; |
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
#!/bin/bash | |
# This script should join Debian Jessie (8) to an Active Directory domain. | |
# Originally based on Alan D. Moore's script from his article "Joining Debian | |
# 8 to Active Directory" | |
# http://www.alandmoore.com/blog/2015/05/06/joining-debian-8-to-active-directory/ | |
if [[ $1 == "--user" | $1 == "-u" ]]; then | |
shift | |
USER=`shift` |
I'm assuming you are familiar with symbol servers - you might not have one set up yourself for your own projects, but you probably use Microsoft's public symbol server for downloading symbols for system DLLs.
For your own projects it might be useful to set up a symbol server - I won't go into how you do that here since it's well documented elsewhere, but basically you just set up a folder somewhere - say X:\symbols\ or \servername\symbols or even http://servername.foo/symbols/ which has a defined tree structure:
symbols/
symbols/mymodule.pdb/
symbols/mymodule.pdb/123456789012345678901234567890122/
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 python | |
import os | |
import os.path | |
from ConfigParser import SafeConfigParser | |
HOME = os.environ["HOME"] | |
CREDS = os.path.join(HOME, ".aws", "credentials") | |
def error(message): |
NewerOlder