Skip to content

Instantly share code, notes, and snippets.

@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).
#
auto_bootstrap: true
CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.deserializeLargeSubset (Lorg/apache/cassandra/io/util/DataInputPlus;Lorg/apache/cassandra/db/Columns;I)Lorg/apache/cassandra/db/Columns;
CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubset (Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;ILorg/apache/cassandra/io/util/DataOutputPlus;)V
CompilerOracle: dontinline org/apache/cassandra/db/Columns$Serializer.serializeLargeSubsetSize (Ljava/util/Collection;ILorg/apache/cassandra/db/Columns;I)I
CompilerOracle: dontinline org/apache/cassandra/db/commitlog/AbstractCommitLogSegmentManager.advanceAllocatingFrom (Lorg/apache/cassandra/db/commitlog/CommitLogSegment;)V
CompilerOracle: dontinline org/apache/cassandra/db/transform/BaseIterator.tryGetMoreContents ()Z
CompilerOracle: dontinline org/apache/cassandra/db/transform/StoppingTransformation.stop ()V
CompilerOracle: dontinline org/apache/cassandra/db/transform/StoppingTransformatio
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 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:
@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 / 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 / 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 / speaker.md
Created June 26, 2012 19:55 — forked from matiaskorhonen/speaker.md
Frozen Rails Talk Proposal Template (http://2012.frozenrails.eu/)
@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',
_ _
___ ___ _ __ _ __ _ _ __| |_ _ __| | ___
/ __|/ _ \| '__| '__| | | | / _` | | | |/ _` |/ _ \
\__ \ (_) | | | | | |_| | | (_| | |_| | (_| | __/
|___/\___/|_| |_| \__, | \__,_|\__,_|\__,_|\___|
|___/