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
// iOS 11 moves OFVariables to const | |
// https://twitter.com/s1guza/status/908790514178301952 | |
// however, if we: | |
// 1) Can find IODTNVRAM service | |
// 2) Have tfp0 / kernel read|write|alloc | |
// 3) Can leak kernel address of mach port | |
// then we can fake vtable on IODTNVRAM object | |
// async_wake satisfies those requirements | |
// however, I wasn't able to actually set or get ANY nvram variable | |
// not even userread/userwrite |
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 | |
set -euo pipefail | |
# Step 0: Log in | |
if ! op whoami >/dev/null 2>/dev/null; then | |
eval "$(op signin)" | |
fi | |
if [ "$(bw status | jq -r .status)" != "unlocked" ]; 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
server { | |
server_name gram.com; | |
location / { | |
root /var/www/gram; | |
try_files $uri $uri/index.html; | |
# protect with basic auth, we don't want to get banned by rkn | |
auth_basic "webogram"; | |
auth_basic_user_file /var/www/gram.htpasswd; |
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
import requests | |
import io | |
from PIL import Image | |
import re | |
from queue import Queue | |
import threading | |
class BotException(Exception): | |
pass |
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
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"os" | |
"k8s.io/apimachinery/pkg/runtime" | |
"k8s.io/apimachinery/pkg/runtime/serializer" | |
"k8s.io/apimachinery/pkg/runtime/serializer/json" |
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
+-o unknown vendor unknown product Media <class IOMedia, registered, matched, $ | |
| { | |
| "Leaf" = No | |
| "Writable" = Yes | |
| "BSD Minor" = 0 | |
| "Preferred Block Size" = 4096 | |
| "BSD Major" = 14 | |
| "BSD Name" = "disk0" | |
| "Size" = 8120172544 | |
| "Content Hint" = "" |
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
do shell script "diskutil mount disk0s3" | |
tell application "System Events" | |
tell application "System Preferences" | |
set current pane to pane id "com.apple.preference.startupdisk" | |
activate | |
delay 1 | |
end tell | |
tell application process "System Preferences" |
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 | |
""" | |
requirements.txt: | |
certifi==2021.10.8 | |
charset-normalizer==2.0.12 | |
httplib2==0.20.4 | |
idna==3.3 | |
oauth2==1.9.0.post1 | |
oauthlib==3.2.0 | |
pyparsing==3.0.8 |
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
/* | |
* Copyright 2017 Adam H. Leventhal. All Rights Reserved. | |
*/ | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <strings.h> |
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
- command: | |
- kube-apiserver | |
- --bind-address=127.0.1.1 | |
- --requestheader-allowed-names=front-proxy-client | |
- --requestheader-client-ca-file=/etc/kubernetes/pki/front-proxy-ca.crt | |
- --requestheader-extra-headers-prefix=X-Remote-Extra- | |
- --requestheader-group-headers=X-Remote-Group | |
- --requestheader-username-headers=X-Remote-User | |
- --secure-port=6443 | |
- ... more args ... |