Skip to content

Instantly share code, notes, and snippets.

View JediMindtrick's full-sized avatar

Brandon Wilhite JediMindtrick

View GitHub Profile
@JediMindtrick
JediMindtrick / Docker Import-Export-Load-Save
Created December 24, 2014 16:20
List of commands to import-export and load-save docker images
#see http://blog.flux7.com/blogs/docker/docker-commands
#and http://www.jamescoyle.net/how-to/1512-export-and-import-a-docker-image-between-nodes
#and https://github.com/docker/docker/issues/188
#export to file
docker ps -a
docker export <CONTAINER ID> > image.tar
#import from file
tar -c <FILENAME> | docker import - image_name
@JediMindtrick
JediMindtrick / ChocolateyIIS
Created December 8, 2014 23:02
List of chocolatey commands to install IIS
#under construction
#based off of https://codealoc.wordpress.com/2013/03/15/installing-iis-with-chocolatey/
choco WindowsFeatures IIS-WebServerRole
choco WindowsFeatures IIS-ISAPIFilter
choco WindowsFeatures IIS-ISAPIExtensions
choco WindowsFeatures IIS-NetFxExtensibility
choco WindowsFeatures IIS-ASPNET
@JediMindtrick
JediMindtrick / Vagrant-nfs-LinuxMint
Created January 2, 2015 19:37
Get nfs shares working for vagrant on linux mint 17
#see https://github.com/mitchellh/vagrant/issues/1534
sudo apt-get install nfs-common nfs-kernel-server
@JediMindtrick
JediMindtrick / gist:5489816
Created April 30, 2013 16:20
LightTable js single-quote
html:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="./foo.js"></script>
</head>
<body>
</body>
</html>
@JediMindtrick
JediMindtrick / README.txt
Last active October 2, 2015 19:44 — forked from flaviaza/README.txt
Twitter bootstrap fixed table header using jQuery
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">
<tr>
<th>Email Address</th>
@JediMindtrick
JediMindtrick / TestGist.md
Last active August 29, 2015 14:22
Test Gistlog

Here's teh codez, again:

#concerning tagging, see http://stackoverflow.com/questions/21928780/create-multiple-tag-docker-image
sudo docker build -t my_mongodb .
@JediMindtrick
JediMindtrick / Docker build image example
Last active August 29, 2015 14:12
Example command line to build a docker image
Here's teh codez, again:
```
#concerning tagging, see http://stackoverflow.com/questions/21928780/create-multiple-tag-docker-image
sudo docker build -t my_mongodb .
```
@JediMindtrick
JediMindtrick / Docker stop-remove
Last active August 29, 2015 14:12
Docker - stop, remove containers and images
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -a)
@JediMindtrick
JediMindtrick / Git CloneWithoutRepo
Last active August 29, 2015 14:11
Pull down a git repository and remove .git files with minimal network traffic
#see https://stackoverflow.com/questions/160608/do-a-git-export-like-svn-export/8963061#8963061
git clone --depth 1 --branch master git://git.somewhere destination_path
rm -rf destination_path/.git
@JediMindtrick
JediMindtrick / gist:8b2532de1a92afa49e83
Created November 17, 2014 12:01
AngularTheBasics-Service Definition
//see this stackoverflow question
// http://stackoverflow.com/questions/13762228/confused-about-service-vs-factory/13763886#13763886
app.service('myService', function() {
// service is just a constructor function
// that will be called with 'new'
this.sayHello = function(name) {
return "Hi " + name + "!";
};