As configured in my dotfiles.
start new:
tmux
start new with session name:
As configured in my dotfiles.
start new:
tmux
start new with session name:
(* | |
@author: Slipp Douglas Thompson | |
@purpose: Pauses Spotify after the current song finishes playing. | |
@todo: Optimize so it's more efficient. | |
@usage: Drop a compiled script (a .scpt file, converted with AppleScript Editor if this is a .applescript file) into ~/Library/Scripts/Applications/Spotify. | |
Ensure than “Show Script menu in menu bar” is enabled (which can be found in the AppleScript Editor preferences). | |
When playing a song in Spotify and wishing to stop the music when the track finished, choose “When Song Finishes, Pause” from the script menu, and then walk, walk away. | |
*) | |
tell application "Spotify" | |
log "“When Song Finishes, Pause”: player state is " & (player state) |
Dashing widget to display a Jenkins build status and build progress
The widget is based on the meter-widget which is default in the Dashing installation
The widget can also see the progress of a "pre-build", i.e if you have a job triggering the actual build you want to define, you can configure this job in the jenkins_build.rb as a prebuild.
For more information, please see Coding Like a tosser
variable "object_list" { | |
type = "map" | |
default = { | |
content1 = "this is example content 1", | |
content2 = "this is example content 2" | |
} | |
} | |
resource "local_file" "local_files" { | |
count = "${length(var.object_list)}" # perform this action based on the amount of items in the map |
# Based on gist https://gist.github.com/staaldraad/4c4c80800ce15b6bef1c1186eaa8da9f | |
# - added TCP states | |
awk 'BEGIN{states["01"]="TCP_ESTABLISHED" | |
states["02"]="TCP_SYN_SENT" | |
states["03"]="TCP_SYN_RECV" | |
states["04"]="TCP_FIN_WAIT1" | |
states["05"]="TCP_FIN_WAIT2" | |
states["06"]="TCP_TIME_WAIT" | |
states["07"]="TCP_CLOSE" |