Skip to content

Instantly share code, notes, and snippets.

SnnSnn snnsnn

Block or report user

Report or block snnsnn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@snnsnn
snnsnn / generate-ssh-key.sh
Created Oct 21, 2019 — forked from grenade/generate-ssh-key.sh
Correct file permissions for ssh keys and config.
View generate-ssh-key.sh
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@snnsnn
snnsnn / tower-grpc-tls.rs
Created Aug 23, 2019 — forked from kiratp/tower-grpc-tls.rs
(Mostly working) Sample to use TowerGRPC against a TLS endpoint.
View tower-grpc-tls.rs
// [dependencies]
// futures = "0.1.27"
// http = "0.1.17"
// tokio = "0.1.21"
// tower-request-modifier = { git = "https://github.com/tower-rs/tower-http" }
// tower-grpc = { version = "0.1.0", features = ["tower-hyper"] }
// tower-service = "0.2"
// tower-util = "0.1"
// tokio-rustls = "0.10.0-alpha.3"
@snnsnn
snnsnn / README.md
Created Mar 29, 2019 — forked from jonathantneal/README.md
CSS Modules in PHP
View README.md

CSS Modules lets you write and use simple class names rather than remembering and maintaining long unique class names for every component. CSS Modules mutates all of your classnames from each partials into new, completely unique classnames that will not conflict when they are bundled together into your main CSS file. Then, a JSON file is generated that maps the happy classnames from each file to the unique classname in the combined file. You load this map in PHP, and begin using the easy-to-remember classnames as you wish.

View Docker Reference.md

Docker Quick Reference

Concepts

Dockerfile: blueprint for an image that defines what goes on in the environment inside a container.

Image: an executable package that includes everything needed to run an application --the code, a runtime, libraries, environment variables, and configuration files.

Container: a runtime instance of an image --what the image becomes in memory when executed (that is, an image with state, or a user process).

@snnsnn
snnsnn / println
Last active Apr 10, 2018
Write a program to print your name, date of birth. and mobile number.
View println
println!("Hello");
@snnsnn
snnsnn / Direction.rs
Last active Apr 8, 2018
Test Snippets
View Direction.rs
/*
* Write a function called greet
* which takes a name parameter
* and returns a String with a greeting
* "Hello {name}!"
*/
You can’t perform that action at this time.