- autocomplete for native functions:
a = new Pointer(0x1337, @encode(void)); a.<tab>
system.print
that prints to cycript console when injected into a process
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://json.schemastore.org/resume", | |
"meta": { | |
"theme": "elegant" | |
}, | |
"basics": { | |
"name": "Asger Hautop Drewsen", | |
"email": "asgerdrewsen@gmail.com", | |
"website": "https://tyilo.com/", | |
"label": "MSc in Computer Science", |
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 | |
if [[ $(id -u) -ne 0 ]]; then | |
echo "Run with root!" | |
exit 1 | |
fi | |
net_connected() { | |
ping -c 1 1.1.1.1 > /dev/null | |
} |
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 | |
import sys | |
from pathlib import Path | |
import requests | |
YEAR = 2019 | |
URL_PREFIX = f"https://adventofcode.com/{YEAR}" | |
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
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>Privacy Policy</title> <style>body{font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; padding:1em;}</style></head> <body><h2>Privacy Policy</h2> <p> Snapsedaterne built the Schnapps Counter app as an Open Source app. This SERVICE is provided by Snapsedaterne at no cost and is intended for use as is. | |
</p> <p>This page is used to inform website visitors regarding our policies with the collection, use, and | |
disclosure of Personal Information if anyone decided to use our Service. | |
</p> <p>If you choose to use our Service, then you agree to the collection and use of information in relation | |
to this policy. The Personal Information that we collect is used for providing and improving the | |
Service. We will not use or share your information with anyone except as described | |
in this Privacy P |
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
version: "3" | |
services: | |
vpn: | |
image: hwdsl2/ipsec-vpn-server | |
env_file: | |
- ./vpn.env | |
ports: | |
- "500:500/udp" | |
- "4500:4500/udp" |
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 <bits/stdc++.h> | |
using namespace std; | |
#define rep(i, a, b) for (int i = a; i < (b); ++i) | |
#define trav(a, x) for (auto & a : x) | |
#define all(x) x.begin(), x.end() | |
#define sz(x) (int)(x).size() | |
#define endl "\n" | |
typedef long long ll; | |
typedef pair<int, int> pii; |
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 <bits/stdc++.h> | |
#include <regex.h> | |
using namespace std; | |
#define rep(i, a, b) for (int i = a; i < (b); ++i) | |
#define trav(a, x) for (auto & a : x) | |
#define all(x) x.begin(), x.end() | |
#define sz(x) (int)(x).size() | |
typedef long long ll; | |
typedef pair<int, int> pii; |
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
default partial alphanumeric_keys | |
xkb_symbols "basic" { | |
include "us(basic)" | |
name[Group1]= "English (US, with æøå)"; | |
key <AD11> { [ bracketleft, braceleft, aring, Aring ] }; | |
key <AC10> { [ semicolon, colon, ae, AE ] }; | |
key <AC11> { [ apostrophe, quotedbl, oslash, Ooblique ] }; |
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 | |
# Install sleepwatcher | |
cd /tmp | |
curl -O http://www.bernhard-baehr.de/sleepwatcher_2.2.tgz | |
tar -zxvf sleepwatcher_2.2.tgz | |
cd sleepwatcher_2.2 | |
sudo mkdir -p /usr/local/sbin /usr/local/share/man/man8 | |
sudo cp sleepwatcher /usr/local/sbin | |
sudo cp sleepwatcher.8 /usr/local/share/man/man8 | |
sudo cp config/de.bernhard-baehr.sleepwatcher-20compatibility.plist /Library/LaunchAgents |
NewerOlder