Skip to content

Instantly share code, notes, and snippets.

View bdryanovski's full-sized avatar

Bozhidar Dryanovski bdryanovski

View GitHub Profile
sudo find . | ag wacom | less
## Delete everything you find
sudo rm -rf /Library/LaunchDaemons/com.wacom.*
sudo rm -rf /System/Volumes/Data/private/db/receipts/com.wacom.*
sudo rm -rf /Users/macosUser/Library/Containers/com.wacom.DataStoreMgr
sudo rm -rf /Library/Application\ Support/Tablet/
sudo rm -rf /Library/Extensions/Wacom\ Tablet.kext
sudo rm -rf /Library/Internet\ Plug-Ins/WacomTabletPlugin.plugin
@bdryanovski
bdryanovski / index.js
Last active August 29, 2015 14:01
Twitter Access Token/Secret
var twitterApi = require('node-twitter-api')
var express = require('express')
var app = express()
var port = 3333
var Twitter = new twitterApi({
consumerKey: 'K3EUu8yyJvkK7jNpnl7qJhxVw',
consumerSecret: 'UixSz6xMxPMnX2TrPood4zm01U20uCtQClibqepmjnwlOPWDCQ',
callback: 'http://0.0.0.0:' + port + '/callback'
})
@bdryanovski
bdryanovski / twitter_feed.rb
Created October 2, 2013 11:54
Read public twitter feed, with Ruby.
#
# gem install twitter
#
require 'twitter'
#
# Create new Twitter Application used for Authentication
# https://dev.twitter.com/apps/new
#
@bdryanovski
bdryanovski / Arduino_servo_sonar
Created July 5, 2013 19:50
Ardoino Experiment with Servo and Sonar
// Controlling a servo position using a potentiometer (variable resistor)
// by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>
#include <Servo.h>
Servo myservo; // create servo object to control a servo
int potpin = 0; // analog pin used to connect the potentiometer
int val; // variable to read the value from the analog pin
define('app/channel_selector/channel_selector', function () {
var controller = Spine.Controller.create({
proxied: ["searchItems", "seeMore", "handleOutsideClick"],
events: {
//"keyup .search_walls_stats": "searchItemsThrottled",
"click table.cs_channels thead tr": "selectItemHeader",
"click table.cs_channels tbody": "selectItem",
"click div.thead.cs_channels": "sortItemsThrottled",
"click .channel_selector_header": "toggleSelector",
"click div.see_more": "seeMore",
@bdryanovski
bdryanovski / twitter_oauth.rb
Created January 16, 2013 13:04
Sinatra example for Twitter OAuth.
require 'rubygems'
require 'sinatra'
require 'oauth'
require 'json'
SERVER_HOST = '0.0.0.0'
SERVER_PORT = '3000'
BASE_URL = "http://0.0.0.0:3000"
TWITTER_KEY = ''
@bdryanovski
bdryanovski / gist:2152807
Created March 21, 2012 21:02
Plaing with id3 and coffeescript.
id3 = require('id3')
walk = require('walk')
fs = require('fs')
files = []
directory = '/media/8A02D1CD02D1BE7F/Music'
walker = walk.walk(directory, { followLinks: false})

Vim Shortcuts

gist-vim.vim

Post current buffer to gist, using default privacy option
:Gist

Edit the gist ( must open it first )
:Gist -e

.mouse, #preview{
position: absolute;
background-repeat: no-repeat;
height: 22px;
min-width: 15px;
z-index: 100;
}
.mouse{
background-image: url('../images/cursor.png');