Skip to content

Instantly share code, notes, and snippets.

View yakovkhalinsky's full-sized avatar

Yakov Khalinsky yakovkhalinsky

View GitHub Profile
@yakovkhalinsky
yakovkhalinsky / git-cleanup
Last active January 30, 2020 22:01
Prune local GIT branches that are merged into origin master
git branch --merged master | grep -v '^[ *]*master$' | xargs git branch -d
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
entry: {
'datechooser': './src/index.js',
'demo-app': './demo/app.js'
},
output: {
filename: './lib/[name].js'
},
{
"extends": [ "standard", "standard-react" ],
"plugins": [
"react"
],
"rules": {
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
@yakovkhalinsky
yakovkhalinsky / gist:2edd73beeb391bad7e394f6bc5c21aa2
Created April 6, 2017 06:24
Generate 2048 random bytes - Base64 encoded
openssl rand -base64 2048

Keybase proof

I hereby claim:

  • I am yakovkhalinsky on github.
  • I am russianator (https://keybase.io/russianator) on keybase.
  • I have a public key whose fingerprint is 7D47 0BE8 A0AA 821F 8FF4 77D2 E6DF 3A87 7D6C 5959

To claim this, I am signing this object:

node -e "console.log(require('./package.json').engines.node.substr(1))"
@yakovkhalinsky
yakovkhalinsky / arc.svg
Created July 1, 2016 06:57
SVG Arc using Dash Offset to animate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yakovkhalinsky
yakovkhalinsky / .eslintrc
Created May 21, 2016 01:19
Simple eslint config
{
"extends": "eslint:recommended",
"rules": {
"comma-dangle": [2, "never"],
"no-cond-assign": 2,
"no-debugger": 2,
"no-dupe-args": 2,
"no-unreachable": 2,
"no-unused-vars": 2
},
@yakovkhalinsky
yakovkhalinsky / .editorconfig
Created May 21, 2016 01:18
Stock standard .editorconfig file
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
@yakovkhalinsky
yakovkhalinsky / self-signed-cert.sh
Created April 19, 2016 19:20
Commands to create a self signed key and certificate files
openssl req -x509 -newkey rsa:2048 -keyout key.password.pem -out cert.pem -days 36500
# remvoe the passphrase from the key file
openssl rsa -in key.password.pem -out key.pem