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
45181163 | 45191822 | 45194318 | 45203588 | 45221165 | 45227180 | 45228461 | 45233054 | 45235193 | 45253508 | 45269009 | 45279326 | 45292985 | 45316526 | 45327512 | 45341885 | 45352253 | 45353420 | 45356765 | 45367514 | 45367769 | 45386468 | 45393785 | 45419471 | 45433595 | 45435464 |
---|
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
# v1.0 | |
# November 21, 2015 | |
FROM jenkins:latest | |
MAINTAINER NickGnd "[email protected]" | |
# https://github.com/jenkinsci/docker/blob/4fa9ebc13069fa8186728622cd63702cddf11162/Dockerfile | |
ENV RUBY_VERSION 2.2.3 | |
# --handlerCountStartup = set the no of worker threads to spawn at startup. Default is 5 |
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
Sidekiq.redis {|c| c.del('stat:failed') } # Clear failed jobs |
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
# | |
# systemd unit file for CentOS 7, Ubuntu 15.04 | |
# | |
# Customize this file based on your bundler location, app directory, etc. | |
# Put this in /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu). | |
# Run: | |
# - systemctl enable sidekiq | |
# - systemctl {start,stop,restart} sidekiq | |
# | |
# This file corresponds to a single Sidekiq process. Add multiple copies |
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
for f in *.log; do > $f; done |
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
Array.new(10) { rand 300 } #=> [217, 232, 274, 141, 157, 180, 11, 193, 66, 187] | |
[].methods.grep /^re.*/ # => array of matched methods | |
# All to boolean | |
!!(4) # => true | |
!!(nil) # false | |
# Different ways to call a lambda | |
my_lambda = -> { puts 'Hello' } | |
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
# Rails | |
alias be='bundle exec' | |
alias bers='be rails server' | |
alias berk='be rake' | |
alias berc='be rails c' | |
# Utils | |
alias hgrep='history | grep' |
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/sh | |
for ape in *.ape; | |
do | |
ffmpeg -i "$ape" -ab 192k "${ape%.*}".mp3 | |
done | |
#mp3splt -c audiotrack.cue audiotrack.mp3 |
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/sh | |
for flac in *.flac; | |
do | |
wav="${flac%.*}".wav | |
# convert 2 wav | |
flac -d "$flac" | |
# convert 2 mp3 vbr max | |
lame -V 0 -h "$wav" | |
rm "$wav" |
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
# exclude docs and ri | |
echo 'gem: --no-ri --no-rdoc' >> ~/.gemrc | |
# rspec conf | |
echo '--colour --format documentation' > .rspec | |
# Git | |
echo 'test' >> .gitignore | |
echo '*.swp' >> .gitignore | |
echo '.DS_Store' >> .gitignore |
NewerOlder