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
| { | |
| "require": { | |
| "mailgun/mailgun-php": "^2.4", | |
| "php-http/curl-client": "^1.7", | |
| "guzzlehttp/psr7": "^1.4" | |
| } | |
| } |
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
| -- Database | |
| SELECT DEFAULT_CHARACTER_SET_NAME, DEFAULT_COLLATION_NAME | |
| FROM information_schema.SCHEMATA | |
| WHERE schema_name = "database_name"; | |
| -- Tables | |
| SELECT DISTINCT TABLE_COLLATION, COLLATION_NAME, CHARACTER_SET_NAME | |
| FROM information_schema.`TABLES` AS t | |
| INNER JOIN information_schema.`COLLATION_CHARACTER_SET_APPLICABILITY` AS ccsa ON ccsa.collation_name = t.table_collation | |
| AND t.table_schema = "database_name"; |
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
| {# | |
| time can be any string acceptable by http://www.php.net/strtotime, the | |
| template will output that time's month. | |
| If you don't want to pass in a date you can set time like this: | |
| {% set time = "now"|date("U") %} | |
| {% set time = "December 2012"|date("U") %} | |
| How ever you want to output items onto the calendar is a different issue, | |
| but I'd assume pushing everything into an array numerically indexed by that day: |
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
| function urlObject(options) { | |
| "use strict"; | |
| /*global window, document*/ | |
| var url_search_arr, | |
| option_key, | |
| i, | |
| urlObj, | |
| get_param, | |
| 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
| # In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env | |
| # variable pointing GPG to the gpg-agent socket. This little script, which must be sourced | |
| # in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start | |
| # gpg-agent or set up the GPG_AGENT_INFO variable if it's already running. | |
| # Add the following to your shell init to set up gpg-agent automatically for every shell | |
| if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then | |
| source ~/.gnupg/.gpg-agent-info | |
| export GPG_AGENT_INFO | |
| else |
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
| curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer |
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/sh | |
| if [ ! -d /mnt/fio_test ]; then mkdir /mnt/fio_test; fi | |
| for RUN in 1 2; do | |
| rm -f /mnt/fio_test/* | |
| fio --directory=/mnt/fio_test \ | |
| --name fio_test_file --direct=1 --rw=randread --bs=16k --size=1G \ | |
| --numjobs=2 --time_based --runtime=180 --group_reporting --norandommap | |
| sleep 5 |
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 | |
| PO_TOKEN="" | |
| PO_USER="" | |
| PO_BIN=/usr/local/bin/pushover | |
| ZB_TO=$1 | |
| ZB_SUBJECT=$2 | |
| ZB_BODY=$3 |
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 | |
| # | |
| # Program: SSL Certificate Check <ssl-cert-check> | |
| # | |
| # Source code home: http://prefetch.net/code/ssl-cert-check | |
| # | |
| # Documentation: http://prefetch.net/articles/checkcertificate.html | |
| # | |
| # Author: Matty < matty91 at gmail dot com > | |
| # |
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 | |
| # **************************************************************** | |
| # IPTables path | |
| # **************************************************************** | |
| IPT=/sbin/iptables | |
| # **************************************************************** | |
| # Remove/Erase old rules |