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 | |
/** | |
* WP_Profile_Caps class. | |
* | |
* | |
* @package WP_Profile_Caps | |
* @since WP_Profile_Caps 0.1 | |
*/ | |
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"])) |
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
# uncomment if you wish to disable the splash screen | |
disable_splash=1 | |
# uncomment if you get no picture on HDMI for a default "safe" mode | |
#hdmi_safe=1 | |
# uncomment this if your display has a black border of unused pixels visible | |
# and your display can output without overscan | |
disable_overscan=1 |
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
#!/bin/bash | |
# set display | |
export DISPLAY=":0" | |
# set var to retrieve window id | |
WID=$(xdotool search --onlyvisible --class chromium|head -1) | |
# reload window according to cron schedule | |
if [ -n $WID ]; then |
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
#!/bin/bash | |
if [ $# -eq 0 ]; then | |
printf "===> Needs s fully-qualified git repo\n" | |
exit | |
fi | |
printf "===> Installing dependencies...\n" | |
apt-get install -y wget nano git |
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 | |
/** | |
* Auto Deployment Script for GitLab. Uses apache + php to perform tasks. | |
* | |
* | |
* @since deploy 0.2 | |
*/ | |
/** | |
* @internal The following variables are assumed to be valid but minimal validation is performed. |
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
<link rel="icon" type="image/x-icon" href="<?php bloginfo('template_url'); ?>/im/favicon.png"/> | |
<!--[if IE]><link rel="shortcut icon" href="path/to/favicon.ico"><![endif]--> |
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 | |
/** | |
* Auto Deployment Script for GitHub and Apache. | |
* | |
* | |
* @since deploy 0.1 | |
*/ | |
$auth = md5('SECRET_PHRASE'); // set a private hash to validate against | |
if ( empty($_REQUEST['auth']) || $_REQUEST['auth'] != $auth) exit; |
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 | |
/** | |
* WP_Theme_Rewrites Class for WordPress. | |
* | |
*/ | |
if(realpath(__FILE__) === realpath($_SERVER["SCRIPT_FILENAME"])) | |
exit("Do not access this file directly."); | |
class WP_Theme_Rewrites { |
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
class WP_Admin_Pages { | |
var $reset_roles = false, | |
$page_name = "member_approvals", | |
$board_votes = "board_votes"; | |
function __construct() { | |
if ( ! function_exists( 'admin_url' ) ) return false; | |
if ( is_admin() ) { | |
add_action( 'init', array(&$this, 'rolescheck')); | |
add_action( 'admin_menu', array(&$this, 'add_admin_page')); |
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
// ==UserScript== | |
// @name Hide Gmail Ads | |
// @namespace http://userscripts.org/users/540155 | |
// @description Remove ad column from DOM in gmail and kill the remaining margin-right css property. | |
// @match https://mail.google.com/ | |
// @include https://mail.google.com/* | |
// @include https://mail.google.com | |
// @grant GM_addStyle | |
// @version 0.1 | |
// @copyright 2014+, You |
OlderNewer