brew uninstall --ignore-dependencies curl
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 | |
| # MrChoke | |
| # Ref: https://docs.docker.com/engine/reference/commandline/history/ | |
| # Ref: https://stackoverflow.com/questions/19104847/how-to-generate-a-dockerfile-from-an-image | |
| if [ $# -eq 0 ]; then | |
| echo "No docker image provided." | |
| echo -e "Example:\n" | |
| echo -e "$0 nginx:latest\n" | |
| exit 1 |
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
| setInterval(() => { | |
| window.fetch('https://api.prayut.click/clicks', { | |
| method: 'POST', | |
| body: JSON.stringify({ | |
| n: Math.floor(Math.random() * 10) + 990, | |
| g: 4, | |
| t: Date.now() | |
| }), | |
| headers: { | |
| 'Content-type': 'application/json; charset=UTF-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
| #!/bin/bash | |
| d=2020-12-01 | |
| t=2021-01-01 | |
| while [ "$d" != "$t" ]; do | |
| echo $d | |
| if [[ "$OSTYPE" == "linux-gnu"* ]]; then | |
| printf '=%.0s' {1..25} |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>JS Sort Example</title> | |
| </head> | |
| <body> | |
| <h1>Locale Sort Example</h1> | |
| <hr/> |
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 concurrent.futures | |
| from datetime import datetime | |
| import time | |
| import random | |
| def process(i, data): | |
| t = random.randrange(5) | |
| time.sleep(t) | |
| print("Process index:", i, ' Sleep:', t, ' Current:', datetime.now()) |
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 threading | |
| import queue | |
| import time | |
| import signal | |
| import sys | |
| from datetime import datetime | |
| class myThreading(): | |
| def __init__(self, n=3): |
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 threading | |
| import queue | |
| import time | |
| import signal | |
| import sys | |
| from datetime import datetime | |
| class myThreading(): | |
| def __init__(self, n=3): |
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
| module.exports = { | |
| productionSourceMap: false, | |
| devServer: { | |
| compress: true, | |
| proxy: { | |
| '^/api': { | |
| target: 'http://api/', | |
| pathRewrite: { '^/api': '' }, | |
| changeOrigin: true | |
| } |
NewerOlder