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
root@ejjio:/var/www/breaking-sop# curl https://api.stripe.com -I | |
HTTP/1.1 401 Unauthorized | |
Server: nginx | |
Date: Tue, 23 Feb 2016 06:23:25 GMT | |
Content-Type: application/json | |
Content-Length: 342 | |
Connection: keep-alive | |
Access-Control-Allow-Credentials: true | |
Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS, DELETE | |
Access-Control-Allow-Origin: * |
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
var total = ""; | |
for( var i = 0; i < 100000; i++ ) { | |
total = total + i.toString(); | |
history.pushState(0,0, total ); | |
} |
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 ( | |
"crypto/rand" | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func main() { |
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 ( | |
"log" | |
"net/http" | |
"os" | |
"github.com/gorilla/sessions" | |
) |
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 ( | |
"log" | |
"net/http" | |
"os" | |
"github.com/gorilla/sessions" | |
) |
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 ( | |
"log" | |
"net/http" | |
"os" | |
"github.com/gorilla/sessions" | |
) |
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 ( | |
"os/exec" | |
"fmt" | |
) | |
func main() { | |
err := exec.Command("man", "-P /tmp/runme.sh", "man").Run() | |
fmt.Println(err) |
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
#!/bin/bash | |
cd | |
echo "export PATH=\"/usr/local/go/bin/\":\$PATH | |
export GOPATH=\"/root/go\"" >> ~/.bashrc | |
curl https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz > go.1.4.2.tar.gz | |
tar -zxvf go.1.4.2.tar.gz | |
mv go /usr/local/ | |
mkdir go | |
cd go | |
mkdir src bin pkg |
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 ( | |
"crypto/rand" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
) |
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 ( | |
"crypto/rand" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
) |