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 | |
| /** | |
| * Created by PhpStorm. | |
| * User: necrogami | |
| * Date: 2/8/17 | |
| * Time: 09:38 | |
| */ | |
| require_once 'vendor/autoload.php'; |
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
| # Generated by iptables-save v1.4.7 on Sat Nov 22 16:28:23 2014 | |
| *nat | |
| :PREROUTING ACCEPT [1940:84298] | |
| :POSTROUTING ACCEPT [32:2722] | |
| :OUTPUT ACCEPT [32:2722] | |
| -A PREROUTING -i eth0 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 9000 | |
| -A PREROUTING -i eth0 -p tcp -m tcp --dport 443 -j REDIRECT --to-ports 9001 | |
| COMMIT | |
| # Completed on Sat Nov 22 16:28:23 2014 | |
| # Generated by iptables-save v1.4.7 on Sat Nov 22 16:28:23 2014 |
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
| panic: runtime error: invalid memory address or nil pointer dereference | |
| [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x109d9b1] | |
| goroutine 1 [running]: | |
| github.com/sony/sonyflake.(*Sonyflake).NextID(0x0, 0x0, 0x0, 0x0) | |
| /Users/necrogami/code/gocode/src/github.com/sony/sonyflake/sonyflake.go:89 +0x41 | |
| github.com/osamingo/indigo.(*Generator).NextID(0xc42000c480, 0x0, 0x113b5e0, 0x0, 0x0) | |
| /Users/necrogami/code/gocode/src/github.com/osamingo/indigo/indigo.go:43 +0x32 | |
| main.init.1() | |
| /Users/necrogami/code/gocode/src/github.com/necrogami/test/main.go:18 +0xcb |
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 | |
| ini_set('memory_limit', '-1'); | |
| require 'vendor/autoload.php'; | |
| use Tumblr\API\Client; | |
| $dotenv = new Dotenv\Dotenv(__DIR__); | |
| $dotenv->load(); |
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 lastValues(column, num, dateTime) { | |
| var lastRow = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getMaxRows(); | |
| var values = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("Sheet1").getRange(column + "1:" + column + lastRow).getValues(); | |
| for (; values[lastRow - 1] == "" && lastRow > 0; lastRow--) {}; | |
| arr = []; | |
| for(i=0; i < num+1; i++){ | |
| arr.push(values[lastRow - i]); |
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 | |
| GVERSION="1.9" | |
| GFILE="go$GVERSION.linux-amd64.tar.gz" | |
| GOPATH="$HOME/go" | |
| GOROOT="/usr/local/go" | |
| if [ -d $GOROOT ]; then | |
| echo "Installation directories already exist $GOROOT" |
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
| data:text/html;base64,PGh0bWwgb25jbGljaz0iIiBjbGFzcz0iIj48aGVhZD48dGl0bGU+Tm90ZXBhZGxldCAtIFdpbmRvd3MgQXBwbGljYXRpb24gTGlua3MKPC90aXRsZT4KPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCwgaW5pdGlhbC1zY2FsZT0xLjAiPgoKCgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgpodG1sIHsKICAgIHBhZGRpbmc6IDBweCA1cHggNDBweDsKICAgIGJhY2tncm91bmQtY29sb3I6ICNFRUU7CiAgICBiYWNrZ3JvdW5kLWltYWdlOiByZXBlYXRpbmctbGluZWFyLWdyYWRpZW50KDQ1ZGVnLCB0cmFuc3BhcmVudCA1cHgsIGhzbGEoMTk3LCA2MiUsIDExJSwgMC41KSA1cHgsIGhzbGEoMTk3LCA2MiUsIDExJSwgMC41KSAxMHB4LCBoc2xhKDUsIDUzJSwgNjMlLCAwKSAxMHB4LCBoc2xhKDUsIDUzJSwgNjMlLCAwKSAzNXB4LCBoc2xhKDUsIDUzJSwgNjMlLCAwLjUpIDM1cHgsIGhzbGEoNSwgNTMlLCA2MyUsIDAuNSkgNDBweCwgaHNsYSgxOTcsIDYyJSwgMTElLCAwLjUpIDQwcHgsIGhzbGEoMTk3LCA2MiUsIDExJSwgMC41KSA1MHB4LCBoc2xhKDE5NywgNjIlLCAxMSUsIDApIDUwcHgsIGhzbGEoMTk3LCA2MiUsIDExJSwgMCkgNjBweCwgaHNsYSg1LCA1MyUsIDYzJSwgMC41KSA2MHB4LCBoc2xhKDUsIDUzJSwgNjMlLCAwLjUpIDcwcHgsIGhzbGEoMzUsIDkxJSwgNjUlLCAwLjUpIDcwcHgsIGhzbGEoMzUsIDkxJSwgNjUlLCAwLjUpIDgwcHgsIGhzbGEoMzUsIDkxJSwgNjUlLCAwKS |
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
| Necrogami at Antons-MacBook-Pro-2 in ~/code/invoice on develop [$] | |
| $ composer install | |
| Loading composer repositories with package information | |
| Installing dependencies (including require-dev) from lock file | |
| Package operations: 229 installs, 0 updates, 0 removals | |
| - Installing codeception/c3 (2.4.0): Loading from cache | |
| [codeception/c3] c3.php is already up-to-date | |
| - Installing paragonie/random_compat (v2.0.11): Loading from cache | |
| - Installing symfony/polyfill-php70 (v1.7.0): Loading from cache | |
| - Installing symfony/polyfill-mbstring (v1.7.0): Loading from cache |
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
| root@mars:~# curl --head https://localhost:9001 --insecure | |
| HTTP/1.1 200 OK | |
| Server: nginx/1.13.8 | |
| Content-Type: text/html; charset=UTF-8 | |
| Connection: keep-alive | |
| X-Powered-By: PHP/7.2.2 | |
| Cache-Control: no-cache, private | |
| Date: Sun, 11 Mar 2018 01:06:34 GMT | |
| Set-Cookie: XSRF-TOKEN=eyJpdiI6ImhYbFpqOXZMU1B5M1BRcTFRZ0FsVmc9PSIsInZhbHVlIjoiM1ptR1laRG5lTW82YVgwTUFJbUh2d21cL3RLeFhEbkJRQUU1Njk4QWwxTDBrYmgrYkFETnNqVWszRHlhTlZrQlhqanNiMElzM0UxSFFGbm00NHJicUdRPT0iLCJtYWMiOiIzZDM4YWQ0ZGMxOTBkYTM2Y2IzMGY1MTVlMjI4NDdiZWY1N2U4OWY2YTljNTJiZWViYjRhMWYxZDM4NmFhMzkwIn0%3D; expires=Sun, 11-Mar-2018 03:06:34 GMT; Max-Age=7200; path=/ | |
| Set-Cookie: laravel_session=eyJpdiI6IlZFd21SK1ZCQkx3QU1CS0Jtb3I0NXc9PSIsInZhbHVlIjoibXc5dVpDazRnRHlSMzJpd1RqcHZKUVlwTmFqWHc3Q0dDRDdOXC9rVXdNNHE0NGc4QzdYQ0s4V3p4MHk0TEgyM21pVUlneTVXVVFmOVRLSkpDVlExZnNBPT0iLCJtYWMiOiI4ZjcwOGNiMTQ2NmEwNzA0MmY1MzljNmZkNTQyOTc2OGUxZGE2OTE2ZmZhMTg3ZWMwOTliMTUyNmM5ODMwMTAzIn0%3D; expires=Sun, 11-Mar-2018 03:06:34 GMT; Max-Age=7200; path=/; HttpOnly |
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
| root@mars:~# netstat -tap | |
| Active Internet connections (servers and established) | |
| Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name | |
| tcp 0 0 *:ssh *:* LISTEN 1703/sshd | |
| tcp 0 0 localhost:9000 *:* LISTEN 2613/0 | |
| tcp 0 0 localhost:9001 *:* LISTEN 2613/0 | |
| tcp 0 332 mars.c4.io:ssh 104-11-17-26.ligh:53237 ESTABLISHED 2613/0 | |
| tcp6 0 0 [::]:ssh [::]:* LISTEN 1703/sshd | |
| tcp6 0 0 ip6-localhost:9000 [::]:* LISTEN 2613/0 | |
| tcp6 0 0 ip6-localhost:9001 [::]:* LISTEN 2613/0 |