[]uint8 => len: 13 bytes, cap: 24 bytes
[][]int16 => len: 24 bytes, cap: 156 bytes
[][]int32 => len: 24 bytes, cap: 24 bytes
[][]int64 => len: 24 bytes, cap: 24 bytes
[]bool => len: 13 bytes, cap: 13 bytes
[]struct {} => len: 12 bytes, cap: 12 bytes
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 | |
git config \ | |
--global \ | |
url."[email protected]".insteadOf \ | |
"https://github.com" |
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 main | |
import ( | |
"fmt" | |
) | |
func fib() func() int{ | |
a, b := 0, 1 | |
return func() int{ | |
a, b = b, a+b |
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
curl -sL --user "login:pass" https://$GITHUB_AT:@api.github.com/orgs/REPO/repos?per_page=200 | jq .[].ssh_url | xargs -n 1 -P 4 git clone |
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 main | |
import ( | |
"errors" | |
"io" | |
"io/ioutil" | |
"log" | |
"os" | |
"path/filepath" | |
"regexp" |
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 main | |
import ( | |
"fmt" | |
"syscall" | |
"unsafe" | |
) | |
// error is nil on success | |
func reboot() error { |
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 main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
) | |
const ( | |
CONN_INTERFACE = "0.0.0.0" |
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
<?php | |
$interface = '0.0.0.0'; | |
$port = 9000; | |
$sock = socket_create(AF_INET,SOCK_STREAM,0); | |
socket_bind($sock, $interface, $port) or die(); | |
socket_listen($sock); | |
$client = socket_accept($sock); | |
echo "connection established: $client"; |
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 main | |
import ( | |
"fmt" | |
"syscall" | |
"unsafe" | |
) | |
// error is nil on success | |
func reboot() error { |
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
upstream phpfpm { | |
server unix:/run/php/php7.0-fpm.sock; | |
} | |
server { | |
set $main_path /var/www/html; | |
server_name localhost default; | |
charset utf-8; | |
source_charset utf-8; | |
listen 0.0.0.0:80 ; |