Skip to content

Instantly share code, notes, and snippets.

@caio-vinicius
caio-vinicius / dhcpd.conf
Created July 5, 2022 17:21 — forked from TyrfingMjolnir/dhcpd.conf
Host Apple's netboot images from ISC DHCPD
class "Apple-Intel-Netboot" {
# Limit this class to only Intel Apple machines
match if substring (option vendor-class-identifier, 0, 14) = "AAPLBSDPC/i386";
option dhcp-parameter-request-list 1,3,17,43,60; # Send these options to the client (possibly forcing it, if the client didn't request it)
# From: http://www.iana.org/assignments/bootp-dhcp-parameters/bootp-dhcp-parameters.xml
# 1 - Subnet Mask
# 3 - Router
# 17 - Root Path
# 43 - Vendor Specific
# 60 - Class ID
@caio-vinicius
caio-vinicius / xcbuild-debugging-tricks.md
Created July 11, 2022 22:12 — forked from ddunbar/xcbuild-debugging-tricks.md
Xcode new build system debugging tricks

New Build System Tricks

Command Line

alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
# THIS DOESNT WORK YET: xcbuild openIDEConsole  # … then switch to Xcode ➡️
xcbuild showSpecs
xcbuild build <foo.pif> [—target <target>]
@caio-vinicius
caio-vinicius / killbutmakeitlooklikeanaccident.sh
Created July 17, 2022 13:54 — forked from moyix/killbutmakeitlooklikeanaccident.sh
Script to inject an exit(0) syscall into a running process. NB: only x86_64 for now!
#!/bin/bash
gdb -p "$1" -batch -ex 'set {short}$rip = 0x050f' -ex 'set $rax=231' -ex 'set $rdi=0' -ex 'cont'
DJANGO_API_URL=https://127.0.0.1
DJANGO_WS_URL=wss://127.0.0.1
DJANGO_ALLOWED_HOSTS="*"
DJANGO_JWT_SECRET_KEY=mysecretkey
DJANGO_DEBUG=False
DB_NAME=mydb
POSTGRES_DB=mydb
DB_USER=myuser
POSTGRES_USER=myuser
DB_PASSWORD=mypassword