Skip to content

Instantly share code, notes, and snippets.

Brandon Wilhite JediMindtrick

  • Atlanta, GA
View GitHub Profile
JediMindtrick / README.txt
Last active Oct 2, 2015 — forked from flaviaza/README.txt
Twitter bootstrap fixed table header using jQuery
View README.txt
Here is a simple jQuery plugin to make a table header fixed on top of a div when this is scrolled.
Using the code from twitter bootstrap documentation page, this code is customized for table header.
Create the table with following layout -
<div class="row fixed-table">
<div class="table-content">
<table class="table table-striped table-fixed-header" id="mytable">
<thead class="header">
<th>Email Address</th>

Here's teh codez, again:

#concerning tagging, see
sudo docker build -t my_mongodb .
JediMindtrick / Vagrant-nfs-LinuxMint
Created Jan 2, 2015
Get nfs shares working for vagrant on linux mint 17
View Vagrant-nfs-LinuxMint
sudo apt-get install nfs-common nfs-kernel-server
JediMindtrick / Docker build image example
Last active Aug 29, 2015
Example command line to build a docker image
View Docker build image example
Here's teh codez, again:
#concerning tagging, see
sudo docker build -t my_mongodb .
JediMindtrick / Docker stop-remove
Last active Aug 29, 2015
Docker - stop, remove containers and images
View Docker stop-remove
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -a)
JediMindtrick / Docker Import-Export-Load-Save
Created Dec 24, 2014
List of commands to import-export and load-save docker images
View Docker Import-Export-Load-Save
#export to file
docker ps -a
docker export <CONTAINER ID> > image.tar
#import from file
tar -c <FILENAME> | docker import - image_name
JediMindtrick / Git CloneWithoutRepo
Last active Aug 29, 2015
Pull down a git repository and remove .git files with minimal network traffic
View Git CloneWithoutRepo
git clone --depth 1 --branch master git://git.somewhere destination_path
rm -rf destination_path/.git
JediMindtrick / ChocolateyIIS
Created Dec 8, 2014
List of chocolatey commands to install IIS
View ChocolateyIIS
#under construction
#based off of
choco WindowsFeatures IIS-WebServerRole
choco WindowsFeatures IIS-ISAPIFilter
choco WindowsFeatures IIS-ISAPIExtensions
choco WindowsFeatures IIS-NetFxExtensibility
choco WindowsFeatures IIS-ASPNET
JediMindtrick / gist:8b2532de1a92afa49e83
Created Nov 17, 2014
AngularTheBasics-Service Definition
View gist:8b2532de1a92afa49e83
//see this stackoverflow question
app.service('myService', function() {
// service is just a constructor function
// that will be called with 'new'
this.sayHello = function(name) {
return "Hi " + name + "!";
JediMindtrick / AngularTheBasics-SafeApply
Last active Aug 29, 2015
Function for safely applying a AngularJS $scope.$apply regardless of $digest phase
View AngularTheBasics-SafeApply
function runScope(angularScope,callback){
var result = void 0;
var phase = angularScope.$root.$$phase;
if(phase == '$apply' || phase == '$digest'){
result = callback === undefined ? void 0 : callback(angularScope);
result = callback === undefined ? void 0 : callback(angularScope);
You can’t perform that action at this time.