Skip to content

Instantly share code, notes, and snippets.

View denolfe's full-sized avatar

Elliot DeNolf denolfe

View GitHub Profile
Deployment steps for this blog post:
http://kearon.blogspot.co.uk/2015/01/installing-service-using-topshelf-with.html
#powershell -NoProfile -ExecutionPolicy unrestricted -Command
$url = 'https://gist.githubusercontent.com/bensmind/0a5a524749018ad274d1/raw/74cd0623262346646901aa370221921514d3d15f/cinst.init.ps1'
$wc = new-object net.webclient
iex ($wc.DownloadString($url))
@bmccormack
bmccormack / readme.md
Last active April 2, 2021 04:30
Trello: show label names on the front of cards
@awakekat
awakekat / Gulp Jade Example
Created December 18, 2014 03:42
Example of Gulp Jade
//From http://stackoverflow.com/questions/25384796/can-i-set-gulp-livereload-to-run-after-all-files-are-compiled
var gulp = require('gulp');
var jade = require('gulp-jade');
var gutil = require('gulp-util');
var stylus = require('gulp-stylus');
var jeet = require('jeet');
var nib = require('nib');
var uglify = require('gulp-uglify');
var livereload = require('gulp-livereload');
@bensmind
bensmind / cinst.init.ps1
Last active November 6, 2015 18:37
Cinst batch
powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))"
#tools
cinst sysinternals
cinst notepadplusplus.install
cinst 7zip.install
cinst ColorPic
#network
cinst putty
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@raelyard
raelyard / MachineSetup.ps1
Last active May 8, 2025 23:04
New Dev Machine Script
# to execute:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
# Install-BoxstarterPackage -PackageName https://gist.githubusercontent.com/raelyard/6783972a17ba1bc14e83/raw/ -DisableReboots
Disable-MicrosoftUpdate
Disable-UAC
choco feature enable -n=allowGlobalConfirmation
powercfg /change standby-timeout-ac 0
@rashkur
rashkur / chrome_icon_fixer
Created September 7, 2014 19:59
chrome icon fixer
import ConfigParser, mmap
config_file = "/usr/share/applications/google-chrome.desktop"
add_string_to_each_section = ["StartupWMClass", "Google-chrome-stable"]
option = add_string_to_each_section[0]
value = add_string_to_each_section[1]
class Fixer:
def check(self, cf, option, value):
@g-P
g-P / eloquent_chapters.links
Created July 30, 2014 13:48
Eloquent Javascript
@gefangenimnetz
gefangenimnetz / materialDesignShadowHelper.less
Last active October 22, 2025 05:42
Less css box-shadow helper for cards & modals according to Googles Material Design spec.
/**
* A mixin which helps you to add depth to elements according to the Google Material Design spec:
* http://www.google.com/design/spec/layout/layout-principles.html#layout-principles-dimensionality
*
* Please note that the values given in the specification cannot be used as is. To create the same visual experience
* the blur parameter has to be doubled.
*
* Author: Florian Kutschera (@gefangenimnetz), Conceptboard GmbH (@conceptboardapp)
*
* Example usage: