This file contains hidden or 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 i in $(ls 720^*.mp4); do | |
mv $i{,.mp4} | |
done |
This file contains hidden or 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
#~/.bash_profile | |
alias mt='multitail -CS php' | |
#~/.multitailrc | |
# See documentation | |
# keetweej.vanheusden.com/svn/multitail/trunk/multitail.conf | |
# | |
# Get this file right! If you don't multitail will just crash. | |
# No warning, no error, just won't start. And it's your fault. |
This file contains hidden or 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 | |
# | |
# description: creates a new tmux window and multiple ssh sessions based on given parameters. | |
# syntax: ssh_group [TARGET] [CONNECTIONS] | |
# example: open 4 ssh connections to host `unicorn.rainbow.pvt` | |
# ssh_group unicorn.rainbow.pvt 4 | |
# note: use from within an existing tmux session | |
if [ -z "$1" ]; then |
This file contains hidden or 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
# find all files with the executable bit set | |
find /dir -type f -executable | |
# find any files with the `.bmp` or the `.txt` file extension | |
find /home/user/Desktop -name '*.bmp' -o -name '*.txt' | |
# add the above to an array for later reference | |
list="$(find /home/user/Desktop -name '*.bmp' -o -name '*.txt')" |
This file contains hidden or 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
alias ctabs='chrome-cli list links | awk '"'"'{ print $2 }'"'"'' |
This file contains hidden or 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
# extensions | |
activate :directory_indexes | |
activate :automatic_image_sizes | |
activate :blog | |
activate :minify_html | |
activate :syntax | |
activate :syntax, line_numbers: true | |
activate :livereload | |
activate :gzip |
This file contains hidden or 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 | |
local extension=$1 | |
for f in $(pwd)/*.$extension; do | |
local hash=$(md5 -q $f) | |
echo "renaming $f to $hash.$extension" | |
mv "$f" "$hash.$extension" | |
done |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Package Repository Index</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha/css/bootstrap.min.css" type="text/css" /> | |
<style> | |
h1 { |
This file contains hidden or 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
<div class="row"> | |
<div class="col-md-8 col-md-offset-2"> | |
<p class="card-text text-center"><small class="text-muted">This index is automatically generated by nginx, and intended for troubleshooting purposes only. All packages must be installed on State of Oregon servers via the installed package manager. Remember: all installed software is audited to ensure security requirements are consistently met.</small></p> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> |
This file contains hidden or 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 | |
yum -y install gcc gcc-c++ make zlib-devel pcre-devel openssl-devel | |
version="${1:-1.8.0}" | |
config="${2:-$(pwd)/nginx.conf.default}" | |
cd /tmp | |
wget http://nginx.org/download/nginx-$version.tar.gz | |
tar -xzf nginx-$version.tar.gz |
OlderNewer