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
{"sidebarBg":"#e8e4d9","sidebarText":"#2e2e2e","sidebarUnreadText":"#cb4b16","sidebarTextHoverBg":"#DCD6C6","sidebarTextActiveBorder":"#cb4b16","sidebarTextActiveColor":"#cb4b16","sidebarHeaderBg":"#e8e6df","sidebarHeaderTextColor":"#424242","onlineIndicator":"#52adad","awayIndicator":"#d4b579","dndIndicator":"#f74343","mentionBj":"#ffffff","mentionColor":"#ffffff","centerChannelBg":"#fdf6e3","centerChannelColor":"#444444","newMessageSeparator":"#f2777a","linkColor":"#2aa198","buttonBg":"#cb4b16","buttonColor":"#ffffff","errorTextColor":"#fd5960","mentionHighlightBg":"#ebd8c2","mentionHighlightLink":"#cb4b16","codeTheme":"github","mentionBg":"#cb4b16"} |
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
######################################################################## | |
# THERE ARE TWO FILES WORTH OF CODE IN THIS GIST | |
######################################################################## | |
##### | |
# /etc/nginx/includes/account-project.php-fpm.conf | |
##### | |
## PHP socket config has been broken out into its own file, since it needs to be reused from many places. |
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 | |
/** | |
################## | |
ip.php | |
################## | |
A php page that simply displays the IP address of the visitor. | |
Serves plain text by default, serves a pretty html version by request, or if |
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 | |
# Install Prometheus Node Exporter on CentOS 6. | |
set -eu | |
set -o pipefail | |
set -x | |
REPOFILE='/etc/yum.repos.d/coprs.ibotty.prometheus-exporters.repo' | |
INSTALLED=0 |
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 -ue | |
################################################################################ | |
# Simulates the certificate files that LetsEncrypt creates, creating self signed ones instead | |
# Ignores all arguments except the last one, which is assumed to be your FQDN. | |
################################################################################ | |
if [ $# -lt 1 ]; then | |
>&2 echo "I need at least a FQDN to do anything." | |
exit 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
# Customize BASH PS1 prompt to show current GIT repository and branch. | |
# by Mike Stewart - http://MediaDoneRight.com | |
# SETUP CONSTANTS | |
# Bunch-o-predefined colors. Makes reading code easier than escape sequences. | |
# I don't remember where I found this. o_O | |
# Reset | |
Color_Off="\[\033[0m\]" # Text Reset |
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 -ue | |
# update-wordpress.sh | |
# To be run from a nightly cron. | |
# Assumes cron email notifications are working correctly. | |
WORKINGDIR="/var/www/mysite/public_html" | |
cd "$WORKINGDIR" | |
# Don't let errors before pipes go unnoticed. |
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
<form method=GET action="<?php htmlentities(basename(_FILE_)); ?>"> | |
<input type=text name="q" value="<?php echo htmlentities($_REQUEST["q"]); ?>"> | |
<input type=submit value="WHOIS"> | |
</form> | |
<pre><?php | |
/* | |
* whois.php | |
*/ | |
main(); |
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
--- | |
- hosts: all | |
gather_facts: true | |
become: yes | |
tasks: | |
- name: Remove php5-fpm | |
apt: name=php5-fpm | |
update_cache=no |
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 | |
W_PATH="$(xclip -selection clipboard -o)" | |
U_PATH="$(echo "$W_PATH" | sed -e 's/\\/\//g' -e 's/A:/\/media\/accounts/g')" | |
nautilus "$U_PATH" |