lsblk
cryptsetup luksOpen /dev/sde³ vg
vgscan
vgchange -ay
vgscan
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
| #include <stdio.h> | |
| #include <assert.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| typedef struct { | |
| char *first; | |
| char *last; | |
| int age; | |
| } info_t; |
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 | |
| set -e | |
| export SCRIPTNAME="$0" | |
| while [ $# -gt 0 ]; do | |
| case "$1" in | |
| -s|--start) | |
| if [ "$(ssh-add -l 2>/dev/null | wc -l)" -lt 1 ]; then | |
| echo "fatal: ssh-agent must be available with identities loaded" | |
| exit 1 | |
| fi |
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
| # _ | |
| # (_)____ _ _ __ ____ _ | |
| # / // __ `/| | / // __ `/ | |
| # / // /_/ / | |/ // /_/ / | |
| # __/ / \__,_/ |___/ \__,_/ | |
| # /___/ | |
| # __ ____ _ __ | |
| # ____ ___ ____ _ / /__ ___ / __/(_)/ /___ | |
| # / __ `__ \ / __ `// //_// _ \ / /_ / // // _ \ | |
| # / / / / / // /_/ // ,< / __// __// // // __/ |
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
| import java.util.ArrayList; | |
| import java.util.List; | |
| /* | |
| * __ __ __ ____ ______ _ __ | |
| * / / / /__ ____ _____/ /____/ __ \____/_ __/___ _(_) /____ | |
| * / /_/ / _ \/ __ `/ __ / ___/ / / / ___// / / __ `/ / / ___/ | |
| * / __ / __/ /_/ / /_/ (__ ) /_/ / / / / / /_/ / / (__ ) | |
| * /_/ /_/\___/\__,_/\__,_/____/\____/_/ /_/ \__,_/_/_/____/ | |
| * https://github.com/guyhughes | |
| */ |
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
| { | |
| "ip": "curl ipinfo.io; echo '\\n'; curl icanhazip.com", | |
| } |
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 file in *.json; do | |
| if $(cat $file | json -n); then | |
| printf "\r[OK] $file" | |
| else | |
| echo "[ERROR] $file FAILED" | |
| fi | |
| 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
| { | |
| "query":{ | |
| "terms": { | |
| "name": ["burger"] | |
| } | |
| } | |
| } |
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
| # _ | |
| # (_)____ _ _ __ ____ _ | |
| # / // __ `/| | / // __ `/ | |
| # / // /_/ / | |/ // /_/ / | |
| # __/ / \__,_/ |___/ \__,_/ | |
| # /___/ | |
| # __ ____ _ __ | |
| # ____ ___ ____ _ / /__ ___ / __/(_)/ /___ | |
| # / __ `__ \ / __ `// //_// _ \ / /_ / // // _ \ | |
| # / / / / / // /_/ // ,< / __// __// // // __/ |
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] | |
| Description=Powertop Auto-Tune | |
| [Service] | |
| Type=oneshot | |
| ExecStart=/usr/sbin/powertop --auto-tune | |
| [Install] | |
| WantedBy=multi-user.target |