Skip to content

Instantly share code, notes, and snippets.

View krisnoble's full-sized avatar

Kris Noble krisnoble

View GitHub Profile
@fyra
fyra / ircodes_LG
Last active October 20, 2021 09:25
IR codes for LG Bluray 5.1 System
Trying to set up some home automation I ended up looking closely into
the ir codes of my bluray/avr unit, I hoped for distinct buttons for
hdmi1 and hdmi2, but no dice. I did find separate Power on and
Power Off codes.
EDIT: Found that pressing >INPUT< >num< jumps to that input without
cycling through all the others, giving me a way to jump directly the
input I want.
@francis2110
francis2110 / LG infrared codes
Created January 22, 2015 10:01
Lg infrared codes for making your own remote
on-off->20DF10EF
energy->20DFA956
av. mode->20DF0CF3
input->20DFD02F
tv/rad->20DF0FF0
1->20DF8877
2->20DF48B7
3->20DFC837
4->20DF28D7
5->20DFA857
@elusiveunit
elusiveunit / esrjl-editor-styles-refresh.php
Last active November 19, 2017 12:28
WordPress editor style cache refresh plugin
<?php
/**
* Plugin Name: Editor Styles Refresh
* Plugin URI: https://gist.github.com/elusiveunit/f0f728771de6647778fa
* Description: Adds file time query string to theme editor style URLs, to force cache busting when the file is changed.
* Author: Jens Lindberg
* Version: 0.1
* License: GPL-2.0+
*/
@krisnoble
krisnoble / deploy.php
Last active April 25, 2023 15:52
A slightly modified version of Brandon Summers' script. For more information: http://simianstudios.com/blog/post/using-bitbucket-for-automated-deployment-of-multiple-repositories
<?php
date_default_timezone_set('Europe/London'); // Set this to your local timezone - http://www.php.net/manual/en/timezones.php
/**
* The root directory where the repos live.
*
* @var string
*/
$root_dir = '/your/root/dir/';
@Adirael
Adirael / fix-wordpress-permissions.sh
Created August 17, 2012 23:16
Fix wordpress file permissions
#!/bin/bash
#
# This script configures WordPress file permissions based on recommendations
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions
#
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org>
#
WP_OWNER=www-data # <-- wordpress owner
WP_GROUP=www-data # <-- wordpress group
WP_ROOT=$1 # <-- wordpress root directory