I hereby claim:
- I am iamstev on github.
- I am stev (https://keybase.io/stev) on keybase.
- I have a public key ASBRcPzti8HXl0RmU83w43J_9Dok5IEFibOV_CB9EyRgigo
To claim this, I am signing this object:
sudo defaults write /Library/Preferences/.GlobalPreferences.plist _HIEnableThemeSwitchHotKey -bool true | |
sudo defaults write /Library/Preferences/.GlobalPreferences.plist _HIEnableThemeSwitchHotKey -bool false |
I hereby claim:
To claim this, I am signing this object:
# Defaults / Configuration options for homebridge | |
# The following settings tells homebridge where to find the config.json file and where to persist the data (i.e. pairing and others) | |
HOMEBRIDGE_OPTS=-U /var/homebridge | |
# If you uncomment the following line, homebridge will log more | |
# You can display this via systemd's journalctl: journalctl -f -u homebridge | |
# DEBUG=* |
require_once('classes/ElasticEmail.class.php'); | |
$ee = new stev_eemail($apikey['elastic']['key'], $apikey['elastic']['cert']); | |
$ee->params = array( | |
'to' => '', | |
'lists' => '', | |
'from' => '', | |
'from_name' => '', |
// create user object | |
$user = new phnx_user; | |
// check user login status | |
$user->checklogin(1); | |
// check user subscription status | |
$user->checksub(); | |
<?php | |
ob_start(); | |
/* ROOT SETTINGS */ require($_SERVER['DOCUMENT_ROOT'].'/root_settings.php'); | |
/* FORCE HTTPS FOR THIS PAGE */ forcehttps($use_https); | |
/* WHICH DATABASES DO WE NEED */ | |
$db2use = array( | |
'db_auth' => TRUE, |
// THIS REQUIRES THAT LOGS BE STORED IN THE FOLLOWING FORMAT | |
// log-0000000000.0000.html | |
// As generated by: | |
// '/LOG_DIRECTORY/log-'.microtime(true).'.html'; | |
/* DELETE LOGS OLDER THAN */ | |
function del_logs($dir, $days){ | |
$daysago = time() - ($days * 86400); |
<?php | |
/* DB1 FUNCTION (mysqli) */ | |
// $params is an array that can be used to bind if the query needs to accept user input. | |
class DB1VerboseException extends Exception{} | |
function db1($database = NULL, $q = NULL, $verbose = FALSE, $params = NULL){ | |
try{ | |
if($q == NULL || $q == ''){ | |
throw new Exception('DB1 Error: No query sent (DB1x01.1)'); |
print'<pre style="font-family:monospace;background-color:#444;padding:1em;color:white;">';var_dump();print'</pre>'; |
<?php | |
ob_start(); | |
// do all the stuff from other pages, like connect to database and check for login etc. | |
// remember to handle no being logged in somehow, including closing the database connects and calling ob_end_flush(); | |
// you should rename these variables to make sense for whatever you are doing |