Skip to content

Instantly share code, notes, and snippets.

View darkcolonist's full-sized avatar
🐣
I rise from the fire, stronger and brighter.

Christian darkcolonist

🐣
I rise from the fire, stronger and brighter.
View GitHub Profile
<?php
/**
*
* Last version: https://gist.github.com/josecanciani/ff535426bd5d453ef9c2
*
* Credits (adapted from): https://gist.github.com/doubleking/6117215
*
**/
@darkcolonist
darkcolonist / VolumeOSD.ahk
Created July 4, 2016 07:59
volume osd hotkey configuration - win mouse-scroll (up, down)
; Volume On-Screen-Display (OSD) -- by Rajat
; http://www.autohotkey.com
; This script assigns hotkeys of your choice to raise and lower the
; master and/or wave volume. Both volumes are displayed as different
; color bar graphs.
;_________________________________________________
;_______User Settings_____________________________
; Make customisation only in this area or hotkey area only!!
@darkcolonist
darkcolonist / jquery-overlay-shield.js
Last active July 18, 2016 08:17
jquery document overlay - usually for disabling interaction with the entire screen because of a background process
$("<div>")
.attr("id", "waiter-overlay")
.css({
"position" : "fixed",
"top" : "0",
"left" : "0",
"width" : "100%",
"height" : "100%",
"background-color": "#000",
"filter" : "alpha(opacity=50)",
@darkcolonist
darkcolonist / youtube.deface.tapermonkey.js
Last active May 26, 2016 09:30
youtube tapermonkey script - deface youtube on client to make it look like it's not youtube at all
// ==UserScript==
// @name youtube deface
// @namespace jQueryForChromeExample
// @include http*://*youtube.com/*
// @match https://www.youtube.com/*
// @author Christian Noel Reyes
// @description This userscript is meant to disfigure youtube using jQuery in a userscript on Google Chrome. (eg: https://dl.dropboxusercontent.com/u/617821/images/tapermonkey-youtube-disfigure-example.png)
// ==/UserScript==
// a function that loads jQuery and calls a callback function when jQuery has finished loading
@darkcolonist
darkcolonist / Kohana.php
Last active May 26, 2016 05:47
modifications with respect to /kohana.project/system/core/Kohana.php
<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
* Provides Kohana-specific helper functions. This is where the magic happens!
*
* $Id: Kohana.php 4372 2009-05-28 17:00:34Z ixmatus $
*
* @package Core
* @author Kohana Team
* @copyright (c) 2007-2008 Kohana Team
* @license http://kohanaphp.com/license.html
@darkcolonist
darkcolonist / ractive.html
Created February 17, 2016 06:12
ractive.js sample implementation
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Ractive Test</title>
</head>
<body>
<h1>Ractive Test</h1>
<div id="container">
</div>
@darkcolonist
darkcolonist / mustache-test.html
Created February 12, 2016 06:35
simple usage of mustache.js
<html>
<head>
<title>mustache says hi!</title>
</head>
<body>
<table id="students">
<thead>
<tr>
<th>ID</th>
@darkcolonist
darkcolonist / utf8ize.php
Last active July 24, 2025 03:27
utf8ize json encode fix
/**
* fixes the encoding of the values in an associative array
*
* usage:
* $formatted_rows = util::utf8ize($formatted_rows);
* echo json_encode($formatted_rows);
*
* @param assoc $arr array to be processed
* @return assoc processed array
*/
@darkcolonist
darkcolonist / hrrcp.txt
Created January 26, 2016 06:10
enlist / hr recruitment center project setup specs
[email protected] [~/www/sub/enlist]# pm2 start server.js
-------------
Looking for a complete monitoring and management tool for PM2?
_ _ _ _
| | _____ _ _ _ __ ___ ___| |_ _ __(_) ___ ___ (_) ___
| |/ / _ \ | | | '_ ` _ \ / _ \ __| '__| |/ __/ __| | |/ _ \
| < __/ |_| | | | | | | __/ |_| | | | (__\__ \_| | (_) |
|_|\_\___|\__, |_| |_| |_|\___|\__|_| |_|\___|___(_)_|\___/
@darkcolonist
darkcolonist / cryptogram.html
Created January 21, 2016 06:27
a basic cryptogram app using javascript and jquery
<html>
<head>
<title>the cryptogram</title>
<style>
.cnt_letter_item{
display: inline-block;
border: 1px dotted black;
padding: 3px;
text-align: center;