$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"
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
param( | |
[Int32] $password_length = 15 | |
) | |
$numbers = 0..9 | |
$lower_case = @('a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z') | |
$upper_case = $lower_case.toUpper() | |
$symbols = @('-','+','_','@','=','&','$','#','!','?') | |
$inputs = $numbers + $lower_case + $upper_case + $symbols |
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 datetime | |
now = datetime.datetime.now() | |
now_str = now.strftime('%Y-%m-%d-%H-%M') | |
year, month, day, hour, minute = now_str.split('-') |
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
// ==UserScript== | |
// @name moneyforward_scraping | |
// @namespace http://momota.github.io/ | |
// @include https://moneyforward.com/cf | |
// @version 1 | |
// @grant GM.setClipboard | |
// ==/UserScript== | |
function copyTransaction() { | |
let tsv = '', |
There are several ways to implement asynchronous processing in Powershell as below.
- background job
- Powershell workflow
- using async, await
- RunspacePool
- RunspacePoolを使って、PowerShellを非同期実行 - GMOインターネット株式会社
- Install pyenv via github and set your
*shrc
$ git clone https://github.com/yyuu/pyenv.git ~/.pyenv
$ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
$ echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.zshrc
$ source ~/.zshrc
NewerOlder