Skip to content

Instantly share code, notes, and snippets.

View snipe's full-sized avatar
😩
So jetlag. Much tired.

snipe snipe

😩
So jetlag. Much tired.
View GitHub Profile
#!/usr/bin/env python2
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
Install Snipe-IT Windows 2008 R2 With IIS
Prereq (Install all of these prior to continuing)
IIS
IIS URL Rewrite
PHP 5.3 for Windows Server via WPM (http://www.microsoft.com/web/platform/phponwindows.aspx)
MariaDB 5.5 for Windows Server 64-bit (https://downloads.mariadb.org/interstitial/mariadb-5.5.37/winx64-packages/mariadb-5.5.37-winx64.msi/from/http://mirror.jmu.edu/pub/mariadb) | 32-bit (https://downloads.mariadb.org/interstitial/mariadb-5.5.37/win32-packages/mariadb-5.5.37-win32.msi/from/http://mirror.jmu.edu/pub/mariadb)
PHP Manager for IIS (makes managing PHP on IIS much easier) (http://phpmanager.codeplex.com/)
Composer install with the shell menus (https://getcomposer.org/Composer-Setup.exe )
Notepad++ for editing files (http://www.notepad-plus-plus.org/download/v6.6.6.html )
@snipe
snipe / gist:1469447
Created December 12, 2011 22:31 — forked from irohiroki/gist:909284
jQuery Mobile Red and Green themes for Buttons
/* F
-----------------------------------------------------------------------------------------------------------*/
.ui-btn-up-f, .ui-btn-hover-f, .ui-btn-down-f {
color: white;
font-weight: bold;
text-decoration: none; }
.ui-btn-up-f {
border: 1px solid #711414;
background: #ab2525;
@buzzedword
buzzedword / git-trackall
Created July 11, 2012 02:01
Add to a folder on your path, chmod 755, run with git trackall
for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do git branch --track ${branch##*/} $branch; done
git fetch --tags
git fetch --all
@SaraSoueidan
SaraSoueidan / index.html
Created August 11, 2013 13:14
A CodePen by Sara Soueidan. Tumblr's Like/Unlike Animation with CSS3 animaitons - Make sure u got the latest version of Chrome. Also works in Firefox.
<h2>Click the heart to like/unlike</h2>
<div class="heart">❤</div>
@CatoTH
CatoTH / HTMLValidator.php
Last active May 24, 2017 07:52
A helper class for Codeception that allows automated HTML5 Validation using the Nu Html Checker during acceptance testing. It uses local binaries and can therefore be run offline.
<?php
/**
* A helper class for Codeception (http://codeception.com/) that allows automated HTML5 Validation
* using the Nu Html Checker (http://validator.github.io/validator/) during acceptance testing.
* It uses local binaries and can therefore be run offline.
*
*
* Requirements:
* =============
@TvL2386
TvL2386 / scheduler.php
Last active January 8, 2018 04:53
my scheduler
$ php artisan schedule:daemon
[2018-01-07 12:11:24] Starting schedule:daemon
[2018-01-07 12:11:24] Waiting for next minute
[2018-01-07 12:12:00] running main loop
Running scheduled command: App\Jobs\CreateSnapshot
[2018-01-07 12:13:00] running main loop
Running scheduled command: App\Jobs\CreateSnapshot
[2018-01-07 12:14:00] running main loop
Running scheduled command: App\Jobs\CreateSnapshot
[2018-01-07 12:15:00] running main loop
@jkeck
jkeck / gist:3515705
Created August 29, 2012 17:07 — forked from MrDys/gist:3512455
Link directly to an open modal window in Bootstrap
/* If you've ever had the need to link directly to an open modal window with Bootstrap, here's a quick and easy way to do it:
Make sure your modal has an id and is classed with modal and permalink:
<div class="modal permalink" id="myModal" ... >
Then stick this bit of Javascript at at the end of your document:
*/
$(document).ready(function() {
gnome-cups-manager
------------------
Once upon a time there was a printer who lived in the woods. He was a
lonely printer, because nobody knew how to configure him. He hoped
and hoped for someone to play with.
One day, the wind passed by the printer's cottage. "Whoosh," said the
wind. The printer became excited. Maybe the wind would be his
friend!
@lukemartin
lukemartin / routes.php
Created June 22, 2012 10:51
Output checkboxes with appropriate 'checked' attributes in Laravel
Route::get('edit', function() {
// fetch our post, and it's associated categories
$post = Post::with('cats')->where('id', '=', $id)->first();
// fetch all of our categories
$cats = Cat::all();
// create our empty array
$post_cats = array();