Skip to content

Instantly share code, notes, and snippets.

View viccon's full-sized avatar

Victor Conner viccon

View GitHub Profile
@viccon
viccon / renew-gpgkey.md
Created June 25, 2023 09:45 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@viccon
viccon / httpsproxy.go
Created June 23, 2022 05:09 — forked from wwek/httpsproxy.go
https proxy in golang
// https://medium.com/@mlowicki/http-s-proxy-in-golang-in-less-than-100-lines-of-code-6a51c2f2c38c
// #!/usr/bin/env bash
// case `uname -s` in
// Linux*) sslConfig=/etc/ssl/openssl.cnf;;
// Darwin*) sslConfig=/System/Library/OpenSSL/openssl.cnf;;
// esac
// openssl req \
// -newkey rsa:2048 \
// -x509 \
@viccon
viccon / gist:c645d5ef603be72d126d32e98e2dc9d0
Created June 3, 2022 12:12 — forked from wisq/gist:0fa021df52a3bd2485ac
Protip: Bisecting a single commit

Situation: Some commit (on master, but not necessarily head of master) has broken things, but it's a big commit and it's not clear what part broke things.

% git checkout master
% git checkout -b bisect-branch
% git revert <offending commit>

(test here to make sure reverting fixed your problem)

% git bisect start
@viccon
viccon / README.md
Created September 7, 2020 11:13 — forked from crypticmind/README.md
Setup lambda + API Gateway using localstack
@viccon
viccon / github_bitbucket_multiple_ssh_keys.md
Created June 19, 2019 07:03 — forked from yinzara/github_bitbucket_multiple_ssh_keys.md
Managing SSH keys and repo cloning using multiple accounts on GitHub and BitBucket

Why Multiple SSH keys?

There are numerous reasons you may need to use multiple SSH keys for accessing GitHub and BitBucket

You may use the same computer for work and personal development and need to separate your work.

When acting as a consultant, it is common to have multiple GitHub and/or BitBucket accounts depending on which client you may be working for.

You may have different projects you're working on where you would like to segregate your access.

@viccon
viccon / webpack.nginx.conf
Created May 26, 2019 10:55 — forked from SiZapPaaiGwat/webpack.nginx.conf
webpack-dev-server configuration in nginx on development server
upstream ws_server {
server 127.0.0.1:8080;
}
server {
listen 80;
server_name 10.1.2.225;
location / {
proxy_pass http://ws_server/;