Skip to content

Instantly share code, notes, and snippets.

@lsd
lsd / maybe-useful-shell-zsh-aliases.md
Created November 25, 2015 01:13
a place to throw zsh/shell aliases - complete .shell_aliases and other dotfiles should be in a public github repo though

Long/interesting command you'd like bookmarked for later? append 'BK' to save it to the $bookmarks file. Add this to ie .zshrc

bookmarks='~/bookmarks.cmdline.sh'
alias -g BK='>> $bookmarks && wc -l $bookmarks'

Usage

  • echo NotInteresting BK
@lsd
lsd / dota-2-console-commands.markdown
Last active January 5, 2024 13:08
DOTA 2 useful console commands

DOTA2 console commands

The most useful command here is probably dota_force_right_click_attack 1
More will be added as they come. The essentials DO NOT require sv_cheats
and as far as I know do not violate any official competition rules.

Turn on console

  • In steam, right cilck on "Dota 2" > properties
  • Click on Set Launcher Options and add -console
  • Save and start game. The default hotkey is ```` (backtick)
@ptotaram
ptotaram / git.md
Last active January 26, 2016 16:50
Helpful Git Commands

#Helpful Git Commands

###Add to previous commit git commit --amend --reuse-message

###Change the commit message git commit --amend

###Stash Specific File git stash -p

@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@jwage
jwage / SplClassLoader.php
Last active April 9, 2024 21:04
Add MIT license.
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,