Skip to content

Instantly share code, notes, and snippets.

@daemongh
daemongh / Private-pypi-howto
Created June 21, 2017 17:43 — forked from Jaza/Private-pypi-howto
Guide for how to create a (minimal) private PyPI repo, just using Apache with directory autoindex, and pip with an extra index URL.
*
setBadge = function (text) {
if (process.platform === "darwin") {
app.dock.setBadge("" + text);
} else if (process.platform === "win32") {
var win = remote.getCurrentWindow();
if (text === "") {
win.setOverlayIcon(null, "");
return;
}
@daemongh
daemongh / ocp.php
Created November 27, 2013 20:05 — forked from ck-on/ocp.php
<?php
/*
OCP - Opcache Control Panel (aka Zend Optimizer+ Control Panel for PHP)
Author: _ck_ (with contributions by GK, stasilok)
Version: 0.1.6
Free for any kind of use or modification, I am not responsible for anything, please share your improvements
* revision history
0.1.6 2013-04-12 moved meta to footer so graphs can be higher and reduce clutter
0.1.5 2013-04-12 added graphs to visualize cache state, please report any browser/style bugs
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>App Redirection</title>
</head>
<body>
<!-- iframe used for attempting to load a custom protocol -->
<iframe style="display:none" height="0" width="0" id="loader"></iframe>
@daemongh
daemongh / awesome-php.md
Created October 31, 2012 22:00 — forked from ziadoz/awesome-php.md
Awesome PHP Libraries
@daemongh
daemongh / hack.sh
Created March 31, 2012 18:46 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
repo for a more modern version of qt (4.7)
http://atrpms.net/documentation/install/
http://packages.atrpms.net/dist/el5/qt4/
cat /etc/yum.repos.d/atrpms.repo
[atrpms]
name=ATrpms manual
baseurl=http://dl.atrpms.net/el5-$basearch/atrpms/testing/
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
@daemongh
daemongh / errorlog.sql
Created December 6, 2011 16:06 — forked from Incognito/errorlog.sql
Psudo-error loggging JS thinger.
CREATE TABLE errorLog (
Timestamp,
IP,
Line,
ErrorMessage,
URL,
Cookies,
UserAgent,
Plugins,