Skip to content

Instantly share code, notes, and snippets.

@ye
ye / list-changes-between-branches.sh
Created Oct 21, 2019 — forked from iodic/list-changes-between-branches.sh
Show a list of commit differences between git branches
View list-changes-between-branches.sh
git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative master..develop
@ye
ye / openssl_commands.md
Created Dec 4, 2018 — forked from p3t3r67x0/openssl_commands.md
Some list of openssl commands for check and verify your keys
View openssl_commands.md

openssl

Install

Install the OpenSSL on Debian based systems

sudo apt-get install openssl
@ye
ye / .gitconfig
Last active Jan 2, 2016 — forked from igal/gist:53855
Local Git config file. To be put in as ~/.gitconfig
View .gitconfig
# Aliases for common git commands. E.g., enter "git d" for "git diff"
# These settings live in the ~/.gitconfig file.
[alias]
b = branch
br = branch
ba = branch -a
ci = commit
co = checkout
d = diff
View sshpub-to-rsa
#!/usr/bin/env python
# with help and inspiration from
# * ASN1_generate_nconf(3) (specifically the SubjectPublicKeyInfo structure)
# * http://www.sysmic.org/dotclear/index.php?post/2010/03/24/Convert-keys-betweens-GnuPG%2C-OpenSsh-and-OpenSSL
# * http://blog.oddbit.com/2011/05/converting-openssh-public-keys.html
import sys
import base64
import struct
View nodejs-ubuntu-bind-port-80.md

How to: Allow Node to bind to port 80 without sudo

TL;DR

Only do this if you understand the consequences: all node programs will be able to bind on ports < 1024

sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/node

Important: your node location may vary. Use which node to find it, or use it directly in the command: