Skip to content

Instantly share code, notes, and snippets.

http://forums.crucial.com/t5/Crucial-SSDs/How-I-fixed-my-M4-that-wouldn-t-detect-in-the-BIOS/td-p/110964
http://forums.crucial.com/t5/Crucial-SSDs/Why-did-my-SSD-quot-disappear-quot-from-my-system/ta-p/65215
@NoobsArePeople2
NoobsArePeople2 / ZoomDetect.htm
Created August 22, 2016 19:22 — forked from ChrisMBarr/ZoomDetect.htm
Detects if the browser zoom is set to the default or not. (Not working for Opera, Firefox 3.6, and anything below Firefox 3.5)
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Calculating zoom using Javascript</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js"></script>
<script>
function hasPageBeenResized() {
var isResized;
@NoobsArePeople2
NoobsArePeople2 / googleAnalytics.js
Created November 17, 2015 20:28 — forked from xseignard/googleAnalytics.js
Node.js + googleapis to query google analytics
var googleapis = require('googleapis'),
JWT = googleapis.auth.JWT,
analytics = googleapis.analytics('v3');
var SERVICE_ACCOUNT_EMAIL = '[email protected]';
var SERVICE_ACCOUNT_KEY_FILE = __dirname + '/key.pem';
var authClient = new JWT(
SERVICE_ACCOUNT_EMAIL,
#!/bin/sh
remove_dangling() {
echo "Removing dangling images ..."
docker rmi $(docker images -f dangling=true -q)
}
remove_stopped_containers() {
echo "Removing stopped containers ..."
docker rm $(docker ps -qa)
@NoobsArePeople2
NoobsArePeople2 / gist:94126a4e7a7d8a319449
Last active August 29, 2015 14:01
Helper script for packaging a Mac app in a DMG
#!/usr/bin/env bash
curr="$( cd "$( dirname "$0" )" && pwd )"
# Project Root
root="$(dirname "$curr" )"
# Where to dump the dmg
bin="$root/bin/mac"
@NoobsArePeople2
NoobsArePeople2 / install_sfml_deps.sh
Last active April 6, 2022 09:08
Install SFML dependencies on Ubuntu Linux
#!/usr/bin/bash
# Install CMake GUI
sudo apt-get install cmake-gui
# SFML Dependencies
sudo apt-get install libpthread-stubs0-dev
sudo apt-get install libgl1-mesa-dev
sudo apt-get install libx11-dev
sudo apt-get install libxrandr-dev
@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
@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 / gist:5121597
Last active September 5, 2024 04:27
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: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.