Skip to content

Instantly share code, notes, and snippets.

@sangyye
sangyye / PKGBUILD
Created December 2, 2014 17:24
caffeine PKGBUILD
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
pkgname=caffeine
pkgver=0.0.1
pkgrel=1
pkgdesc="Simple open-source clone of the Caffeine Mac app for Ubuntu."

Keybase proof

I hereby claim:

  • I am sangyye on github.
  • I am sangyye (https://keybase.io/sangyye) on keybase.
  • I have a public key ASAZ_5B9bVnVy-jNQw8AMUfsOfORutQRBMEjNQdd8QkPIwo

To claim this, I am signing this object:

<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<scene id="scene1">
<label t="translate(0,346)">
<tspan x="0" y="0em">Whatsapp Geschichte</tspan>
</label>
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-2,8|-18,79|-32,78|-6,79|16,92">
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/>
<script src="http://cmx.io/v/0.1/cmx.js"></script>
<body>
<scene id="scene1">
<label t="translate(0,346)">
<tspan x="0" y="0em">First Comix</tspan>
</label>
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-2,8|-18,79|-32,78|-6,79|16,92">
@sangyye
sangyye / getfeed.rb
Created June 12, 2012 10:50
Atom to rss converter with ruby and sinatra
require 'sinatra'
require 'simple-rss'
require 'builder'
require 'open-uri'
get '/*' do
rss = SimpleRSS.parse open('http://' + params[:splat][0].to_s)
builder do |xml|
xml.instruct! :xml, :version => '1.0'
xml.rss :version => "2.0" do
@sangyye
sangyye / ppm.rb
Created February 28, 2012 14:54 — forked from Keksbuster/ppm.rb
Ruby with joystick
require "rubygems"
require "rjoystick"
require "serialport"
#=begin
# example 1
#
#
# ARGV[0] => /dev/input/jsX
@sangyye
sangyye / vpn.sh
Created October 21, 2011 15:25
A fast and simple multi VPN-Client for the cli
#!/bin/bash
confdir='/home/abakus/.openvpn'
function start_vpn()
{
if [ ! -e /var/run/openvpn.pid ] ; then
openvpn --daemon --writepid /var/run/openvpn.pid --cd $2/$1 --script-security 2 --config $2/$1/*.conf
else
return 1
@sangyye
sangyye / pidgin_accounts.rb
Created February 27, 2011 15:11
read out all pidgin accounts with passwords
#!/usr/bin/ruby
require 'rubygems'
require 'xmlsimple'
f = File.open(ENV['HOME'] + "/.purple/accounts.xml", "r")
data = XmlSimple.xml_in(f.read())
f.close()
data['account'].each do |item|
puts item['protocol'][0].split('-')[-1]