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
| npm_install() | |
| { | |
| cd $PROJECT_HOME # package.json in here | |
| if npm install | |
| then | |
| return 0 | |
| else |
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
| // NewOpenSSLTransport returns a TCP connection establish with OpenSSL. | |
| func NewOpenSSLTransport(trustPath, certPath, keyPath, host, port string, dialOpts *OpenSSLDialOptions) (*openssl.Conn, error) { | |
| // Default to flag 0 | |
| if dialOpts == nil { | |
| dialOpts = &OpenSSLDialOptions{} | |
| } | |
| ctx, err := openssl.NewCtx() | |
| if err != nil { |
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
| deciphernow/odrive:latest: | |
| dockerng.image_present: | |
| - insecure_registry: True | |
| - name: deciphernow/odrive:latest |
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
| extern crate yaml_rust; | |
| use std::fs::File; | |
| use std::io; | |
| use std::io::prelude::*; | |
| use std::process; | |
| // NOTE: why self here, again? | |
| // because `use` defaults from crate root, and yaml is beneath | |
| // crate root |
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
| import ( | |
| "encoding/json" | |
| "log" | |
| "net" | |
| "net/http" | |
| "os" | |
| "gopkg.in/mgo.v2" | |
| "github.com/rs/cors" |
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/python3 | |
| if __name__ == '__main__': | |
| print('hello world') |
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 | |
| mkdir -p $HOME/.terminal-slack | |
| ( | |
| cd $HOME/.terminal-slack | |
| git clone https://github.com/evanyeung/terminal-slack > /dev/null | |
| cat > terminal-slack.sh << EOF |
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 kafka | |
| import ( | |
| "testing" | |
| "time" | |
| "github.com/samuel/go-zookeeper/zk" | |
| ) | |
| func TestDiscoverKafka(t *testing.T) { |
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
| import ( | |
| "errors" | |
| "log" | |
| "net/http" | |
| "time" | |
| "flag" | |
| "fmt" | |
| ) | |
| var ( |