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
sed -n -e 's/^.*printonlywhatsafterme //p' textfile.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
#!/bin/bash | |
# This program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See | |
# http://sam.zoy.org/wtfpl/COPYING for more details. | |
#Background | |
for clbg in {40..47} {100..107} 49 ; do |
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 | |
# This program is free software. It comes without any warranty, to | |
# the extent permitted by applicable law. You can redistribute it | |
# and/or modify it under the terms of the Do What The Fuck You Want | |
# To Public License, Version 2, as published by Sam Hocevar. See | |
# http://sam.zoy.org/wtfpl/COPYING for more details. | |
for fgbg in 38 48 ; do #Foreground/Background | |
for color in {0..256} ; do #Colors |
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
var arr1 = [0, 1, 2]; | |
var arr2 = [3, 4, 5]; | |
arr1 = [...arr2, ...arr1]; // arr1 is now [3, 4, 5, 0, 1, 2] | |
// source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<MaxAgeSeconds>5000</MaxAgeSeconds> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> | |
</CORSConfiguration> |
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
#### RULES FOR SPECIFIC APPLICATIONS #### | |
# from: http://www.linuxlusers.com/2012/12/24/i3-window-manager-tip-making-specific-applications-and-child-windows-open-in-floating-mode-or-with-other-custom-settings/ | |
# by APPLICATION (WM_CLASS) | |
# Note: class is typically useful for applying custom settings to | |
# to entire applications, including child windows. If this | |
# isn't want you want see the ROLE section, below. | |
# Tip: To find out what these values might be run: | |
# xprop | grep -i 'class' | |
for_window [class="File-roller"] floating enable, border normal | |
for_window [class="Speedcrunch"] floating enable, border normal |
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> | |
<ol contenteditable oninput=""> | |
<li>Press enter</li> | |
</ol> | |
<script> | |
var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver; | |
var list = document.querySelector('ol'); | |
var observer = new MutationObserver(function(mutations) { | |
mutations.forEach(function(mutation) { |
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 | |
# CSV to JSON converter using BASH | |
# original script from https://gist.github.com/dsliberty/3de707bc656cf757a0cb | |
# Usage ./csv2json.sh input.csv > output.json | |
#set -x | |
shopt -s extglob | |
input="${1:-}" |
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
// Longhand | |
if (type === 'aligator') { | |
aligatorBehavior(); | |
} | |
else if (type === 'parrot') { | |
parrotBehavior(); | |
} | |
else if (type === 'dolphin') { | |
dolphinBehavior(); | |
} |
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/sh | |
# Original: https://github.com/dial-once/docker-crons/blob/master/scripts/scp-to-s3.sh | |
# SCP script to make a remote folder sent to AWS S3! | |
# | |
# # # # # # # | |
# Env vars # | |
# # # # # # # | |
# - SCP_HOST - server hostname | |
# - SCP_PORT - server port | |
# - SCP_USER - server username |