mongosh
rs [direct: secondary] test> db.adminCommand( { logRotate : "server" } )
cd /var/log/mongodb
sudo -u mongodb gzip [[MONGODB_LOG_FILENAME]]
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
| /** | |
| * ννμ€ > 'μ¬μ μ©μ μ©μΉ΄λ λ§€μ μΈμ‘ 곡μ νμΈ/λ³κ²½' νμ΄μ§ λ΄μ λ§€μ μΈμ‘ 곡μ λμ μ¬λΆλ₯Ό μΌκ΄ '곡μ ' λ‘ λ³κ²½νλ μ€ν¬λ¦½νΈ | |
| * μΌλ¨ λͺ¨λ κ±Έ λ€ κ³΅μ λ‘ λ³κ²½ν΄λκ³ , μ€νλΌμΈ μ¬μ©μ²(μλΉνκ±°->μλΉ,μΉ΄ν,λ±)λ§ 'λΆκ³΅μ ' λ‘ λ°κΎΈλ μμ | |
| * 'κ°λ§Ήμ λͺ ' μ΄ where_keywords μ€ νλλ©΄ '곡μ ' λ‘ λ³κ²½νκ³ μλλ©΄ κ·Έλλ‘ λ λλ€. | |
| * μλ μ€ν¬λ¦½νΈλ 'ν μ€νμ΄λ¨ΌμΈ 'λ₯Ό μΌλ¨ 곡μ λ‘ λ°κΏλκ³ κ·Έ μΈλ λΆκ³΅μ μΈκ±Έ νμΈν΄μ 곡μ λ‘ λ°κΏ | |
| */ | |
| function execute() { | |
| const where_keywords = [ | |
| 'ν μ€νμ΄λ¨ΌμΈ μ£Όμνμ¬', | |
| ]; |
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
| <<site_domain>> { | |
| root * /var/www/html | |
| php_fastcgi wordpress:9000 | |
| file_server | |
| encode gzip zstd | |
| } |
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 { Database } from '@/lib/supabase-types' | |
| import { createClient } from '@supabase/supabase-js' | |
| export const SUPABASE_NEXTJS_CACHE_TAG = "supabase" | |
| const supabaseUrl = process.env.NEXT_PUBLIC_SUPABASE_URL! | |
| const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY! | |
| export const client = createClient<Database>( | |
| supabaseUrl, |
sudo vim /etc/postgresql/12/main/pg_hba.confhost <db_name> <user_name> 0.0.0.0/0 password
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
| π Morning 22 commits βββββββββββββββββββββ 2.9% | |
| π Daytime 302 commits βββββββββββββββββββββ 40.2% | |
| π Evening 377 commits βββββββββββββββββββββ 50.1% | |
| π Night 51 commits βββββββββββββββββββββ 6.8% |
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
| window.MagicHole = new Proxy(function () { console.log('MagicHole:call', arguments); return window.MagicHole; }, { | |
| get(target, name) { | |
| console.log('MagicHole:get', name); | |
| return window.MagicHole; | |
| }, | |
| }); |
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/bash | |
| # because I am too lazy to initialize linux server anymore | |
| export DOTFILES_REPO_URL=https://github.com/susemeee/dotfiles.git | |
| sudo apt update && sudo apt install -y zsh git htop git vim build-essential && git clone $DOTFILES_REPO_URL && cd dotfiles && ./install && cd ~ | |
| # tmuxconf | |
| cd ~ && git clone https://github.com/gpakosz/.tmux.git && ln -s -f .tmux/.tmux.conf && cp .tmux/.tmux.conf.local . |
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
| $src = ".\goog" | |
| $dest = ".\goog2" | |
| $num=1 | |
| Get-ChildItem $src -Recurse -Include *.gif, *.jpg, *.jpeg, *.png, *.bmp, *.heic, *.heif, *.mov, *.mp4, *.webp, *.avi, *.tif, *.flv, *.mts | ForEach-Object { | |
| $nextName = Join-Path -Path $dest -ChildPath $_.name | |
| while(Test-Path -Path $nextName) | |
| { |
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
| 103.10.171.21 | |
| 103.120.226.54 | |
| 103.136.43.65 | |
| 103.233.83.220 | |
| 103.233.83.251 | |
| 103.86.176.107 | |
| 103.9.76.178 | |
| 104.143.43.10 | |
| 104.160.43.209 | |
| 104.244.153.22 |
NewerOlder