This file contains hidden or 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
diff --git a/tmp/2.txt b/tmp/1.txt | |
index 650890c..f490980 100644 | |
--- a/tmp/2.txt | |
+++ b/tmp/1.txt | |
@@ -54,7 +54,6 @@ | |
@"NSURLRequest" | |
@"NSURLRequest"40@0:8@"NSURLConnection"16@"NSURLRequest"24@"NSURLResponse"32 | |
@"NSURLResponse" | |
-@"UIImage" | |
@16@0:8 |
This file contains hidden or 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
ip_rule_add () { | |
if ip rule list | grep -Fq $1 | |
then | |
ip rule list | grep -F $1 | awk -F\: -f <(cat - <<-'EOD' | |
function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s } | |
function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s } | |
function trim(s) { return rtrim(ltrim(s)); } | |
BEGIN {} | |
{ | |
rule = trim(trim($2)); |
This file contains hidden or 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 | |
from pyroute2 import IPRoute | |
from pyroute2.netlink.rtnl.fibmsg import FR_ACT_NAMES | |
from netaddr import IPNetwork | |
from socket import AF_INET | |
import click | |
ipr = IPRoute() | |
FR_ACT_NAMES_MAP = dict((v, k) for k, v in FR_ACT_NAMES.iteritems()) |
This file contains hidden or 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 | |
set -e | |
# constants | |
MIRROR='http://mirror.us.leaseweb.net/centos/' | |
HOSTNAME="$(hostname)" | |
SSH_KEYS="$(cat /root/.ssh/authorized_keys)" | |
function decompress_initrd() { | |
local initrd_tmp="$(mktemp)" |
This file contains hidden or 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
(async () => { | |
const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms)); | |
const deleteTransaction = async () => { | |
// click the fucking table | |
$('.field-date')[1].click(); | |
await sleep(1000); | |
// click the fucking delete button | |
$('button[data-automation-id="button-delete"]').click(); | |
await sleep(1000); |
This file contains hidden or 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 | |
UNMS_CONTAINER=unms-nginx | |
UNIFI_CONTAINER=unifi-network-application | |
UNIFI_CONFIG_PATH=/etc/unifi | |
CRT_FINAL=${UNIFI_CONFIG_PATH}/live.crt | |
KEY_FINAL=${UNIFI_CONFIG_PATH}/live.key | |
CRT_TMP=$(mktemp) |
OlderNewer