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
| " Make Vim more useful | |
| set nocompatible | |
| " Use the OS clipboard by default (on versions compiled with `+clipboard`) | |
| " Set color scheme!¬ | |
| colorscheme Tomorrow-Night | |
| set clipboard=unnamed | |
| " Disable mode | |
| set noshowmode | |
| " Enhance command-line completion | |
| set wildmenu |
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
| ### Aliases | |
| # Open specified files in Sublime Text | |
| # "s ." will open the current directory in Sublime | |
| alias s='open -a "Sublime Text"' | |
| # Open specified files in Atom | |
| # "a ." will open the current directory in Sublime | |
| alias a='atom .' |
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 | |
| /** | |
| * @file | |
| * Example checksum calculation for Softbank. | |
| */ | |
| // Example only. Real hash key value is provided by Softbank. | |
| $hash_key = 'a2d8648d0246a924bed081433930f868c8100224'; |
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" | |
| "log" | |
| "os" | |
| "time" | |
| "cloud.google.com/go/pubsub" | |
| "golang.org/x/net/context" | |
| "google.golang.org/api/option" |
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 jsonequals | |
| import ( | |
| "encoding/json" | |
| "log" | |
| "reflect" | |
| ) | |
| // jsonEquals - Compare the equality of two JSON byte arrays. | |
| // |
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" | |
| "io" | |
| "net/http" | |
| ) | |
| func main() { | |
| passer := &DataPasser{logs: make(chan string)} |
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
| #!/usr/bin/expect -f | |
| # Filename: beanstalk-purge | |
| set timeout 1 | |
| spawn telnet [lindex $argv 0] [lindex $argv 1] | |
| sleep 1 | |
| send "use [lindex $argv 2]\n" | |
| expect "USING" | |
| for {set i 1} {$i < [lindex $argv 3]} { incr i 1 } { |
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
| $app->get('/test', function () use ($app) { | |
| $orders = \App\Models\Order::with('lineItems', 'payments', 'payments.metaData', 'totals', 'metaData')->get(); | |
| foreach ($orders as $order) { | |
| print "Spoofing order:" . $order->order_number . "\r\n"; | |
| event(new \App\Events\OrderCreated($order)); | |
| } | |
| }); |
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
| version: "3" | |
| services: | |
| roach1: | |
| container_name: roach1 | |
| image: cockroachdb/cockroach:v1.1.3 | |
| command: start --insecure | |
| ports: | |
| - "26257:26257" | |
| - "8080:8080" | |
| volumes: |
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 ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net" | |
| "net/http" | |
| "sync" |
OlderNewer