Skip to content

Instantly share code, notes, and snippets.

@cowlinator
cowlinator / Write-lock_file_(Windows)
Last active June 10, 2024 20:54
Write-lock file (Windows)
( >&2 pause ) >> yourfile.txt
@mortymacs
mortymacs / send-read-message.md
Last active April 10, 2019 01:44
Send and Read Message in a Python Process Via stdin in GNU/Linux

To read message from stdin try this sample code:

import time
import sys

while True:
    for i in sys.stdin:
        print(i)
    time.sleep(2)
@jmervine
jmervine / cert_convert.sh
Created November 17, 2014 21:57
openssl: convert cert from p7b to crt (or cer)
openssl pkcs7 -print_certs -in old.p7b -out new.crt
# openssl pkcs7 -print_certs -in old.p7b -out new.cer
@gubatron
gubatron / multiple-deploy-keys-multiple-private-repos-github-ssh-config.md
Last active October 12, 2024 22:57
How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

How to configure multiple deploy keys for different private github repositories on the same computer without using ssh-agent

Let's say alice is a github.com user, with 2 or more private repositories repoN. For this example we'll work with just two repositories named repo1 and repo2

https://github.com/alice/repo1

https://github.com/alice/repo2

You need to be to pull from these repositories without entering a passwords probably on a server, or on multiple servers.