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
#!/usr/bin/env | |
curl --url "imaps://imap.example.org/" --user "vodolaz095:******" -X "CAPABILITY" | |
# CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY PREVIEW=FUZZY PREVIEW STATUS=SIZE SAVEDATE LITERAL+ NOTIFY SPECIAL-USE ACL RIGHTS=texk |
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
Delivered-To: [email protected] | |
Received: by 2002:a05:6918:f115:b0:180:4f4c:e145 with SMTP id k21csp3127621ysm; | |
Wed, 24 May 2023 16:21:29 -0700 (PDT) | |
X-Google-Smtp-Source: ACHHUZ5etJf+kFBqMDDdJf67CeVRwzkm8IGB5xskMen0BvHtiU7mCBQeiokQHiPvr9N35POfL4q0 | |
X-Received: by 2002:adf:eac4:0:b0:2fb:ea86:36b8 with SMTP id o4-20020adfeac4000000b002fbea8636b8mr560711wrn.5.1684970489571; | |
Wed, 24 May 2023 16:21:29 -0700 (PDT) | |
ARC-Seal: i=1; a=rsa-sha256; t=1684970489; cv=none; | |
d=google.com; s=arc-20160816; | |
b=MBOR5Zhd79o9dHrv8Qakyo98tRKCMlIv0thcgDMa0s5T8SAzuIr0RWzDrxQ5pxFSLb | |
w7twKfTikln/rsOAmYTcYL0RVSwsUs0hxLU2+rSwh6IFxCm0KG2GcmmZDHx0WxTpcC+A |
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
#!/usr/bin/env bash | |
# sudo dnf install -y xdotool | |
xdotool key Caps_Lock |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
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
# Tag name ; color | |
Untagged ; #c0c0c0 | |
afsk1200 ; #c0c0c0 | |
eng ; #170bc0 | |
fm ; #c0c0c0 | |
midland24 ; #c0c0c0 | |
numeric ; #c0c0c0 | |
rds ; #00aa7f | |
rus ; #ffffff | |
unknown ; #c0c0c0 |
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
# obtain keycloack jwt token and store in in variable | |
export token=$(shell curl -s -k -X POST \ | |
-d 'grant_type=password' \ | |
-d 'username=somebody' \ | |
-d 'password=longPasswordToMakeHackersSad333222111' \ | |
-d 'scope=email%20profile%20openid' \ | |
-d 'client_id=somebody' \ | |
-d 'client_secret=""' \ | |
--connect-timeout 5 \ | |
https://keycloack.local/oidc/realms/something/protocol/openid-connect/token | jq '.["access_token"]') |
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
#!/usr/bin/env bash | |
set -e | |
service="[email protected]" | |
if (systemctl -q is-active "$service") then | |
echo "Stopping $service..." | |
sudo systemctl stop "$service" | |
else |
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
#!/usr/bin/env bash | |
auth="username:password" | |
host=imaps://imap.example.org | |
curl -u $auth $host -X 'LIST "" "*"' | |
curl -u $auth $host -X 'STATUS INBOX (MESSAGES)' |
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
#!/usr/bin/env bash | |
work_pwd=`secret-tool lookup user vodolaz095 domain example.org` | |
( | |
sleep 1 | |
echo "vodolaz095" | |
sleep 1 | |
echo "$work_pwd" | |
) | nmcli connection up work --ask |
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
package count_steps | |
/* | |
Необходимо определить userIds участников, которые прошли наибольшее количество шагов steps за все дни, не пропустив ни одного дня соревнований. | |
Пример | |
# Пример 1 | |
# ввод | |
statistics = [ |
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
#!/usr/bin/env bash | |
# This script makes local copy of all Valheim user's data | |
set -e | |
fname=`date "+%Y_%m_%d___%H_%M_%S"` | |
fpath="$HOME/Documents/backups/valheim/valheim_$fname.zip" | |
echo "Preparing to make backup into $fpath..." |
NewerOlder