This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h2>Click the heart to like/unlike</h2> | |
<div class="heart">❤</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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: | |
* ============= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
OlderNewer