Get kubectl version
kubectl version
Get cluster info:
kubectl cluster-info
Vagrant.configure(2) do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.33.10" | |
config.vm.provision "shell", inline: <<-SHELL | |
apt-get update -q | |
su - vagrant | |
wget -q https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh | |
chmod +x miniconda.sh | |
./miniconda.sh -b -p /home/vagrant/miniconda | |
echo 'export PATH="/home/vagrant/miniconda/bin:$PATH"' >> /home/vagrant/.bashrc |
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc | |
. ~/.bashrc | |
mkdir ~/local | |
mkdir ~/node-latest-install | |
cd ~/node-latest-install | |
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
./configure --prefix=~/local | |
make install # ok, fine, this step probably takes more than 30 seconds... | |
curl https://www.npmjs.org/install.sh | sh |
/* | |
* A parser combinator SPARQL grammar for Scala. | |
* Written in November 2009 by Arto Bendiken <http://ar.to/> | |
* | |
* This is free and unencumbered software released into the public domain. | |
* For more information, please refer to <http://unlicense.org/> | |
*/ | |
package org.datagraph.sparql | |
import java.io.FileReader |
var yasqe = YASQE(document.getElementById("yasqe"), { | |
sparql: { | |
showQueryButton: true | |
} | |
}); | |
var yasr = YASR(document.getElementById("yasr"), { | |
//this way, the URLs in the results are prettified using the defined prefixes in the query | |
getUsedPrefixes: yasqe.getPrefixesFromQuery | |
}); |
Movies Recommendation:
Music Recommendation:
#!/bin/bash | |
path="$(dirname "$(readlink -f "$0")" )" | |
checkexe(){ | |
if [[ ! -f "$path/savihost.exe" ]]; then | |
echo "[!] savihost.exe was not found in directory $path" | |
echo "[!] please go to http://www.hermannseib.com/english/savihost.htm and download it" | |
exit 1 | |
fi | |
} |
function getTweets(searchTerm, maxResults, sinceid, languageCode) { | |
//Based on Mikael Thuneberg getTweets - mod by mhawksey to convert to json | |
// if you include setRowsData this can be used to output chosen entries | |
var data = []; | |
var idx = 0; | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
var sumSheet = ss.getSheetByName("Readme/Settings"); | |
if (isConfigured()){ | |
var oauthConfig = UrlFetchApp.addOAuthService("twitter"); | |
oauthConfig.setAccessTokenUrl("https://api.twitter.com/oauth/access_token"); |
#!/usr/bin/env node | |
//please requist your app token from | |
//https://trello.com/1/connect?key=yourkey&name=git-hook&expiration=never&response_type=token&scope=read,write | |
var key = "your key"; | |
var token = "your token"; | |
//https://trello.com/board/-/4e9003324a517dad44465056 | |
var board_id = "4e9003324a517dad44465056"; | |
var Trello = require("node-trello"); |
/** | |
* actor wrapping access for browser socket | |
*/ | |
class BrowserSocket( | |
val s: WebSocketConnection, | |
val userId: Long, | |
val teamId: Long | |
) extends Actor { |