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
| general { | |
| output_format = "i3bar" | |
| colors = true | |
| interval = 5 | |
| } | |
| order += "disk /" | |
| disk "/" { | |
| format = "%free" | |
| } |
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 | |
| # NON Distributed Denial of Service xD LOL | |
| while true; do | |
| for i in {1..1000} | |
| do | |
| curl -X GET "https://www.google.es" & | |
| #echo "$i" |
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
| .renovate-template: | |
| variables: | |
| RENOVATE_GIT_AUTHOR: "${GITLAB_USER_NAME} <${GITLAB_USER_EMAIL}>" | |
| RENOVATE_DRY_RUN: "false" | |
| RENOVATE_LOG_LEVEL: "info" | |
| image: | |
| name: node:12 | |
| entrypoint: [""] | |
| only: | |
| - schedules |
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 | |
| cat file | jq -sR . |
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 | |
| # Please give all credit to this stackoverflow post | |
| # https://stackoverflow.com/questions/42950501/delete-node-modules-folder-recursively-from-a-specified-path-using-command-line | |
| find . -name 'node_modules' -type d -prune -exec rm -rf '{}' + |
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 | |
| aws rds create-db-snapshot --db-instance-identifier db --db-snapshot-identifier snapshot | |
| aws rds wait db-snapshot-completed --db-snapshot-identifier snapshot | |
| aws rds delete-db-snapshot --db-snapshot-identifier snapshot |
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
| # copied from https://stackoverflow.com/questions/73600496/heroku-node-js-app-allocation-failure-scavenge-might-not-succeed-with-memory-s | |
| const v8 = require('v8'); | |
| // added the code below to a route that caused a memory leak | |
| const heapStats = v8.getHeapStatistics(); | |
| const heapStatsMB = heapStats; | |
| for (const key in heapStatsMB) { | |
| heapStatsMB[key] = `${(((heapStatsMB[key] / 1024 / 1024) * 100) / 100).toFixed(2)} MB`; | |
| } | |
| console.table(heapStatsMB); |
OlderNewer