tmux new [-s name] [cmd]
(:new
) - new session
tmux ls
(:ls
) - list sessionstmux switch [-t name]
(:switch
) - switches to an existing session
# HELP jvm_gc_max_data_size_bytes Max size of long-lived heap memory pool | |
# TYPE jvm_gc_max_data_size_bytes gauge | |
jvm_gc_max_data_size_bytes 8.589934592E9 | |
# HELP executor_pool_size_threads The current number of threads in the pool | |
# TYPE executor_pool_size_threads gauge | |
executor_pool_size_threads{name="applicationTaskExecutor",} 0.0 | |
# HELP hikaricp_connections_creation_seconds_max Connection creation time | |
# TYPE hikaricp_connections_creation_seconds_max gauge | |
hikaricp_connections_creation_seconds_max{pool="HikariPool-1",} 0.0 | |
# HELP hikaricp_connections_creation_seconds Connection creation time |
#!/bin/bash | |
magick_version=6.8.9-10 | |
magick_install_dir="$HOME/image_magick" | |
magick_download_url="http://imagemagick.org/download/releases/ImageMagick-$magick_version.tar.gz" | |
rm -rf $magick_install_dir/* | |
mkdir -p $magick_install_dir && cd $magick_install_dir | |
curl -L $magick_download_url | tar -zxf- | |
cd ImageMagick* |
import UIKit | |
import Foundation | |
import XCPlayground | |
XCPSetExecutionShouldContinueIndefinitely() | |
class RemoteAPI { | |
func getData(completionHandler: ((NSArray!, NSError!) -> Void)!) -> Void { | |
let url: NSURL = NSURL(string: "http://itunes.apple.com/search?term=Turistforeningen&media=software") | |
let ses = NSURLSession.sharedSession() |
curl -X POST \ | |
-H "X-Parse-Application-Id: $APP_ID" \ | |
-H "X-Parse-REST-API-Key: $KEY" \ | |
-H "Content-Type: application/json" \ | |
-d '{"score": 1337, "playerName": "Sean Plott", "cheatMode": false }' \ | |
https://api.parse.com/1/classes/GameScore |
# http://www.midwesternmac.com/blogs/jeff-geerling/resizing-virtualbox-disk-image | |
# Clone the .vmdk image to a .vdi. | |
vboxmanage clonehd "virtualdisk.vmdk" "new-virtualdisk.vdi" --format vdi | |
# Resize the new .vdi image (30720 == 30 GB). | |
vboxmanage modifyhd "new-virtualdisk.vdi" --resize 30720 | |
# Optional; switch back to a .vmdk. | |
VBoxManage clonehd "cloned.vdi" "resized.vmdk" --format vmdk |
### Keybase proof | |
I hereby claim: | |
* I am starefossen on github. | |
* I am starefossen (https://keybase.io/starefossen) on keybase. | |
* I have a public key ASBrgxagN9yHjE6uZ3W6fiKcRMNTRXsgyrwvG7rf9Y32DAo | |
To claim this, I am signing this object: |
"use strict" | |
http = require 'http' | |
MongoClient = require('mongodb').MongoClient | |
stringify = require('JSONStream').stringify | |
db = null | |
server = http.createServer (req, res) -> | |
cursor = db.collection('turer').find() |