Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

denisinla

:octocat:
View GitHub Profile
@CodeMyUI
CodeMyUI / index.jade
Created Oct 24, 2016
Stagger Text Animation - GSAP
View index.jade
#demo
span.color-1 H
span.color-2 e
span.color-3 l
span.color-4 l
span.color-1 o
span.color-2 &nbsp
span.color-2 Y
span.color-3 o
@subfuzion
subfuzion / README.md
Last active Oct 21, 2021
vim/neovim configuration
View README.md

I recently switched over to neovim (see my screenshots at the bottom). Below is my updated config file.

It's currently synchronized with my .vimrc config except for a block of neovim-specific terminal key mappings.

This is still a work in progress (everyone's own config is always a labor of love), but I'm already extremely pleased with how well this is working for me with neovim. While terminal mode isn't enough to make me stop using tmux, it is quite good and I like having it since it simplifies my documentation workflow for yanking terminal output to paste in a markdown buffer.

These days I primarily develop in Go. I'm super thrilled and grateful for fatih/vim-go,

@ankurk91
ankurk91 / github_gpg_key.md
Last active Oct 20, 2021
Signing git commits using GPG (Ubuntu/Mac)
View github_gpg_key.md

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@LauLaman
LauLaman / gpg.md
Last active Sep 15, 2021
Use GPG to sign commits using git & PHPStorm
View gpg.md

1 - install GPG tools : https://gpgtools.org/

2 - Create new key for your github email

3 - Add key to git on your local machine: git config --global user.signingkey YOURKEY

4 - configure git to sign all commits: git config --global commit.gpgsign true

5 - add to the bottom of ~/.gnupg/gpg.conf: (create the file if it not exists)

@jshimko
jshimko / docker-ssl-deployment.sh
Last active Nov 24, 2020
Deploy Reaction Commerce on Digital Ocean with Nginx and a Let's Encrypt SSL certificate
View docker-ssl-deployment.sh
# start a server on Digital Ocean
# https://docs.docker.com/machine/drivers/digital-ocean/
docker-machine create \
--driver digitalocean \
--digitalocean-access-token <YOUR API KEY> \
--digitalocean-size 2gb \
reaction
# tell Docker to run commands on that server
@0xIslamTaha
0xIslamTaha / install_golang.sh
Last active Nov 3, 2016 — forked from jniltinho/install_golang.sh
Install Golang on Linux
View install_golang.sh
#!/bin/bash
## Install Golang 1.6.2 64Bits on Linux (Debian|Ubuntu|OpenSUSE|CentOS)
## http://www.linuxpro.com.br/2015/06/golang-aula-1-instalacao-da-linguagem-no-linux.html
## Run as root (sudo su)
## Thank's **Bruno Albuquerque bga at bug-br.org.br**
GO_URL="https://storage.googleapis.com/golang"
GO_FILE="go1.6.2.linux-amd64.tar.gz"
View coding-styles.md

These examples are presented in an attempt to show how each coding styles attempts to or does not attempt to isolate side-effects. There are only 2 semantic elements in a barebone "Hello World" implementation:

  • Invocation of console.log
  • Declaration of HELLO_WORLD

Since every coding style can abstract away data into a parameter or variable, there is no point for us to show that. All implementations assume HELLO_WORLD is a constant that is always inlined. This way it reduces the variations we need to present. (To make an anology, if we were to implement incrementByOne, would we need to inline the number 1 or pass it in as parameter?)

CAVEAT/LIMITATION: All implementations also assume console is static global. In case of functional programming, console.log is asumed to be a function that can be passed around without further modification. (This is not the case in the browser, but that can be resolved with console.log.bind(console))

Declarative

@alopresto
alopresto / gpg_git_signing.md
Last active Oct 17, 2021
Steps to enable GPG signing of git commits.
View gpg_git_signing.md

If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:

  1. Generate and add your key to GitHub
  2. $ git config --global commit.gpgsign true ([OPTIONAL] every commit will now be signed)
  3. $ git config --global user.signingkey ABCDEF01 (where ABCDEF01 is the fingerprint of the key to use)
  4. $ git config --global alias.logs "log --show-signature" (now available as $ git logs)
  5. $ git config --global alias.cis "commit -S" (optional if global signing is false)
  6. $ echo "Some content" >> example.txt
  7. $ git add example.txt
  8. $ git cis -m "This commit is signed by a GPG key." (regular commit will work if global signing is enabled)
@nmai
nmai / iconMonster.js
Last active Sep 25, 2020 — forked from illmat/iconMonster.js
Downloads all IconMonstr.com SVG files. Works, but may take some time to complete. About 15% of the SVG icons cannot be retrieved through their previews so the script must download them individually.
View iconMonster.js
var casper = require('casper').create({
verbose: true,
logLevevel: 'debug',
pageSettings: {
webSecurityEnabled: false
}
});;
var fs = require('fs');
var pages = [];
@lopezjurip
lopezjurip / README.md
Created Sep 26, 2015
OSX Homebrew: docker-machine setup
View README.md

Prerequisites

Make sure you have installed Homebrew and (Homebrew-Cask)[http://caskroom.io/].

# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# Install Homebrew-cask
brew install caskroom/cask/brew-cask