Skip to content

Instantly share code, notes, and snippets.

View glutaminefree's full-sized avatar

Andrey glutaminefree

View GitHub Profile
@glutaminefree
glutaminefree / generate-ssh-key.sh
Last active October 28, 2019 09:23 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "email@example.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "email@example.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "email@example.com" -f ~/.ssh/mozilla_rsa
@glutaminefree
glutaminefree / _spacing-helpers.scss
Created October 2, 2019 16:02 — forked from jacurtis/_spacing-helpers.scss
SASS Margin and Padding Helpers Loop. Generates .m-t-10 type helper classes.
/*
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects.
It will generate several classes such as:
.m-r-10 which gives margin-right 10 pixels.
.m-r-15 gives MARGIN to the RIGHT 15 pixels.
.m-t-15 gives MARGIN to the TOP 15 pixels and so on.
.p-b-5 gives PADDING to the BOTTOM of 5 pixels
.p-l-40 gives PADDING to the LEFT of 40 pixels
@glutaminefree
glutaminefree / cvimrc
Created December 3, 2018 18:10
cVim options
set smoothscroll
unmap u
unmap d
map u lastClosedTab
map d closeTab
map <C-u> scrollPageUp
map <C-d> scrollPageDown
unmap R
@glutaminefree
glutaminefree / main.js
Last active September 7, 2018 13:16
Iwu skill test
function copyObject(objOrig) {
let objCopy = {};
let key = '';
for(key in objOrig) {
if (objOrig.hasOwnProperty(key)) {
objCopy[key] = typeof objOrig[key] === 'object' ? copyObject(objOrig[key]) : objOrig[key];
}
}
@glutaminefree
glutaminefree / init.coffee
Last active July 23, 2020 07:04
Atom sync-settings
atom.packages.onDidActivatePackage (pack) ->
if pack.name == 'ex-mode'
Ex = pack.mainModule.provideEx()
Ex.registerCommand 'tabl', -> atom.workspace.getActivePane().moveItemLeft()
Ex.registerCommand 'tabr', -> atom.workspace.getActivePane().moveItemRight()
Ex.registerCommand 'e', -> atom.workspace.getActiveTextEditor().getBuffer().reload()
treeView = document.querySelector('.tool-panel.tree-view')
@glutaminefree
glutaminefree / clean-firefox.sh
Created June 2, 2016 05:08
Start firefox with clear temporarily profile
#!/bin/sh
PROFILEDIR=`mktemp -p /tmp -d ff.XXXX.d`
firefox -profile $PROFILEDIR -no-remote -new-instance
rm -rf $PROFILEDIR