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 | |
| # dontforget | |
| # | |
| # A stupid script for short term reminders in bash | |
| # | |
| # Arguments just need to contain a number and a bunch of words. | |
| # | |
| # The number can be anywhere in the arguments, but there shouldn't | |
| # be any other numeric digits. | |
| # |
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
| server { | |
| listen 80 default_server; | |
| listen [::]:80 default_server ipv6only=on; | |
| listen 443 ssl; | |
| root /var/www/lumen/public; | |
| index index.php index.html index.htm; | |
| server_name server_domain_or_IP; |
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
| # force HTTP to HTTPS - /etc/nginx/conf.d/nonssl.conf | |
| server { | |
| listen 80; | |
| server_name jira.example.com; | |
| access_log off; | |
| return 301 https://$server_name$request_uri; | |
| } | |
| # /etc/nginx/conf.d/jira.conf | |
| server { |
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 | |
| #============================================================================== | |
| #TITLE: mysql_backup.sh | |
| #DESCRIPTION: script for automating the daily mysql backups on development computer | |
| #AUTHOR: tleish | |
| #DATE: 2013-12-20 | |
| #VERSION: 0.4 | |
| #USAGE: ./mysql_backup.sh | |
| #CRON: | |
| # example cron for daily db backup @ 9:15 am |
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
| #!/usr/bin/env bash | |
| progname=$(basename $0) | |
| version="1.0 (2014-08-17)" | |
| step=2 | |
| function create_hash { | |
| openssl dgst -sha1 -binary <<< "$1" | xxd -p | |
| } |
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 | |
| echo ' | |
| ### | |
| # Welcome to graphite creator | |
| ### | |
| !!! | |
| ! THIS WILL REMOVE /var/www - MAKE SURE YOU WANT TO DO THIS! | |
| !!! |
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
| # Create a new Token | |
| curl -u 'githubuser' -d '{"note":"Your Application"}' https://api.github.com/authorizations | |
| # It is: "ebab4dc37e654bb230a9c69ebcd5f38e9a81e210" | |
| #{ | |
| # "created_at": "2013-01-04T18:00:28Z", | |
| # "app": { | |
| # "url": "http://developer.github.com/v3/oauth/#oauth-authorizations-api", |
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 | |
| ProgName=$(basename $0) | |
| sub_help(){ | |
| echo "Usage: $ProgName <subcommand> [options]\n" | |
| echo "Subcommands:" | |
| echo " bar Do bar" | |
| echo " baz Run baz" | |
| echo "" |
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(global) { | |
| var silpUrl = '//s3-eu-west-1.amazonaws.com/silp.shootitlive.com/js/silp.min.js'; | |
| // Globals | |
| if(!global.Silp) { global.Silp = {}; }; | |
| var Silp = global.Silp; | |
| // To keep track of which embeds we have already processed | |
| if(!Silp.foundEls) Silp.foundEls = []; |
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 | |
| # current Git branch | |
| branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
| # v1.0.0, v1.5.2, etc. | |
| versionLabel=v$1 | |
| # establish branch and tag name variables | |
| devBranch=develop |