This is my preferred way to go about it.
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
local git_email=$(git config --get user.email) | |
if [[ -z "${git_email}" ]]; then | |
git config --local user.email [email protected] | |
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
0: 1 windows (created Mon Jan 7 18:37:13 2019) [211x50] | |
10: 20 windows (created Mon Jan 7 18:37:43 2019) [211x50] (group 24) (attached) | |
11: 20 windows (created Mon Jan 7 18:37:45 2019) [211x50] (group 24) | |
14: 20 windows (created Mon Jan 7 18:37:42 2019) [211x50] (group 24) | |
16: 20 windows (created Mon Jan 7 18:37:45 2019) [211x50] (group 24) | |
17: 20 windows (created Mon Jan 7 18:37:46 2019) [211x50] (group 24) | |
18: 20 windows (created Mon Jan 7 18:37:46 2019) [211x50] (group 24) | |
19: 20 windows (created Mon Jan 7 18:37:47 2019) [211x50] (group 24) | |
20: 20 windows (created Mon Jan 7 18:37:47 2019) [211x50] (group 24) | |
22: 20 windows (created Mon Jan 7 18:37:46 2019) [211x50] (group 24) |
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
10: 20 windows (created Mon Jan 7 18:37:43 2019) [211x50] (group 24) (attached) | |
11: 20 windows (created Mon Jan 7 18:37:45 2019) [211x50] (group 24) | |
14: 20 windows (created Mon Jan 7 18:37:42 2019) [211x50] (group 24) | |
16: 20 windows (created Mon Jan 7 18:37:45 2019) [211x50] (group 24) | |
17: 20 windows (created Mon Jan 7 18:37:46 2019) [211x50] (group 24) | |
18: 20 windows (created Mon Jan 7 18:37:46 2019) [211x50] (group 24) | |
19: 20 windows (created Mon Jan 7 18:37:47 2019) [211x50] (group 24) | |
20: 20 windows (created Mon Jan 7 18:37:47 2019) [211x50] (group 24) | |
22: 20 windows (created Mon Jan 7 18:37:46 2019) [211x50] (group 24) | |
23: 20 windows (created Mon Jan 7 18:37:47 2019) [211x50] (group 24) |
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
$ tmux list-sessions -F #{session_name}: #{session_group} | |
10: 24 | |
11: 24 | |
14: 24 | |
16: 24 | |
17: 24 | |
18: 24 | |
19: 24 | |
20: 24 | |
22: 24 |
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 p in $protos; do | |
echo "\nPROTOCOL: $p\n===================" | |
HUB_PROTOCOL=$p git clone moritz/perl6-all-modules ALL-MODULES | |
rm -rf ALL-MODULES | |
──(for)── done | |
PROTOCOL: https | |
=================== | |
Cloning into 'ALL-MODULES'... | |
remote: Enumerating objects: 4803, done. |
I first discovered this issue in trying to do a git pull
on repo with the origin remote origin git://github.com/moritz/perl6-all-modules.git
using hub
(which, on my machine, is aliased to git
).
After ensuring that I didn't have hub.protocol
set in my config files, I first tried modifying the HUB_PROTOCOL
variable:
% protos=(https git ssh)
% for p in $protos; do
echo "\nPROTOCOL: $p\n==================="
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 python3 | |
from pynput import keyboard | |
def on_press(key): | |
try: | |
print('alphanumeric key {0} pressed'.format( | |
key.char)) | |
except AttributeError: | |
print('special key {0} pressed'.format( | |
key)) |
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 perl6 | |
use v6.c; | |
sub next-prime(Int $start = 1 --> Int) { | |
return ($start..*).grep({ .is-prime }).[1]; | |
} | |
sub multiple(Int $multiplicand, Int $num = 1 --> Int) { | |
return $multiplicand * $num; |