Skip to content

Instantly share code, notes, and snippets.

View everplays's full-sized avatar

Behrooz Shabani everplays

View GitHub Profile
@everplays
everplays / .Xmodmap
Last active December 1, 2015 07:46
i3 configuration
pointer = 1 2 3 5 4 7 6 8 9 10 11 12
behroozs-MacBook-Pro:Cappuccino behrooz$ /usr/local/narwhal/bin/nib2cib -v -v --no-colors /Users/behrooz/archipel-upstream/ArchipelClient/Resources/en.lproj/MainMenu.xib
nib2cib v0.9.7-alpha1
Loaded theme: /Users/behrooz/archipel-upstream/ArchipelClient/Libraries/Cappuccino/Build/Debug/Aristo2.blend
-------------------------------------------------------------
Input : /Users/behrooz/archipel-upstream/ArchipelClient/Resources/en.lproj/MainMenu.xib
Output : /Users/behrooz/archipel-upstream/ArchipelClient/Resources/en.lproj/MainMenu.cib
Application : /Users/behrooz/archipel-upstream/ArchipelClient
Frameworks : AppKit*, Foundation, GrowlCappuccino*, LPKit*, Objective-J, StropheCappuccino*, TNKit*, VNCCappuccino*
Default theme : Aristo2
@everplays
everplays / guake-start-up.sh
Created February 3, 2013 06:51
initialize guake tabs
#!/bin/bash
# index of last opened tab
lastTabIndex=-1
function runGuake {
# run guake in another proccess
nohup guake > /dev/null &
# wait for guake
sleep 5
@everplays
everplays / AgaviRedisDatabase.class.php
Created September 26, 2012 17:18
Provides Redis connectivity through phpredis extension
<?php
// +---------------------------------------------------------------------------+
// | This file is part of the Agavi package. |
// | Copyright (c) 2012 Parspooyesh co. |
// | |
// | For the full copyright and license information, please view the LICENSE |
// | file that was distributed with this source code. You can also view the |
// | LICENSE file online at http://www.agavi.org/LICENSE.txt |
// | vi: set noexpandtab: |
@everplays
everplays / AgaviMustacheRenderer.class.php
Created September 26, 2012 17:16
agavi mustache renderer
<?php
// +---------------------------------------------------------------------------+
// | This file is part of the Agavi package. |
// | Copyright (c) 2012 Parspooyesh co. |
// | |
// | For the full copyright and license information, please view the LICENSE |
// | file that was distributed with this source code. You can also view the |
// | LICENSE file online at http://www.agavi.org/LICENSE.txt |
// | vi: set noexpandtab: |
@everplays
everplays / archipel-stress-testing.rb
Created August 18, 2012 08:43
stress testing for archipel
require "blather/client"
$vm_jid = "3d0483f8-e394-11e1-a994-d0df9ad31bb4@behrooz/hypervisor"
class Create < Blather::Stanza::Iq
def self.new
iq = super("get", $vm_jid)
queryTag = Blather::XMPPNode.new("query")
queryTag["xmlns"] = "archipel:vm:control"
@everplays
everplays / xmpp-ping.py
Created July 4, 2012 07:36
a simple script to ping another jid
#!/usr/bin/python
import xmpp
import sys
import random
import optparse
import subprocess
import socket
import re
@everplays
everplays / 0001-implemented-ping-protocol-extension-for-hypervisor-v.patch
Created July 1, 2012 12:20
implemented ping protocol extension for hypervisor/vm in archipel
From ab1055cc3689e5f3a634654028ec14d3535fda6f Mon Sep 17 00:00:00 2001
From: "behrooz shabani (everplays)" <behrooz@rock.com>
Date: Sun, 1 Jul 2012 16:48:09 +0430
Subject: [PATCH] implemented ping protocol extension for hypervisor/vm
---
.../archipel-core/archipelcore/archipelEntity.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/ArchipelAgent/archipel-core/archipelcore/archipelEntity.py b/ArchipelAgent/archipel-core/archipelcore/archipelEntity.py
@everplays
everplays / plugin_ctx
Created November 7, 2011 06:06
invalid utf-8 byte sequence - browser package manager
window={};
if (typeof BPM_PLUGIN === 'undefined') BPM_PLUGIN={};
// ==========================================================================
// Project: Spade - CommonJS Runtime
// Copyright: ©2010 Strobe Inc. All rights reserved.
// License: Licened under MIT license
// ==========================================================================
/*jslint evil:true */
/*globals spade ARGS ARGV ENV __module ActiveXObject */