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 | |
| #-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password | |
| REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'` | |
| if [ -z "$REPO_URL" ]; then | |
| echo "-- ERROR: Could not identify Repo url." | |
| echo " It is possible this repo is already using SSH instead of HTTPS." | |
| exit | |
| fi |
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 -e | |
| clear | |
| echo "============================================" | |
| echo "WordPress Install Script" | |
| echo "============================================" | |
| echo "Database Name: " | |
| read -e dbname | |
| echo "Database User: " | |
| read -e dbuser | |
| echo "Database Password: " |
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 | |
| # Installation script for a Wordpress 3.0 website on Ubuntu 10.04 | |
| # | |
| # Josh Kersey | |
| # Created: May 15, 2012 | |
| # Last Update: June 13, 2012 | |
| # get setup parameters | |
| echo "apache vhost name (one word):" |
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 | |
| $sites = array( | |
| 'sitename.com' => 'sitename.com', | |
| // the first sitename.com in the file, refers to the url content in the browser's window, | |
| //you may/probably should replace this with a FQDN. | |
| // the second sitename.com appearing after '=>' is the directory name inside sites/ where | |
| //the site files are stored. | |
| ); |
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 sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
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
| /** | |
| 2012-03-26 Forked from duncanbeevers' sc-dl.js : https://gist.github.com/2157987 | |
| **/ | |
| (function(document) { | |
| var link = document.createElement("a"), | |
| span = document.createElement("span"), | |
| slug = document.querySelector("#main-content-inner img[class=waveform]").src.match(/\.com\/(.+)\_/)[1], | |
| mp3 = document.querySelector("em").innerText + ".mp3"; |
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
| /** | |
| 2012-03-26 Forked from duncanbeevers' sc-dl.js : https://gist.github.com/2157987 | |
| **/ | |
| (function(document) { | |
| var link = document.createElement("a"), | |
| span = document.createElement("span"), | |
| slug = document.querySelector("#main-content-inner img[class=waveform]").src.match(/\.com\/(.+)\_/)[1], | |
| mp3 = document.querySelector("em").innerText + ".mp3"; |
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
| shopt -s extglob | |
| declare -A access | |
| access=(); | |
| cutoff=$(date +%s -d "1 week ago"); | |
| packages=$(pacman -Ql | tail -n 5000); | |
| IFS=$'\n' | |
| for package in $packages; do | |
| pname=$(echo $package | cut -f1 -d' '); |
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 # -*- coding: utf-8 -*- | |
| /** | |
| * Plugin Name: Defer Contact Form 7 Scripts | |
| * Description: Adds <code>defer='defer'</code> to enqueued javascripts. | |
| * Version: 1.0 | |
| * Required: 3.3 | |
| * Author: Fuxia Scholz | |
| * Author URI: https://fuxia.me | |
| * License: GPL | |
| * License URI: http://www.gnu.org/copyleft/gpl.html |
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
| # -*-coding: utf-8-*- | |
| module Enumerable def ‰&b;each &b;end end | |
| ∲,☃,☣,☺,✄,❤,⚠,❣=10,{},->*♧{☃[♧]=1},->*♒{☃[♒]},->*✍{☒=❤[*✍] | |
| ☺[*✍]?☒&2>☒&12:☒==3},->⚓,♫{✉=0;⚠[->¢,♎{¢|♎==0||☺[¢+⚓,♎+♫]&&✉+=1}];✉}, | |
| ->➨{(-1..1).‰{|¢|(-1..1).‰{|♎|➨[¢,♎]}}},->{∲.downto(-∲).‰{|☒|(-∲..∲).‰{|☐| | |
| $><<(☺[☐,☒]??X:?.)};puts}};☀=->{☃=({}.tap{|త|☃.‰{|(☐,☒),_|⚠[->¢,♎{ | |
| ¢|♎==0||త[[☐+¢,☒+♎]]=✄[☐+¢,☒+♎]}]}})};☣[0,0];☣[1,0];☣[2,0];☣[2,1];☣[1,2] | |
| loop{❣[];☀[]} |