This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Using https://github.com/farbenmeer/dbpedia | |
# http://stackoverflow.com/questions/13033841/dbpedia-country-profile-query | |
# See also http://stackoverflow.com/questions/15610033/query-cities-and-their-country-from-dbpedia | |
# List of countries, including defunct countries | |
Dbpedia.sparql.query('select ?country where { ?country rdf:type dbpedia-owl:Country }') | |
# List of modern countries | |
select ?country where { ?country <http://purl.org/dc/terms/subject> <http://dbpedia.org/resource/Category:Member_states_of_the_United_Nations>; <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://schema.org/Country> } order by ?country |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Project Default Service Account" is what Google Plus calls default OAuth providers. As the developer, change it in the console under "Consent screen". |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setup | |
require 'pp' | |
require 'linode' | |
l = Linode.new api_key: 'my-api-key' # Get that from https://manager.linode.com/profile/index | |
a = l.avail | |
# Let's Rock It ... | |
2.1.0 :011 > pp a.datacenters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# api.linode_update(LinodeId=linode_id, Label='%s_%s' % (linode_id, name)) | |
api.linode_update(LinodeId=linode_id, Label='%s' % (name)) | |
api.linode_ip_addprivate(LinodeId=linode_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'open-uri' | |
require 'json' | |
language = 'en' | |
article = ARGV[0] || | |
begin | |
print 'What do you need to know? : ' | |
URI::encode gets.chomp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/ruby/.rvm/gems/ruby-2.1.0/bundler/gems/rails-25a05723792b/activesupport/lib/active_support/core_ext/module/aliasing.rb:32:in `alias_method': undefined method `_compile_filter' for class `ActiveSupport::Callbacks::Callback' (NameError) | |
from /home/project/.rvm/gems/ruby-2.1.0/bundler/gems/rails-25a05723792b/activesupport/lib/active_support/core_ext/module/aliasing.rb:32:in `alias_method_chain' | |
from /home/project/demo/config/initializers/log_callbacks.rb:3:in `included' | |
from /home/project/demo/config/initializers/log_callbacks.rb:37:in `include' | |
from /home/project/demo/config/initializers/log_callbacks.rb:37:in `<top (required)>' | |
from /home/project/.rvm/gems/ruby-2.1.0/bundler/gems/rails-25a05723792b/activesupport/lib/active_support/dependencies.rb:241:in `load' | |
from /home/project/.rvm/gems/ruby-2.1.0/bundler/gems/rails-25a05723792b/activesupport/lib/active_support/dependencies.rb:241:in `block in load' | |
from /home/project/.rvm/gems/ruby-2.1.0/bundler/gems/rails-25a05723792b/activesupport/lib/active |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# forked from https://gist.github.com/ethier/7190310 | |
# via http://uncorruptedstate.com/blog/2013/10/27/zero-downtime-deployment-with-rails-and-unicorn/ | |
### Unicorn variables ### | |
TIMEOUT=${TIMEOUT-60} | |
APP_ROOT=/home/web/current | |
UNICORN=$APP_ROOT/bin/unicorn | |
TMP_PATH=$APP_ROOT/tmp | |
PID_PATH=$APP_ROOT/tmp/pids |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FAILED => SSH encountered an unknown error during the connection. We recommend you re-run the command using -vvvv, which will enable SSH debugging output to help diagnose the issue | |
In my experience, this is almost because I forgot add the user. Add "-u username" to the ansible command-line call. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Upcoming changes to your fork mahemoff/yeoman | |
GitHub support@github.com | |
12:50 AM (7 hours ago) | |
Dear mahemoff, | |
During recent maintenance we discovered that your private fork mahemoff/yeoman's parent repository yeoman/yeoman is public. We no longer allow the creation of private forks from public repositories, so we need to make some changes to your fork. | |
To protect your code's privacy we don't automatically make a fork public to match the parent repository. Instead, mahemoff/yeoman will be unforked in three days and become a new private repository under your account. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="https://player.fm/featured/accounting">Accounting</a> | |
<br> | |
<a href="https://player.fm/featured/acoustic">Acoustic</a> | |
<br> | |
<a href="https://player.fm/featured/adventist">Adventist</a> | |
<br> | |
<a href="https://player.fm/featured/after-life">After Life</a> | |
<br> | |
<a href="https://player.fm/featured/agile">Agile</a> | |
<br> |
OlderNewer