Skip to content

Instantly share code, notes, and snippets.

View kjellski's full-sized avatar
🤓
learning every day...

Kjellski kjellski

🤓
learning every day...
View GitHub Profile
@kjellski
kjellski / data.json
Created February 1, 2013 00:04
poe graph json formatted
This file has been truncated, but you can view the full file.
{
"imageZoomLevels" : [
0.1726,
0.2429,
0.3132,
0.3835
],
"max_y" : 6781,
"characterData" : {
"6" : {
@kjellski
kjellski / install.sh
Last active December 13, 2015 19:18 — forked from padcom/install.sh
#!/bin/bash
#------------------------------------------------------------------------------
# SETTINGS
#------------------------------------------------------------------------------
MYSQL_ROOT_PASSWORD=password
MYSQL_GITORIOUS_PASSWORD=password
GITORIOUS_HOST=gitorious
SYSADMIN=sysadmin
@kjellski
kjellski / gist:5048946
Created February 27, 2013 15:55
x2goserver install failure while installing x2golxdebindings
[/etc/x2go]$ sudo apt-get install x2golxdebindings
Reading package lists... Done
Building dependency tree
Reading state information... Done
x2golxdebindings is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 93 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up x2golxdebindings (1.0.1.3-0~30~precise1) ...
@kjellski
kjellski / var_log_syslog
Created February 28, 2013 16:07
x2goserver syslog entries for a successfull command call to /usr/bin/xterm
Feb 28 16:43:29 ubuntuserver /usr/bin/x2gostartagent: x2gostartagent called with options: 800x600 adsl 16m-jpeg-9 unix-kde-depth_24 us pc105/us 1 R xterm
Feb 28 16:43:29 ubuntuserver /usr/bin/x2gosessionlimit[4863]: x2gosessionlimit has been called
Feb 28 16:43:29 ubuntuserver /usr/bin/x2golistsessions[4867]: x2golistsessions has been called with options: --all-servers
Feb 28 16:43:30 ubuntuserver /usr/bin/x2gofeature: x2gofeature called with options: X2GO_RUN_EXTENSIONS
Feb 28 16:43:30 ubuntuserver /usr/share/x2go/x2gofeature.d/x2goserver-extensions.features: x2goserver-extensions.features called with options: X2GO_RUN_EXTENSIONS
Feb 28 16:43:30 ubuntuserver /usr/bin/x2goserver-run-extensions: x2goserver-run-extensions called with options: kjellski-50-1362066210_stRxterm_dp24 pre-start
Feb 28 16:43:31 ubuntuserver /usr/bin/x2gostartagent: successfully started X2Go agent session with ID kjellski-50-1362066210_stRxterm_dp24
Feb 28 16:43:31 ubuntuserver /usr/bin/x2gofeature: x2gofeature called with options: X2G
@kjellski
kjellski / x2client_output.sh
Created March 6, 2013 15:01
example output of x2goclient
$ ./client_build/x2goclient --session=x2goserver_RZ --hide
x2go-INFO-001> Starting x2goclient...
x2go-INFO-009> Can't load translator :/x2goclient_en_us
x2go-INFO-004> Started x2goclient.
x2go-INFO-005> $HOME=/home/kjellski
$
@kjellski
kjellski / show_printouts.sh call.sh
Created March 7, 2013 13:31
output of current execution for recognizing the outputs.
$ ./show_printouts.sh onmainwindow.cpp
74: INFO, 1, "Starting x2goclient..."
247: INFO, 2, "Starting x2goclient in portable mode..."
302: INFO, 3, "Switching to \"mini\" mode..."
487: INFO, 4, "Started x2goclient."
488: INFO, 5, "$HOME=" + homeDir.toAscii()
491: INFO, 6, "ThinMode is active."
504: INFO, 7, "Destroying x2goclient..."
510: INFO, 8, "Destroyed x2goclient."
566: INFO, 9, "Translator: " + filename.toAscii() + " installed."
This file has been truncated, but you can view the full file.
'use strict';
var COMPILED = !0, goog = goog || {};
goog.global = this;
goog.DEBUG = !1;
goog.LOCALE = "en";
goog.provide = function (a) {
if (!COMPILED) {
if (goog.isProvided_(a))
throw Error('Namespace "' + a + '" already declared.');
delete goog.implicitNamespaces_[a];
@kjellski
kjellski / install.sh
Last active December 16, 2015 04:18 — forked from padcom/install.sh
#!/bin/bash
#------------------------------------------------------------------------------
# SETTINGS
#------------------------------------------------------------------------------
MYSQL_ROOT_PASSWORD=password
MYSQL_GITORIOUS_PASSWORD=password
GITORIOUS_HOST=gitorious
SYSADMIN=sysadmin
object FizzBuzz extends App {
val nones = Stream.continually(None)
val fizzes: Stream[Option[String]] = nones.take(2) ++ Some("Fizz") #:: fizzes
val buzzes: Stream[Option[String]] = nones.take(4) ++ Some("Buzz") #:: buzzes
for (((fizz, buzz), n) <- fizzes zip buzzes zip (1 to 100)) {
println(fizz.map(_ + buzz.getOrElse("")).orElse(buzz).getOrElse(n))
}
@kjellski
kjellski / openstack - stack.sh
Last active December 17, 2015 11:49
openstack
[~/Projects/devstack (master)]$ sudo ./stack.sh
[sudo] password for kjellski:
You are running this script as root.
In 10 seconds, we will create a user 'stack' and run as that user
Giving stack user passwordless sudo privileges
Copying files to stack user
Using mysql database backend
+ echo_summary 'Installing package prerequisites'
+ [[ -t 3 ]]
+ [[ True != \T\r\u\e ]]