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
# config valid only for Capistrano 3.1 | |
lock '3.1.0' | |
set :application, 'myapplicationdomain.com' | |
set :repo_url, '[email protected]:user/repo.git' | |
set :ssh_options, { :forward_agent => true, :keys => [File.join(ENV["HOME"], ".ssh", "mykeyforssh.pem")] } | |
# Default branch is :master | |
# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp } |
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
role :app, %w{[email protected]} | |
role :app, %w{[email protected]} | |
role :app, %w{[email protected]} | |
set :deploy_to, '/home/user/wp' | |
server '0.0.0.0', user: 'user', roles: %w{web app} | |
set :branch do | |
default_tag = `git tag`.split("\n").last |
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
;(function(window){ | |
function sha1(e){var t=function(e,t){var n=e<<t|e>>>32-t;return n};var n=function(e){var t="";var n;var r;for(n=7;n>=0;n--){r=e>>>n*4&15;t+=r.toString(16)}return t};var r;var i,s;var o=new Array(80);var u=1732584193;var a=4023233417;var f=2562383102;var l=271733878;var c=3285377520;var h,p,d,v,m;var g;e=Base64._utf8_encode(e);var y=e.length;var b=[];for(i=0;i<y-3;i+=4){s=e.charCodeAt(i)<<24|e.charCodeAt(i+1)<<16|e.charCodeAt(i+2)<<8|e.charCodeAt(i+3);b.push(s)}switch(y%4){case 0:i=2147483648;break;case 1:i=e.charCodeAt(y-1)<<24|8388608;break;case 2:i=e.charCodeAt(y-2)<<24|e.charCodeAt(y-1)<<16|32768;break;case 3:i=e.charCodeAt(y-3)<<24|e.charCodeAt(y-2)<<16|e.charCodeAt(y-1)<<8|128;break}b.push(i);while(b.length%16!=14){b.push(0)}b.push(y>>>29);b.push(y<<3&4294967295);for(r=0;r<b.length;r+=16){for(i=0;i<16;i++){o[i]=b[r+i]}for(i=16;i<=79;i++){o[i]=t(o[i-3]^o[i-8]^o[i-14]^o[i-16],1)}h=u;p=a;d=f;v=l;m=c;for(i=0;i<=19;i++){g=t(h,5)+(p&d|~p&v)+m+o[i]+1518500249&4294967295;m=v;v=d;d=t(p,30); |
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
<Module> | |
<ModulePrefs title="Preferences for __UP_forum__" height="400"/> | |
<UserPref name="myforum" display_name="Muut Playground" default_value="playground" datatype="string"/> | |
<Content type="html"> | |
<![CDATA[ | |
<div id="muut-gadget"> <script type="text/javascript"> | |
var prefs = new gadgets.Prefs(); | |
var forum = prefs.getString("myforum"); | |
document.write('<a class="muut" href="https://muut.com/i/'+forum+'">'+forum+'</a>'); | |
</script> |
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 | |
/* | |
* MootLoader | |
* @version $Id: mootloader.php 1.0.1 | |
* @date 04/15/2013 | |
* @sikumbang @erwinschro @mneil [email protected] | |
* @site http://www.templateplazza.com | |
* @package Joomla 2.5.x | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
* |
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
(function(){ | |
MutationObserver = window.MutationObserver || window.WebKitMutationObserver; | |
function time(target){ | |
target.innerHTML = target.time; | |
} | |
moot("format", function(body, post) { | |
var $ = jQuery; | |
var $post = $(body).parents('.m-post')[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
@user = { | |
:user => { | |
:id => 'johndoe', # required | |
:displayname => 'John Doe', # required | |
:email => '[email protected]', | |
:avatar => '//gravatar.com/avatar/e5fb96fe7ec4ac3d4fa675422f8d1fb9', | |
:is_admin => true | |
} | |
} | |
require 'digest/sha1' |
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
taskkill /F /IM Chrome.exe /T | |
### Open a local index.html file in the same directory as this batch file | |
# start chrome --kiosk --profile-directory=Default --app="%~dp0/index.html" | |
### Open a website URL | |
start chrome --kiosk --profile-directory=Default --app="http://google.com" |
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
# UPSTART SCRIPT | |
# /etc/init/{taskname}.conf | |
# This task is run on startup to run miniweb which is a tiny static server | |
description "Run the miniweb web form" | |
start on (filesystem and net-device-up IFACE!=lo) | |
task | |
exec /usr/bin/miniweb -p 8000 -r /home/helios/Documents/ticket-config |
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
import BaseHTTPServer, SimpleHTTPServer | |
import ssl, os, sys | |
port = int(sys.argv[1]) if len(sys.argv) > 1 else 4443 | |
cwd = os.path.dirname(os.path.realpath(__file__)) | |
pem = os.path.join( cwd, 'mycert.pem' ) | |
os.chdir(cwd) | |
class MyHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): | |
def end_headers(self): |
OlderNewer