MD5: 59bab8f71f8c096cd3f72cd73851515d
Rename it to: Sublime Text
Make it executable with: chmod u+x Sublime\ Text
| #!/bin/bash | |
| # | |
| # hhvm Startup script for the HipHop Server | |
| # | |
| # chkconfig: - 85 15 | |
| # description: HHVM is an open-source virtual machine designed for executing programs written in Hack and PHP | |
| # processname: hhvm | |
| # config: /etc/php.ini | |
| # config: /etc/hhvm/server.ini | |
| # pidfile: /var/run/hhvm/hhvm.pid |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| <?php | |
| namespace Custom_Reg; | |
| class Custom_Reg { | |
| protected $form; | |
| protected $saver; | |
| function __construct( Form $form, Saver $saver ) { |
| package se.marteinn.ui; | |
| import android.content.Context; | |
| import android.util.AttributeSet; | |
| import android.view.View; | |
| import android.widget.ScrollView; | |
| /** | |
| * Triggers a event when scrolling reaches bottom. |
| // colour vars (or color if you're American) | |
| @plain-black: #000; | |
| @plain-white: #fff; | |
| @funky-green: #00ff00; // original | |
| .title-bar { | |
| padding: 15px; | |
| letter-spacing: 0.08em; | |
| font-size: 1.1em; | |
| } |
| #!/usr/bin/perl | |
| use open qw(:std :utf8); | |
| # Program to filter Wikipedia XML dumps to "clean" text consisting only of lowercase | |
| # letters (a-z, converted from A-Z), and spaces (never consecutive). | |
| # All other characters are converted to spaces. Only text which normally appears | |
| 1 #!/usr/bin/perl | |
| # in the web browser is displayed. Tables are removed. Image captions are | |
| # preserved. Links are converted to normal text. Digits are spelled out. |
| #!/bin/bash | |
| # Sometimes you need to move your existing git repository | |
| # to a new remote repository (/new remote origin). | |
| # Here are a simple and quick steps that does exactly this. | |
| # | |
| # Let's assume we call "old repo" the repository you wish | |
| # to move, and "new repo" the one you wish to move to. | |
| # | |
| ### Step 1. Make sure you have a local copy of all "old repo" | |
| ### branches and tags. |
| <?php | |
| /** | |
| * Change Upload Directory for one Custom Post-Type | |
| * | |
| * This will change the upload directory for a custom post-type. Attachments for this custom post type will | |
| * now be uploaded to a seperate "uploads" directory. Make | |
| * sure you swap out "post-type" and the "my-dir" with the appropriate values... | |
| * credits to: http://wordpress.stackexchange.com/users/4044/jhdenham | |
| * and http://yoast.com/smarter-upload-handling-wp-plugins/ | |
| */ |