This file has been truncated, but you can view the full file.
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
| == Info: Rebuilt URL to: https://api.audd.io/ | |
| == Info: Trying 2606:4700:30::681b:9502... | |
| == Info: TCP_NODELAY set | |
| == Info: Connected to api.audd.io (2606:4700:30::681b:9502) port 443 (#0) | |
| == Info: ALPN, offering h2 | |
| == Info: ALPN, offering http/1.1 | |
| == Info: Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH | |
| == Info: successfully set certificate verify locations: | |
| == Info: CAfile: /etc/ssl/cert.pem | |
| CApath: none |
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
| 'use strict'; | |
| function dataViewWriteUTF8(view, offset, str) { | |
| var l = str.length; | |
| for (var i = 0; i < l; i++) { | |
| view.setUint8(offset+i, str.charCodeAt(i)); | |
| } | |
| } | |
| // channels: |
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
| // seems to known issue/behaviour in the kernel | |
| package main | |
| import ( | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os/exec" | |
| ) |
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
| type multiWriteCloser struct { | |
| writers io.Writer // is a multi writer | |
| closers []io.Closer | |
| } | |
| func MultiWriteCloser(writerClosers ...io.WriteCloser) io.WriteCloser { | |
| w := []io.Writer{} | |
| c := []io.Closer{} | |
| for _, wc := range writerClosers { | |
| w = append(w, wc) |
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
| docker run --rm -ti \ | |
| -w "$PWD" \ | |
| -v "$PWD:$PWD" \ | |
| -v "$(go env GOPATH)/pkg":"$(docker run --rm golang:1.12 go env GOPATH)/pkg" \ | |
| -v "$(go env GOCACHE):$(docker run --rm golang:1.12 go env GOCACHE)" \ | |
| golang:1.12 |
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 ( | |
| "os" | |
| ) | |
| func main() { | |
| pr, pw, _ := os.Pipe() |
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
| ghcurl(){ | |
| local p="$1" | |
| shift | |
| curl \ | |
| -s \ | |
| -H "Accept: application/vnd.github.v3+json" \ | |
| -H "Authorization: token $GITHUB_TOKEN" \ | |
| "$@" \ | |
| "$GITHUB_API_BASE_URL/$p" | |
| } |
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
| WAV.tcl { | |
| prep: osascript \ | |
| -e 'tell application "System Events"' \ | |
| -e ' tell process "Hex Fiend"' \ | |
| -e ' click pop up button 1 of window 1' \ | |
| -e ' click menu item "WAV" of menu 1 of pop up button 1 of window 1' \ | |
| -e ' end tell' \ | |
| -e 'end tell' | |
| } |
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 | |
| if [ "$DOCKERDLV_IMAGE" = "" ]; then | |
| echo "DOCKERDLV_IMAGE not set" | |
| exit 1 | |
| fi | |
| if [ "$DOCKERDLV_WORKSPACE_ROOT" = "" ]; then | |
| echo "DOCKERDLV_WORKSPACE_ROOT not set" | |
| exit 1 | |
| 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
| RELO partial: readelf -l prog | grep GNU_RELRO | |
| RELO full: readelf -d prog | grep BIND_NOW | |
| PIE/ASLR: readelf -h prog | grep DYN | |
| NX: readelf -W -l prog | grep GNU_STACK | grep -v RWE |