Skip to content

Instantly share code, notes, and snippets.

#
# Meteor Flat UI installer - ( with Less support )
#
# brew install rename # on osx
cd meteor-app
FLATUI_VER=2.1.3
echo "\n Download Flat UI.. "$FLATUI_VER
mkdir -p client/vendor
mkdir -p public/assets/vendor
'use strict';
var thunk = require('thunkify');
var co = require('co');
var readline = require('readline');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
'editor':
'fontFamily': 'menlo'
'softWrap': true
'showInvisibles': true
'showIndentGuide': true
'fontSize': 14
'core':
'themes': [
'atom-dark-ui'
'darkmate'
@grigio
grigio / locks.rs
Last active August 29, 2015 14:12 — forked from drbawb/locks.rs
// Ported to Rust 0.13.0-nightly but it doesn't seem to work as expected
use std::time::duration::Duration;
use std::sync::{Arc,RWLock};
use std::thread::Thread;
fn main() {
println!("running channels: ");
channels();
println!("running locks: ");
// Ported to rust 1.0.0-dev
// latest version is https://github.com/grigio/fun-with-threads/blob/master/rust_counter_atomics.rs
use std::sync::Arc;
use std::sync::atomic::AtomicUint;
use std::sync::atomic::Ordering::Relaxed;
use std::sync::mpsc::channel;
use std::thread::Thread;
const NUM_THREADS: usize = 20;
const NUM_INCREMENTS: usize = 10000000us;
@grigio
grigio / gist:ecebc97b0ad83c439419
Created January 23, 2015 17:10
Fucking OSX 10.10 Yosemite errors
Google Chrome He (map: 0xffffff800fb225a0) triggered DYLD shared region unnest for map: 0xffffff800fb225a0, region 0x7fff85400000->0x7fff85600000. While not abnormal for debuggers, this increases system memory footprint until the target exits.
en0: 802.11d country code set to 'IT'.
en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
memorystatus_thread: idle exiting pid 39 [iconservicesagen]
memorystatus_thread: idle exiting pid 100 [secinitd]
memorystatus_thread: idle exiting pid 99 [ctkd]mac
Google Chrome He (map: 0xffffff800fb22b40) triggered DYLD shared region unnest for map: 0xffffff800fb22b40, region 0x7fff85400000->0x7fff85600000. While not abnormal for debuggers, this increases system memory footprint until the target exits.
memorystatus_thread: idle exiting pid 127 [com.apple.ifdrea]
memorystatus_thread: idle exiting pid 125 [nehelper]
memorystatus_thread: idle exiting pid 133 [sysmond]
Il simbolo della Apple in Unicode -->  <--
$ rails
<internal:gem_prelude>:114:in `push_gem_version_on_load_path': undefined method `<=>' for nil:NilClass (NoMethodError)
from <internal:gem_prelude>:8:in `gem'
from /usr/bin/rails:18:in `<main>'
$ gem list
*** LOCAL GEMS ***
abstract (1.0.0)
# Usage: ruby twitter-oauth-example.rb
require "rubygems"
require "oauth"
require "json"
CONSUMER_KEY = 'fill me'
CONSUMER_SECRET = 'fill me'
ACCESS_TOKEN = '' # don't worry
ACCESS_TOKEN_SECRET = '' # you'll get them!
# Usage: ruby google-oauth-example.rb
require "rubygems"
require "oauth"
require "json"
CONSUMER_KEY = 'anonymous'
CONSUMER_SECRET = 'anonymous'
ACCESS_TOKEN = ''
ACCESS_TOKEN_SECRET = '' # Get them from Google Playground