Skip to content

Instantly share code, notes, and snippets.

View ctmlr's full-sized avatar

Chris Miller ctmlr

View GitHub Profile
@raevilman
raevilman / oc_helper.sh
Last active October 9, 2022 11:47
GlobalProtect on Ubuntu
#! /bin/bash
# Copied from https://gist.github.com/rtgibbons/ae083457d0962bd3fe3f
### BEGIN INIT INFO
# Provides: openconnect
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active December 13, 2025 22:58
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@danielestevez
danielestevez / gist:2044589
Last active November 6, 2025 20:14
GIT Commit to an existing Tag
1) Create a branch with the tag
git branch {tagname}-branch {tagname}
git checkout {tagname}-branch
2) Include the fix manually if it's just a change ....
git add .
git ci -m "Fix included"
or cherry-pick the commit, whatever is easier
git cherry-pick {num_commit}

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@jagregory
jagregory / gist:710671
Created November 22, 2010 21:01
How to move to a fork after cloning
So you've cloned somebody's repo from github, but now you want to fork it and contribute back. Never fear!
Technically, when you fork "origin" should be your fork and "upstream" should be the project you forked; however, if you're willing to break this convention then it's easy.
* Off the top of my head *
1. Fork their repo on Github
2. In your local, add a new remote to your fork; then fetch it, and push your changes up to it
git remote add my-fork [email protected]