駆け出しエンジニアハッシュタグについて前ちょっと調べたことを残しておく、これは単なる私の調べたメモです。
間違っている、押さえきれていない、見逃している可能性も沢山ありますので、注意してください
調査は
- twitter検索
- Google Trend
| <?php | |
| set_error_handler(function ($errno, $errstr, $errfile, $errline) { | |
| // 一旦、以下エラーならスキップする(量が多いので) | |
| if (in_array($errno, [ | |
| E_DEPRECATED, | |
| E_STRICT, | |
| ], true)) { | |
| return false; | |
| } |
| # PowerShell 5では動作しません、PowerShell7をインストールして管理者権限で実行してください | |
| # 例: | |
| # winget install Microsoft.PowerShell | |
| # PowerShell7を管理者権限で起動し… | |
| # .\disable_useless_services.ps1 | |
| # 管理者権限の確認 | |
| if (-not ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) { | |
| Write-Host "このスクリプトは管理者権限で実行する必要があります。" | |
| exit |
| #cloud-config for xubuntu 24.04 | |
| autoinstall: | |
| version: 1 | |
| identity: | |
| hostname: plain-xubuntu | |
| username: doe | |
| password: "$6$aW3pQdLQ05RQoG0M$sTFlndcayhG3rlB0j.kTOh0499JmqzcoQI.uGaz0xjJ/0ifSpU59.gqf4NcnXGV4e4kLA5IybQ70S2d1P301d1" | |
| ssh: | |
| install-server: true | |
| allow-pw: false |
| #!/bin/sh | |
| docker ps --filter 'label=com.docker.compose.project.config_files' --format '{{ .Labels }}' | sed 's/,/\n/g' | grep com.docker.compose.project.config_files | uniq | cut -d = -f 2 | xargs -I {} -L 1 docker-compose -f {} stop | |
| # use jq | |
| # docker ps --format '{{json .Labels}}' | xargs echo | sed "s/,/\n/g" |grep com.docker.compose.project.config_files | cut -d = -f 2|uniq | xargs -I {} -L 1 docker-compose -f {} stop | |
| <?php | |
| // dump list attendees from eventbrite event. | |
| $conf = include("config.php"); | |
| // the config php like as | |
| // <?php | |
| // | |
| // return [ | |
| // "token"=>"***", | |
| // "event_id"=>"1234567890", | |
| // ]; |
| <?php | |
| function stopwatch($str = null) | |
| { | |
| static $time = null; | |
| if (is_null($str)) { | |
| $time = microtime(true); | |
| } else { | |
| echo $str . ( microtime(true) - $time) . "sec" . PHP_EOL; | |
| $time = 0; | |
| } |
| #!/bin/sh | |
| # `convert` command is part of ImageMagick, apt install imagemagick, brew install imagemagick or .... | |
| convert -threshold 30000 src.png tmp.jpg | |
| # ^~~~ bad output? ok, try change here as you like!!! | |
| # Wow, you need negative ? ok. | |
| # convert -negate tmp.jpg tmp2.jpg | |
| # mv tmp2.jpg tmp.jpg |
| <?php | |
| // TTILE: SHA256 hash seed resolver (as a joke). | |
| // AUTHOR: uzulla(Junichi ISHIDA) <[email protected]> | |
| // LICENSE: MIT (https://opensource.org/licenses/MIT) | |
| // | |
| // ## requirement | |
| // php>=7, need GMP extention | |
| // | |
| // ## how to use | |
| // $ php sha256_seed_resolver.php fb8e20fc2e4c3f248c60c39bd652f3c1347298bb977b8b4d5903b85055620603 |
| { | |
| "require": { | |
| "amphp/amp": "^2.5", | |
| "amphp/dns": "^1.2", | |
| "amphp/http-client": "^4.5" | |
| } | |
| } |