Skip to content

Instantly share code, notes, and snippets.

@NoobsArePeople2
NoobsArePeople2 / gist:1897836
Created February 24, 2012 04:46
Configure Sublime Text 2 (build 2181 or later) as Git Editor on Windows
git config --global core.editor "'c:/Program Files/Sublime Text 2/sublime_text.exe' -wait"
"Include path not found (/Developer/usr/llvm-gcc-4.2/lib/gcc/i686-apple-darwin11/4.2.1/include)"
is an error you can get on Mac OS with Eclipse CDT after upgrading to XCode 4.3+. The reason this
happens is that Apple has removed the /Developer folder. This is a default value in CDT
that you can see by:
1. Right-clicking your project in the Project Explorer. Choose "Properties".
2. Click C/C++ General.
3. Select "Preprocessor Include Paths, Macros, Etc."
4. Select GNU C++ in the "Languages" pane.
5. Expand the "CDT GCC Builtin Compilter Settings".
@NoobsArePeople2
NoobsArePeople2 / Console2_PowerShell_Setup.md
Last active December 10, 2015 01:18
Step-by-step guide to setting up Powershell with Console2
  1. Do this
  2. Run Powershell as Administrator. A note on 32 vs. 64 bit systems.
  3. Type Set-ExecutionPolicy RemoteSigned. This allows remote scripts like profiles to be loaded and run.
@NoobsArePeople2
NoobsArePeople2 / gist:4481936
Created January 8, 2013 07:18
Installing Nexus S Drivers on Windows 8

Step by step

  1. Download Android SDK
  2. Run <sdk_loc>\tools\android.bat
  3. In the Android SDK Manager, scroll down to "Extras" and select "Google USB Driver". Install it.
  4. Open the Device Manager (tap the Windows button and type "device manager" to search for it).
  5. Right-click the Nexus S and choose "Update Driver Software..."
  6. In the dialog that pops up select, "Browser my computer for driver software"
  7. Browse to <sdk_loc>\extras\google\usb_driver
  8. Click next until the driver is installed
@NoobsArePeople2
NoobsArePeople2 / gist:4490307
Last active August 15, 2018 20:10
Configuration for .bash_profile on OSX to get some Posh-Git features.
  1. Open Terminal move to your home folder: cd ~

  2. Enable git colors: git config --global color.ui true

  3. Make a file called ".colors": touch .colors

  4. Open .colors and paste the following:

@NoobsArePeople2
NoobsArePeople2 / gist:4576561
Created January 20, 2013 03:44
How to assign a hotkey to the Snipping Tool in Windows 8.

OSX has a great shortcut for taking screen shots: cmd + shift + 4. Here's how to assign ctrl + shift + 4 to open the Snipping Tool in Windows 8.

  1. Open the Start Screen.
  2. Type "Snipping Tool" to search for the Snipping Tool.
  3. Right-click the icon that appears in the search results and select "Open File Location" at the bottom of the screen.
  4. In the Explorer window that opens right-click the Snipping Tool shortcut. Select "Properties".
  5. In the "Shortcut" tab click into the "Shortcut Key" field.
  6. Press ctrl, shift and 4.
  7. Click, Apply then OK.
@NoobsArePeople2
NoobsArePeople2 / gist:5084713
Created March 4, 2013 19:23
Updating Motherboard BIOS Checklist, or I Updated My Motherboard BIOS and it was Almost a Complete Catastrophe

Having just gone through a BIOS update the hard way I'm putting this checklist down for future reference. Everything ended up fine but it the entire proceses was much harder than it needed to be. The big takeaway here: backup everything you cannot live without.

My setup is nothing particularly exotic, you can see the notes below for details about the hardware. I'm using an Ivy Bridge motherboard with UEFI BIOS. My boot drive is an SSD and I have three drives together in a RAID 5. I'm using Windows 8 Pro for my OS.

Here's the general checklist. It's not very specific as the details may vary based on your particular configuration. I'm also not an expert on this so YMMV.

  1. Get latest BIOS.
  2. If possible, back up your BIOS configuration. Just in case.
  3. Close all running applications.
  4. Apply BIOS update.
@NoobsArePeople2
NoobsArePeople2 / gist:5121597
Last active November 10, 2023 14:33
Configure media keys on a non-Apple keyboard to control Spotify via AppleScript and USB Overdrive on OSX.

Requirements

  1. USB Overdrive
  2. A non-Apple keyboard with media keys (or keys you want to make "media" keys). For reference, I'm using a Microsoft Sidewinder X4

Set Up

  1. Plug in your keyboard and install USB Overdrive.
  2. Open USB Overdrive. Click into the Settings tab.
  3. Click the dropdown and select "Any Keyboard, Any Application"
@NoobsArePeople2
NoobsArePeople2 / gist:5384709
Created April 14, 2013 23:35
Pretty git logs in the console
[Alias]
nicelog = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --
@NoobsArePeople2
NoobsArePeople2 / export.rb
Created November 21, 2013 03:45
Export grouped and named layers from a PSD at the original document size and positioning
require 'chunky_png'
require 'fileutils'
require 'psd'
file = ARGV[0] || nil
if file == nil
puts "You must specify a PSD as the first argument."
exit
end