Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am aurelian on github.
  • I am aurelian (https://keybase.io/aurelian) on keybase.
  • I have a public key whose fingerprint is C2A7 DC09 A8A4 6FD3 8C8E D34C 718C EC43 D520 4F1D

To claim this, I am signing this object:

View files_in_google_cloud_folder.rb
# gem 'google-api-client', '~> 0.7.1', require: 'google/api_client'
require 'rubygems'
require 'bundler/setup'
require 'google/api_client'
require 'google/api_client/client_secrets'
require 'google/api_client/auth/installed_app'
require 'google/api_client/auth/file_storage'
View music_tags.rb
# gem "taglib-ruby"
require 'taglib'
require 'fileutils'
folder = "/Users/aurelian/Music/The Gathering/2007 - A Noise Severe"
Dir["#{folder}/**/**"].each do | alot |
TagLib::FileRef.open(alot) do | file |
View itunes_plays_update.rb
require 'nokogiri-plist'
require 'pry'
olddoc = Nokogiri::PList(File.read("old.xml"))
newdoc = Nokogiri::PList(File.read("new.xml"))
oldtracks = olddoc["Tracks"].map{|id, track| track}
newdoc["Tracks"].each do | id, track |
View petstore-expanded.json
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Swagger Petstore",
"description": "A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification",
"termsOfService": "http://swagger.io/terms/",
"contact": {
"name": "Swagger API Team",
"email": "apiteam@swagger.io",
View operation.js
Operation.prototype.do = function (args, opts, callback, error, parent) {
var options = (opts.parent)? this.parent.options : opts;
return this.execute(args, options, callback, error, parent);
};
View petstore-swagger-v2.json
{
"swagger":"2.0",
"info":{
"description":"This is a sample server Petstore server. You can find out more about Swagger at <a href=\"http://swagger.io\">http://swagger.io</a> or on irc.freenode.net, #swagger. For this sample, you can use the api key \"special-key\" to test the authorization filters",
"version":"1.0.0",
"title":"Swagger Petstore",
"termsOfService":"http://helloreverb.com/terms/",
"contact":{
"email":"apiteam@wordnik.com"
},
View ad-include.html
{% active_docs version: "1.0" %}
<div class='api-docs-wrap'></div>
<script>
$(function(){ ThreeScale.APIDocs.init([]); });
</script>
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1Q4P04BhLDdzHKQ1yWng/n7IR86s1WerMfgkg9D1CAhsIiQuEP0u55mzvKth14+giXGWs/qsVNI17q8bhp3XXAAMW6zpqBYlzhk+KQ2a7SAM9OmPik8jKaUirbIZN2daqMvntYV3Iu7IrQHFsd/YPNT50g8cnws5sNgqEdPOatNR9ZfApBlUTsyyJoIDz9ikACUR9vLEPJ+XuvRjB2EtULdW42c4rOx7NPOXXmF5SUsNerqr7LS0QgJyshENjnRg0imsN54sJ5V232Ck3m7ytVRX0EUtDoRxRsFHwFtIRaxQaFP5hZeUy+ADZpJr3qrqw5nsTfd5Gsp/xV6+A8AyH
View id_rsa.pub
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC1Q4P04BhLDdzHKQ1yWng/n7IR86s1WerMfgkg9D1CAhsIiQuEP0u55mzvKth14+giXGWs/qsVNI17q8bhp3XXAAMW6zpqBYlzhk+KQ2a7SAM9OmPik8jKaUirbIZN2daqMvntYV3Iu7IrQHFsd/YPNT50g8cnws5sNgqEdPOatNR9ZfApBlUTsyyJoIDz9ikACUR9vLEPJ+XuvRjB2EtULdW42c4rOx7NPOXXmF5SUsNerqr7LS0QgJyshENjnRg0imsN54sJ5V232Ck3m7ytVRX0EUtDoRxRsFHwFtIRaxQaFP5hZeUy+ADZpJr3qrqw5nsTfd5Gsp/xV6+A8AyH aurelian@3scale.net