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
/src/rsync-3.2.7 # history | |
0 apk add bash vim acl liblz4-dev libacl1-dev attr libattr1-dev libxxhash-dev libzstd-dev libssl-dev | |
1 apk | |
2 apk search liblz4 | |
3 apk add bash vim acl lz4-dev acl1-dev attr attr1-dev xxhash-dev zstd-dev ssl-dev | |
4 apk add bash vim acl lz4-dev acl-dev attr attr1-dev xxhash-dev zstd-dev ssl-dev | |
5 apk add bash vim acl lz4-dev acl-dev attr attr-dev xxhash-dev zstd-dev ssl-dev | |
6 apk search ssl-dev | |
7 apk add bash vim acl lz4-dev acl-dev attr attr-dev xxhash-dev zstd-dev libressl-dev | |
8 apk add wget gcc g++ gawk autoconf automake python3-cmarkgfm |
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
>$ echo "$GITLAB_TOKEN" | |
asdf | |
>$ export GITLAB_TOKEN | |
>$ echo "$GITLAB_TOKEN" | |
asdf | |
>$ /usr/bin/env | /usr/bin/grep GIT | |
>$ bash --version | |
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) | |
Copyright (C) 2020 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |
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
def walk(prefix : Array(String)) | |
@item = @j if prefix.size == 0 | |
if @item.nil? | |
puts "walk: #{prefix.join(".")} is Nil THIS SHOULD NOT HAPPEN" | |
return | |
end | |
case @item.class | |
when Hash | |
@item.as_h.keys.each do |k| | |
puts "walk: #{prefix + [k]} ia a Hash" |
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
Why does this say "[Style/RedundantBegin] Redundant `begin` block detected" (from vim Syntastic) |
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 | |
# i3-get-window-criteria - Get criteria for use with i3 config commands | |
# To use, run this script, then click on a window. | |
# Output is in the format: [<name>=<value> <name>=<value> ...] | |
# Known problem: when WM_NAME is used as fallback for the 'title="<string>"' criterion, | |
# quotes in "<string>" are not escaped properly. This is a problem with the output of `xprop`, | |
# reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=66807 |
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
git clone https://github.com/nim-lang/Nim.git | |
cd Nim | |
./build_all.sh | |
nim c koch.nim | |
koch boot -d:release | |
PATH=~/git/Nim/bin:$PATH | |
cd .. | |
git clone https://github.com/tsoding/boomer | |
cd boomer | |
nimble build |
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
--- | |
- name: Install Elasticsearch | |
hosts: all | |
tasks: | |
- name: add rancher user to consume cattle db | |
become: true | |
become_user: root | |
community.mysql.mysql_user: | |
name: rancher |
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
--- | |
masters: | |
hosts: | |
es-master-{{ cluster_name }}-00{1..{{ master.count }}}: {} | |
hot-nodes: | |
hosts: | |
es-hot-{{ cluster_name }}-00{1..{{ hot.count }}}: {} | |
warm-nodes: | |
hosts: | |
es-warm-{{ cluster_name }}-00{1..{{ warm.count }}}: {} |
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
irb(main):028:0> cp.last.class | |
=> Time | |
irb(main):029:0> cp.last | |
=> 2022-06-21 15:30:00 -0500 | |
irb(main):030:0> c.next_run.class | |
=> NilClass | |
irb(main):031:0> c.next_run=cp.last | |
=> 2022-06-21 15:30:00 -0500 | |
irb(main):032:0> c.next_run.class | |
=> ActiveSupport::TimeWithZone |
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 -x | |
launch_and_mark(){ | |
local window_role=$1 | |
local startup_sleep=$2 | |
shift 2 | |
launch "$@" | |
id= |
NewerOlder