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
PROMPT='%10~ %# ' | |
alias gitline='git log -n 1 --format=%s | xargs echo refs/heads/mykola | tr " :." _ | xargs git check-ref-format --normalize | xargs -I {} git push -f origin -o merge_request.create HEAD:{} || echo something went wrong' | |
alias drm='docker rm -f $(docker ps -aq)' | |
alias dcup='docker-compose up' | |
bindkey "^[^[[C" forward-word | |
bindkey "^[^[[D" backward-word | |
bindkey "^[[H" beginning-of-line |
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
private val maxInstancesAllowed = System.getProperty("payment-testing.spring.max-instances-allowed", "-1").toInt() | |
private val instancesRegistered = AtomicInteger(0) | |
// + class name in src/test/resources/META-INF/spring.factories | |
// e.g. org.springframework.boot.SpringApplicationRunListener=x.x.x.SpringApplicationTracker | |
class SpringApplicationTracker( | |
val application: SpringApplication, | |
val args: Array<String>, | |
) : SpringApplicationRunListener { |
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 gitline='git log -n 1 --format=''%s'' | xargs echo refs/heads/mykola | tr " :" _ | xargs git check-ref-format --normalize | xargs -I {} git push origin HEAD:{} || echo something went wrong' | |
gitline() { | |
git log -n 1 --format='%s' | tr " :.'" _ | xargs -I {} echo refs/heads/mykola_{} | xargs git check-ref-format --normalize | xargs -I {} git push origin HEAD:{} || echo something went wrong | |
} |
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
unit = 0.1 # as in time unit | |
note = 80 | |
message = 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui.' | |
define :play_morse do |str| | |
words = string_to_words str | |
for word in words do | |
letters = wor |
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
G4 F4 | |
I thought that I heard you laughing, | |
Dm2 G2 Am/A2 Am/B2 Am/C2 Am/D | |
I thought that I heard you sing. | |
Am/E F4 Dm2 G2 Am4 G2 | |
I think I thought I saw you try. |
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
# as per https://sonic-pi.net/tutorial.html#section-A-2 | |
if true | |
with_fx :reverb, room: 1 do | |
live_loop :time do | |
synth :prophet, release: 8, note: :e1, cutoff: 90, amp: 3 | |
sleep 8 | |
end | |
end | |
end |
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 -eux | |
CONTEXT=pro | |
APP=purple | |
exec 3< <( | |
pgid=$! | |
echo "kill $pgid" | |
kubectl --context=${CONTEXT} --namespace=${APP} port-forward ${APP}-${APP}-db-0 :5432 | |
) |
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
select | |
nspname || '.' || relname as "relation", | |
pg_size_pretty( | |
pg_relation_size(C.oid) | |
) as "size", | |
to_char(round( pg_relation_size(C.oid) /( | |
select | |
sum( pg_relation_size( C.oid ) ) as "totalsize" | |
from | |
pg_class C |
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 -eux | |
shopt -s nullglob | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" | |
while true; do | |
files=( x* ) | |
if (( ${#files[@]} )); then | |
echo file found: $files |
NewerOlder