Skip to content

Instantly share code, notes, and snippets.

View vedarthk's full-sized avatar
🛠️
building...

Vedarth Kulkarni vedarthk

🛠️
building...
View GitHub Profile
@psd
psd / README
Created January 4, 2010 14:47
OpenOffice Document Conversion
Experiments in running a headless OpenOffice as a document convertor for TiddlyDocs, etc.
Running OpenOffice Headless:
$ cd /Applications/OpenOffice.org.app/Contents/program #Mac OSX
$ cd /usr/lib/openoffice.org.app/program #CentOS
$ ./soffice.bin -headless -invisible -nofirststartwizard -accept="socket,port=8100;urp;"
init script:
see openoffice.sh xvfb.sh for init.d scripts
@query
query / rtorrent_xmlrpc.py
Created April 2, 2011 17:25
Python module for interacting with rtorrent's XML-RPC interface directly over SCGI.
#!/usr/bin/python
# rtorrent_xmlrpc
# (c) 2011 Roger Que <alerante@bellsouth.net>
#
# Python module for interacting with rtorrent's XML-RPC interface
# directly over SCGI, instead of through an HTTP server intermediary.
# Inspired by Glenn Washburn's xmlrpc2scgi.py [1], but subclasses the
# built-in xmlrpclib classes so that it is compatible with features
# such as MultiCall objects.
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2:

@ymotongpoo
ymotongpoo / requests-oauth2.py
Created February 25, 2012 07:53
Google API OAuth 2.0 Authorization Sample in Python
# -*- coding: utf-8 -*-
"""
This scripts reqire a third party module 'requests'.
You can get it from PyPI, i.e. you can install it using
easy_install or pip.
http://docs.python-requests.org/en/v0.10.4/
Original source code is written by shin1ogawa, which is in Java.
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@johntyree
johntyree / getBlockLists.sh
Last active June 4, 2024 12:30
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@jakeonrails
jakeonrails / Ruby Notepad Bookmarklet
Created January 29, 2013 18:08
This bookmarklet gives you a code editor in your browser with a single click.
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
@adamcrown
adamcrown / faye.conf
Created January 31, 2013 19:01
Faye + RVM + thin upstart script
description "faye"
version "1.0"
author "Adam Crownoble"
env LANG=en_US.UTF-8
env APP_ROOT=/srv/rack/faye-server
start on startup
stop on shutdown
# Fake email id generator for Gmail
# These emails will come to real email id you have provided to this script
require 'csv'
def generate_fake_emails(email, count = 1)
result = []
username, domain = email.split('@')
count.times do |c|
result << "#{username}+#{c+1}@#{domain}"
@gooberling
gooberling / own function
Created February 26, 2013 10:50
Create your own function and then reuse that
(function ($) {
$.fn.highlight = function () {
$(this).css({ color: 'red', background: 'yellow' });
$(this).fadeIn();
};
$('.element').highlight();