ifconfig_em0_ipv6="<IP>"
ifconfig_vtnet0_aliases="inet6 <IP> prefixlen 64"
ifconfig_vtnet0_ipv6="inet6 accept_rtadv"
ipv6_default_interface="em0"
ipv6_defaultrouter="fe80::1%em0"
rtsold_enable="YES"
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjEyOTQxMTc2NDcgMC4xMjk0MTE3NjQ3IDAuMTI5NDExNzY0NwAQAYAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
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
mkdir files | |
echo "32c3 is coming!" > files/file.txt | |
nohup go run main.go > /dev/null & | |
curl localhost:8080/file.txt |
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
function dummy () { | |
var args = [].slice.call(arguments) | |
var fn = typeof args[args.length - 1] === 'function' ? args.pop() : null | |
// ... | |
} |
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/sh | |
# | |
# get os type | |
# | |
get_os() { | |
if [ -z $OSTYPE ]; then | |
OSTYPE=$(uname | tr '[:upper:]' '[:lower:]') | |
fi |
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
# files | |
.DS_Store | |
npm-debug.log | |
# folders | |
build/ | |
coverage/ | |
node_modules/ |
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
function openTab (url, method) { | |
var m = method || '_blank' | |
var w = window.open(url, m) | |
w.focus() | |
} | |
openTab('https://google.com/') |
<div style="text-align: center;">
<div class="inline-block">Element</div>
<div class="inline-block">Element</div>
<div class="inline-block">Element</div>
</div>
.inline-block {
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
package bubble | |
func sort(arr []int) { | |
for itemCount := len(arr) - 1; ; itemCount-- { | |
swap := false | |
for i := 1; i <= itemCount; i++ { | |
if arr[i-1] > arr[i] { | |
arr[i-1], arr[i] = arr[i], arr[i-1] | |
swap = true | |
} |
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
update wp_options set option_value = replace(option_value,'http://old_domain.com','http://new_domain.com'); | |
update wp_postmeta set meta_value = replace(meta_value,'http://old_domain.com','http://new_domain.com'); | |
update wp_posts set post_content = replace(post_content,'http://old_domain.com','http://new_domain.com'); | |
update wp_posts set guid = replace(guid,'http://old_domain.com','http://new_domain.com'); | |
update wp_posts set pinged = replace(pinged,'http://old_domain.com','http://new_domain.com'); | |
update wp_comments set comment_content = replace(comment_content,'http://old_domain.com','http://new_domain.com'); |