Quick command line interface for Cheddar. Uses the vermonster gem, install with:
gem install vermonster
The config file is located at ~/.config/cheddar/config is formated like a
regular yaml file:
client_id: xxxxxxx
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Songs</title> | |
| <style> | |
| line.link { | |
| stroke:#eee; | |
| } | |
| text { | |
| fill:#888; |
| *.json |
| # https://github.com/caseyhoward/nokogiri-plist | |
| require 'nokogiri-plist' | |
| # /apps/gnome-terminal/profiles/Default | |
| # -> background_color | |
| # -> bold_color | |
| # -> foreground_color | |
| # -> palette | |
| def convert_to_key(real_color) |
Quick command line interface for Cheddar. Uses the vermonster gem, install with:
gem install vermonster
The config file is located at ~/.config/cheddar/config is formated like a
regular yaml file:
client_id: xxxxxxx
| /* Compilare con: | |
| * gcc keys.c -lX11 -o keylogger | |
| */ | |
| #include <X11/Xlib.h> | |
| #include <unistd.h> | |
| #include <stdio.h> | |
| #include <signal.h> | |
| #include <X11/keysym.h> |
d3.js playground, using my last.fm data.
Based on A song chain by @tmcw.
| require 'json' | |
| require 'github_api' | |
| github = Github.new basic_auth: 'USERNAME:PASSWORD' | |
| issues = [] | |
| tmp = github.issues.list :user => 'USERNAME', :repo => 'REPONAME', :state => 'closed' | |
| issues << tmp | |
| tmp = github.issues.list :user => 'USERNAME', :repo => 'REPONAME', :state => 'open' |
| require 'exifr' | |
| img = EXIFR::JPEG.new('path-to-image') | |
| lat = img.gps.latitude | |
| long = img.gps.longitude | |
| puts "Latitude : #{lat}." | |
| puts "Longitude : #{long}." | |
| puts "#{lat}, #{long}" |
| require 'vermonster' | |
| cheddar = Vermonster::Client.new(:id => client_id, :secret => client_secret) | |
| cheddar.use_token!(user_token) | |
| tasks_id = [] | |
| tasks = cheddar.lists.find(1619).tasks | |
| tasks.each do |task| | |
| tasks_id.push(task['id']) |