This file contains hidden or 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
{ | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"font_size": 8, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"tab_size": 4, | |
"theme": "Nexus.sublime-theme", | |
"bold_folder_labels": true, |
This file contains hidden or 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
Show hidden characters
{ | |
"atomic_save": false, | |
"caret_extra_bottom": 2, | |
"caret_extra_top": 2, | |
"caret_extra_width": 1, | |
"caret_style": "solid", | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"enable_tab_scrolling": false, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
This file contains hidden or 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
# Set prefix key to Ctrl-a | |
unbind-key C-b | |
set-option -g prefix C-a | |
bind-key C-a last-window | |
# send the prefix to client inside window | |
bind-key C-a send-prefix | |
# scrollback buffer n lines | |
set -g history-limit 5000 |
This file contains hidden or 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
Modify your php.ini file | |
- Ubuntu/Debian -/etc/php5/apache2/php.ini | |
- Centos/Rhel - /etc/php.ini | |
disable_functions = php_uname, getmyuid, getmypid, passthru, leak, listen, diskfreespace, tmpfile, link, ignore_user_abord, shell_exec, dl, set_time_limit, exec, system, highlight_file, source, show_source, fpaththru, virtual, posix_ctermid, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix, _getppid, posix_getpwnam, posix_getpwuid, posix_getrlimit, posix_getsid, posix_getuid, posix_isatty, posix_kill, posix_mkfifo, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_times, posix_ttyname, posix_uname, proc_open, proc_close, proc_get_status, proc_nice, proc_terminate, phpinfo, apache_child_terminate, apache_setenv, ini_get_all, escapeshellcmd, escapeshellarg |
This file contains hidden or 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
# Return codes | |
OK=0 | |
E_ARGS=1 | |
E_INVALID=2 | |
E_NOTEXIST=3 | |
E_EXISTS=4 | |
E_SUSPENDED=5 | |
E_UNSUSPENDED=6 | |
E_INUSE=7 | |
E_LIMIT=8 |
This file contains hidden or 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
const api_domain = "https://updown.io/api/" | |
const api_key = "INSERT_YOUR_API_KEY_HERE" | |
let w = new ListWidget() // Create the widget | |
w.backgroundColor = Color.clear() // add transparent background | |
//w.url= "https://url.com" // an url to open on click | |
async function getChecks() { | |
const response = new Request(api_domain + '/checks?api-key=' + api_key); |
This file contains hidden or 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 | |
function post_to_slack () { | |
# format message as a code block ```${msg}``` | |
SLACK_MESSAGE="\`\`\`$1\`\`\`" | |
SLACK_URL=https://hooks.slack.com/services/UPDATE_THE_URL | |
case "$2" in | |
INFO) | |
SLACK_ICON=':slack:' | |
;; |
This file contains hidden or 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 | |
// extract sitemap urls from sitemap_index.xml | |
$urls = array(); | |
$xml = simplexml_load_file('https://example.com/sitemap_index.xml'); | |
foreach ($xml->sitemap as $sitemap) { | |
$sitemapUrl = (string) $sitemap->loc; | |
$sitemapXml = simplexml_load_file($sitemapUrl); | |
// Iterate through the URLs in the sitemap |
This file contains hidden or 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 | |
## | |
# Imports all .sql files in your current direcotry | |
## | |
for i in *.sql | |
do | |
echo "Importing: $i" | |
mysql your_db_name < $i |
This file contains hidden or 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
<?xml version="1.0"?> | |
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress Coding Standards" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/PHPCSStandards/PHP_CodeSniffer/master/phpcs.xsd"> | |
<description>The Coding standard for the WordPress.</description> | |
<file>.</file> | |
<exclude-pattern>/docroot/wp-admin/*</exclude-pattern> | |
<exclude-pattern>/docroot/wp-includes/*</exclude-pattern> | |
<exclude-pattern>/docroot/wp-*.php</exclude-pattern> |