Skip to content

Instantly share code, notes, and snippets.

snnsnn /
Created Oct 21, 2019 — forked from grenade/
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "" -f ~/.ssh/mozilla_rsa
snnsnn /
Created Aug 23, 2019 — forked from kiratp/
(Mostly working) Sample to use TowerGRPC against a TLS endpoint.
// [dependencies]
// futures = "0.1.27"
// http = "0.1.17"
// tokio = "0.1.21"
// tower-request-modifier = { git = "" }
// 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 /
Created Mar 29, 2019 — forked from jonathantneal/
CSS Modules in PHP

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

Docker Quick Reference


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 / println
Last active Apr 10, 2018
Write a program to print your name, date of birth. and mobile number.
View println
snnsnn /
Last active Apr 8, 2018
Test Snippets
* 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.