# If inside vmware install vmware tools (these are just as good as the commercial ones)
sudo apt-get install open-vm-tools open-vm-tools-desktop
# Install git
sudo apt-get install git
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## encoding: utf-8 | |
## author: Slipp Douglas Thompson <http://slippyd.com/> | |
class Object | |
# notice: it's a verbal statement | |
def where_i_am | |
object_index = self.object_id | |
class_name = self.class.name | |
class_lineage = begin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo defaults write /Library/Preferences/com.apple.windowserver DisplayResolutionEnabled -bool YES; | |
sudo defaults delete /Library/Preferences/com.apple.windowserver DisplayResolutionDisabled; | |
// by the way, you need to logout and log back in for this to take effect. Or at least that's what | |
// Quartz Debug says. Who knows, maybe it's lying? | |
// P.S. Go to [Apple menu --> System Preferences --> Displays --> Display --> Scaled] after logging | |
// back in, and you'll see a bunch of "HiDPI" resolutions in the list to choose from. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/node | |
var https = require('https'); | |
var token, username; | |
var tenxer = 'tenxer'; | |
var shitsFucked = 0; | |
var shitsUnfucked = 0; | |
var reposCount = 0; | |
process.argv.forEach(function (arg) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Tags all dangling commits in a Git repo (for the wonderful “oh shit” moments). | |
# @from: https://gist.github.com/capnslipp/2656868 | |
git fsck --lost-found #--no-reflogs --full --root --cache --tags --unreachable | |
find '.git/lost-found/commit' -type f | while read i; do | |
commit_sha=`cat "$i"` | |
git tag -f "git-lf/commit/$commit_sha" $commit_sha | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
git filter-branch --env-filter ' | |
an="$GIT_AUTHOR_NAME" | |
am="$GIT_AUTHOR_EMAIL" | |
cn="$GIT_COMMITTER_NAME" | |
cm="$GIT_COMMITTER_EMAIL" | |
if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
shared_group="$1" # e.g.: 'admin' | |
group_exists=`grep "^$shared_group:" /etc/group` | |
if [ -z $group_exists ]; then | |
echo "Error: There seems to be no group by the name of \"$shared_group\" (totally checked out your '/etc/group' file)." | |
else | |
echo "Permissifying within ./ directory..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## encoding: utf-8 | |
## Alex D's solution (1st revision) to http://stackoverflow.com/questions/5390537/best-practices-and-implementation-for-macro-and-class-level-accessor-methods/9019388#9019388 | |
module MacroMethods | |
private | |
def full_name(full_name) | |
# non-trivial, one-time-only set-up code exists here in actual usage | |
self.class_eval { const_set :FULL_NAME, full_name.to_s } | |