This file contains 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
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2104", TAG+="uaccess" |
This file contains 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 numpy as np | |
def do_cma(s): | |
return s.expanding().mean() | |
def do_sma(s, N=15): | |
return s.rolling(N, min_periods=1).mean() | |
def do_ema(s, N=15): |
This file contains 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 avg_batch(v): | |
return sum(v)/len(v) | |
def avg_recursive(a, v, n): | |
return n/(n + 1)*a + v/(n+1) | |
if __name__ == '__main__': | |
ages = [10, 12, 26, 30, 40, 33, 21, 34, 54, 3] | |
print(f'Average using Batch Expression: {avg_batch(ages)}') |
This file contains 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
$ lsb_release -a | |
LSB Version: 1.4 | |
Distributor ID: Arch | |
Description: Arch Linux | |
Release: rolling | |
Codename: n/a | |
$ ssh -V | |
OpenSSH_8.4p1, OpenSSL 1.1.1h 22 Sep 2020 |
This file contains 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
ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="ef6e4eba-7ad9-4a4c-be75-3b85ba2d14a3", ENV{UDISKS_IGNORE}="1", RUN+="/usr/bin/systemctl start usb.mount@$env{ID_FS_UUID}.service" | |
ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_UUID}=="ef6e4eba-7ad9-4a4c-be75-3b85ba2d14a3", ENV{UDISKS_IGNORE}="1", RUN+="/usr/bin/systemctl stop usb.mount@$env{ID_FS_UUID}.service" |
This file contains 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
Host 1.2.3.4 autossh | |
Hostname 1.2.3.4 | |
User autossh | |
SendEnv LANG LC_* | |
IdentityFile ~/.ssh/autossh | |
ConnectTimeout 0 | |
HashKnownHosts yes | |
LocalForward 2222 localhost:22 | |
ServerAliveInterval 30 | |
ServerAliveCountMax 3 |
This file contains 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
<link rel="stylesheet" href="https://golangkorea.github.io/js/jqcloud/jqcloud.min.css"> |
This file contains 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=insync on start up | |
After=network.target | |
[Service] | |
Type=forking | |
ExecStart=/usr/bin/insync-headless start | |
[Install] | |
WantedBy=default.target |
This file contains 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
{{ partial "utterances" . }} |
This file contains 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
[params.utterances] | |
repo = "<username>/<username>.github.io" | |
# term = "pathname" | |
# theme = "github-light" | |
# crossorigin = "anonymous" |
NewerOlder