[11:14:07] $ cat a.txt
a
b
[matheusmmo@bbrandsti-07:~]
[11:14:47] $ cat b.txt
b
c
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 * as cheerio from 'cheerio'; | |
// Dynamic - 5 minutes | |
const serverMaxAgeDynamic = 60 * 5; | |
// Dynamic - 1 second (do not cache on browser) | |
const browserMaxAgeDynamic = 0; | |
export default { | |
async fetch(request: Request, env: any, ctx: ExecutionContext) { |
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
# to apply trim, add: sed 's/^ *//;s/ *$//' | |
comm -23 <(sort file1) <(sort file2) > file_with_diff |
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
# System | |
sudo launchctl list | |
sudo launchctl disable system/SERVICE_NAME | |
# User | |
id -u MY_USER | |
launchctl list | |
sudo launchctl disable user/MY_USER_ID/SERVICE_NAME |
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
docker system prune -a |
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
sudo ifconfig lo:0 128.0.0.1 up |
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
sudo ifconfig lo:0 128.0.0.1 up |
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
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
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
sudo -u elasticsearch /usr/share/elasticsearch/bin/elasticsearch -d -p /var/run/elasticsearch/elasticsearch.pid -Epath.conf=/etc/elasticsearch/ -Epath.logs=/var/log/elasticsearch -Epath.data=/var/lib/elasticsearch |
NewerOlder