- Email: [email protected]
- Twitter: @srdan
- Website or Blog: http://blog.burtcorp.com/tagged/engineering
- Company: Burt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ _ | |
___ ___ _ __ _ __ _ _ __| |_ _ __| | ___ | |
/ __|/ _ \| '__| '__| | | | / _` | | | |/ _` |/ _ \ | |
\__ \ (_) | | | | | |_| | | (_| | |_| | (_| | __/ | |
|___/\___/|_| |_| \__, | \__,_|\__,_|\__,_|\___| | |
|___/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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). | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# encoding: utf-8 | |
require 'msgpack' | |
require 'amqp' | |
require 'burt/logging' | |
require 'thread' | |
module RichParser | |
module BatchPublisher | |
class BatchPublisher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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.. =/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
# 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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} |
OlderNewer