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 stats $(docker inspect -f '{{.Name}}' $(docker ps -q) | cut -c 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
sudo wget -qO- https://get.docker.com/ | sh |
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 netselect -v -s10 -t20 `wget -q -O- https://launchpad.net/ubuntu/+archivemirrors | grep -P -B8 "statusUP|statusSIX" | grep -o -P "(f|ht)tp.*\"" | tr '"\n' ' '` |
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
imapsync --syncinternaldates --host1 imap.gmail.com --host2 192.168.1.11 --user1 your_user@gmail.com --password1 your_pass --user2 your_new_account_user --password2 your_new_account_pass --authmech1 LOGIN --port1 993 --ssl1 --useheader="X-Gmail-Received" --useheader 'Message-Id' --noauthmd5 --allowsizemismatch --exclude 'Trash|Spam' |
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
DOMAIN="mi.dominio.com" | |
EMAIL="este@dominio.com" | |
sudo letsencrypt certonly -a webroot --webroot-path=/var/www/letsencrypt -d $DOMAIN --email $EMAIL --agree-tos |
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
find . -name "*.jpg" -print0 | xargs -0 -n1 mogrify -quality 80 -resize 50% |
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 subprocess | |
import re | |
import os | |
import sys | |
################################################################################################ | |
# ADB path | |
ADB = "/Users/darren/Library/Android/sdk/platform-tools/adb" | |
# image destination path | |
IMAGE_PATH = "/Users/darren/Desktop/images/" |
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
db.images.find({}).forEach(function(doc){ | |
var regexp = /(.*)\.[^.]+$/; | |
var thumbName = doc.name.split('.').reverse().slice(1); | |
db.images.update( | |
{number:doc.number}, | |
{ $set: | |
{"path": { | |
"url" : "assets/images/users/" + doc.username + "/pieces/" + doc.number + "/" + doc.name, | |
"thumb": "assets/images/users/" + doc.username + "/pieces/" + doc.number + "/" + thumbName + "_thumb.jpg"} | |
} |
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
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=reglamentoAlavilaP.pdf reglamentoAlavila.pdf |
NewerOlder