Skip to content

Instantly share code, notes, and snippets.

zoomix

Block or report user

Report or block zoomix

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View sensors
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"}
@zoomix
zoomix / logRotate.ps1
Last active Nov 21, 2017
Logrotering, komprimering och borttagning
View logRotate.ps1
##
# 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:
View -
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 / boot2docker_network.sh
Last active Aug 29, 2015
Change your /etc/hosts based on your running containers hostnames
View boot2docker_network.sh
#!/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 / gist:3958901
Created Oct 26, 2012
Batched publisher to rabbitmq
View gist:3958901
# encoding: utf-8
require 'msgpack'
require 'amqp'
require 'burt/logging'
require 'thread'
module RichParser
module BatchPublisher
class BatchPublisher
@zoomix
zoomix / app.rb
Created Oct 24, 2012
Realtime kissmetrics
View app.rb
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)
View agnoster-light.zsh-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 / speaker.md
Created Jun 26, 2012 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal Template (http://2012.frozenrails.eu/)
View speaker.md
View burttwitter.html
<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',
View gist:2291026
_ _
___ ___ _ __ _ __ _ _ __| |_ _ __| | ___
/ __|/ _ \| '__| '__| | | | / _` | | | |/ _` |/ _ \
\__ \ (_) | | | | | |_| | | (_| | |_| | (_| | __/
|___/\___/|_| |_| \__, | \__,_|\__,_|\__,_|\___|
|___/
You can’t perform that action at this time.