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
# Bash | |
alias bo="nano ~/.bashrc" | |
alias bu="source ~/.bashrc" | |
alias ba="nano ~/.bash_aliases" | |
# Kubectl | |
kupods() { kubectl get pods --namespace=$1; } | |
kubash() { kubectl exec $2 --namespace=$1 -it bash; } | |
kulogs() { kubectl logs --follow $2 --namespace=$1; } | |
kudesc() { kubectl describe pods --namespace=$1 $2; } |
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
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "ctrl+alt+left", | |
"command": "-workbench.action.moveEditorToPreviousGroup" | |
}, | |
{ | |
"key": "ctrl+alt+right", | |
"command": "-workbench.action.moveEditorToNextGroup" | |
}, |
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
1. Install Redis | |
2. Start and Enable: | |
- sudo systemctl start redis-server | |
- sudo systemctl enable redis-server | |
3. Update Config: | |
- bind 0.0.0.0 | |
- protected-mode no | |
- maxmemory 100mb | |
- maxmemory-policy allkeys-lfu | |
4. Set ACL and disable default user in Config: |
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 { ImageResponse } from 'workers-og' | |
export default { | |
async fetch(request) { | |
let param = request.url.split('/').pop() || '@_irfanfadilah' | |
if (param.length > 50) { | |
param = 'Text Too Long!' | |
} |
OlderNewer