Put flip somewhere in your $PATH and chmod a+x it.
Copy fuck into ~/.bashrc.
| javascript:(function(){var d=document,s=d.createElement('script');window.yourls_callback=function(r){if(r.short_url){javascript:window.open('https://twitter.com/intent/tweet?text='+encodeURIComponent(' '+r.short_url+' '+d.title.replace(/^[ ]+|[ ]+$/g, '')),'Tweet','width=400,height=260');}else{alert('An error occured: '+r.message);}};s.src='http://u.vanu.jp/admin/index.php?u='+encodeURIComponent(d.location.href)+'&jsonp=yourls';void(d.body.appendChild(s));})(); |
| <?php | |
| /* | |
| Plugin Name: Disable plugins when doing local dev | |
| Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify | |
| Version: 0.1 | |
| License: GPL version 2 or any later version | |
| Author: Mark Jaquith | |
| Author URI: http://coveredwebservices.com/ | |
| */ |
| #!/bin/bash | |
| # cd into the directory | |
| cd ~/gitsync/github-wordpress-sync/; | |
| # Make sure we are not already running | |
| if [ -f .sync-running ];then | |
| if test ! `find ".sync-running" -mmin +10`;then | |
| # Currently running, but not stuck | |
| exit 1; | |
| fi | |
| fi; |
| <!-- | |
| `-/+osssssssssssso+/-` | |
| ./oys+:.` `.:+syo/. | |
| .+ys:. .:/osyyhhhhyyso/:. ./sy+. | |
| /ys: -+ydmmmmmmmmmmmmmmmmmmdy+- :sy/ | |
| /h+` -odmmmmmmmmmmmmmmmmmmmmmmmmmmdo- `+h/ | |
| :ho` /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmds/ `oh: | |
| `sy. /hmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmd+ .ys` | |
| .ho `sdddhhhyhmmmdyyhhhdddddhhhyydmmmmy oh. |
| <?php | |
| /** | |
| * This function computes a hash of an integer. This can be used to not expose values to a customer, such as | |
| * not giving them the id value for passing them to URLs. This algorithm is a bidirectional encryption (Feistel cipher) that maps | |
| * the integer space onto itself. | |
| * | |
| * @link http://wiki.postgresql.org/wiki/Pseudo_encrypt Algorithm used | |
| * @link http://en.wikipedia.org/wiki/Feistel_cipher Wikipedia page about Feistel ciphers | |
| * @param int $value |
| <?php | |
| class HashCipher { | |
| protected $hash = 'sha512'; | |
| protected $hashLen = 64; | |
| protected $rounds = 16; | |
| public function __construct($hash, $rounds = 16) { | |
| $this->hash = $hash; | |
| // run a test hash, to get the proper hash length |
| <?php | |
| $foods = array( | |
| array( | |
| 'id' => 4, | |
| 'name' => 'Banana', | |
| 'color' => 'Yellow', | |
| ), | |
| array( | |
| 'id' => '5', | |
| 'name' => 'Apple', |
You have a folder with files
$ mkdir -p ~/foo && cd ~/foo
$ touch NEWFILEYou cannot git clone into it because the directory is not empty. To do so:
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |