Tips:
- Use
--global
to set options globally (for all repos) for the current user. - Use
--system
(viasudo
orsu
) to set options for all users.
git config --global core.editor "nano"
git branch --move old_branch new_branch | |
git checkout new_branch | |
git push --set-upstream origin new_branch | |
git push origin --delete old_branch |
# Bash script that uses mplayer and oggenc to rip and encode the audio from | |
# various movie formats to Ogg Vorbis and MP3. I assume I wrote it based | |
# off of the poor quality. ;) | |
# Remove movie file after rip/encode (1=YES, 0=NO) | |
REMOVE_MOVIE="0" | |
# Remove wav file after encode (1=YES, 0=NO) | |
REMOVE_WAV="1" |
#!/usr/bin/env python2.7 | |
# Purpose: Look at HTTP Response headers from requested server. | |
# Credit: http://stackoverflow.com/questions/843392/python-get-http-headers-from-urllib-call | |
import httplib | |
from pprint import pprint as ppr | |
import sys | |
function Get-Uptime | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[Parameter(ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true)] | |
[Alias('hostname')] | |
[Alias('cn')] | |
[string[]]$ComputerName = $env:COMPUTERNAME |
function Get-DiskFree | |
{ | |
[CmdletBinding()] | |
param | |
( | |
[Parameter(Position=0, | |
ValueFromPipeline=$true, | |
ValueFromPipelineByPropertyName=$true)] | |
[Alias('hostname')] | |
[Alias('cn')] |
# Create at $HOME/.config/git/git-prompt.sh | |
# The same content as the '%ProgramFiles%\Git\etc\profile.d\git-prompt.sh' | |
# file, but with the parts I don't like commented out. | |
# Many thanks to the great overview here: | |
# https://alanbarber.com/2015/12/30/how-to-customize-the-git-for-windows-bash-shell-prompt/ | |
# and the original file for making it easy enough to see how to override | |
# the existing settings. |
This is intended for copying/pasting as the first comment to all Gist entries I create. It's unfortunate that GitHub doesn't support notifying creators and participants in the feedback process for Gists, but this is at least something I can do to let potential viewers know that I'm not intentionally ignoring them.
As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!