Skip to content

Instantly share code, notes, and snippets.

_ _
___ ___ _ __ _ __ _ _ __| |_ _ __| | ___
/ __|/ _ \| '__| '__| | | | / _` | | | |/ _` |/ _ \
\__ \ (_) | | | | | |_| | | (_| | |_| | (_| | __/
|___/\___/|_| |_| \__, | \__,_|\__,_|\__,_|\___|
|___/
@zoomix
zoomix / burttwitter.html
Created June 26, 2012 13:01
burttwitter
<html>
<body>
<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 10,
interval: 30000,
width: 'auto',
@zoomix
zoomix / speaker.md
Created June 26, 2012 19:55 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal Template (http://2012.frozenrails.eu/)
@zoomix
zoomix / agnoster-light.zsh-theme
Created October 3, 2012 14:39
agnoster zsh light theme
# vim:ft=zsh ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874
# A Powerline-inspired theme for ZSH
#
# # README
#
# In order for this theme to render correctly, you will need a
# [Powerline-patched font](https://gist.github.com/1595572).
#
@zoomix
zoomix / app.rb
Created October 24, 2012 15:50
Realtime kissmetrics
require 'sinatra'
require 'json'
set :logging, false
get '/log' do
$site_stats ||= Hash.new(0)
$report_stats ||= Hash.new(0)
$report_table_stats ||= Hash.new(0)
@zoomix
zoomix / gist:3958901
Created October 26, 2012 13:45
Batched publisher to rabbitmq
# encoding: utf-8
require 'msgpack'
require 'amqp'
require 'burt/logging'
require 'thread'
module RichParser
module BatchPublisher
class BatchPublisher
@zoomix
zoomix / boot2docker_network.sh
Last active August 29, 2015 14:08
Change your /etc/hosts based on your running containers hostnames
#!/bin/bash
echo Starting boot2docker if not already started
boot2docker status || boot2docker up
export the_ip=$(boot2docker ip 2>&1 | egrep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*")
export old_route_ip=$(netstat -r | grep 172.17 | egrep -o "[0-9]*\.[0-9]*\.[0-9]*\.[0-9]*")
echo Found boot2docker ip $the_ip
if [ "$the_ip" == "" ]; then
echo Could not find the ip of boot2docker.. =/
@zoomix
zoomix / -
Created December 6, 2016 09:37
2016-12-06 10:27:54,900 [localhost-startStop-6] INFO fast2000.logfile.356347364 - Initialized Log4j logger /opt/tomcat/logs/lite.log, kategori ?r fast2000.logfile.356347364
2016-12-06 10:27:54,924 [localhost-startStop-6] DEBUG fast2000.logfile.356347364 - JDBCConnectionHandler.createConnPool: Creating connectionpool fast2000
2016-12-06 10:27:54,951 [localhost-startStop-6] INFO fast2000.logfile.356347364 - ObjectPool.started CleanerThread Thread[CleanerThread 20161206102754948,1,main]
2016-12-06 10:27:54,952 [localhost-startStop-6] INFO fast2000.logfile.356347364 - JDBCConnectionPool: Skapar en ny JDBCConnectionpool, nr 1
2016-12-06 10:27:55,107 [localhost-startStop-6] INFO fast2000.logfile.356347364 - JDBCConnectionPool: Skapade dbconnection, antal i pool: 1.
2016-12-06 10:27:55,267 [localhost-startStop-6] INFO fast2000.logfile.356347364 - JDBCConnectionPool: Skapade dbconnection, antal i pool: 2.
2016-12-06 10:27:55,268 [localhost-startStop-6] INFO fast2000.logfile.356347364 - JDBCConnectionHandler.cre
@zoomix
zoomix / logRotate.ps1
Last active November 21, 2017 08:44
Logrotering, komprimering och borttagning
##
# Vad är detta
#
# Fast2 logroteringsscript. Kräver 7-zip. Konfigurera sökvägen till 7zips katalog här under.
$7zip_folder = "C:\Program Files\7-Zip\"
#
#
##
# Hur använder man:
liv/liv-mkz-us-2/ad/output/state {"state":"aaavailable"}
liv/liv-mkz-us-2/ad/output/state {"state":"activating"}
liv/liv-mkz-us-2/ad/output/state {"state":"active"}
liv/liv-mkz-us-2/ad/output/state {"state":"safestop"}
liv/liv-mkz-us-2/ad/output/state {"state":"aaavailable"}
liv/liv-mkz-us-2/ad/output/state {"state":"unavailable"}
liv/liv-mkz-us-2/ad/output/state {"state":"maavailable"}
liv/liv-mkz-us-2/ad/output/state {"state":"activating"}
liv/liv-mkz-us-2/ad/output/state {"state":"active"}
liv/liv-mkz-us-2/ad/output/state {"state":"safestop"}