- Unlock domain in AWS Route53
- Copy authentication code
- Start transfer process in Gandi
- Paste authentication code
- AWS will send a approval link to the email address registered for the domain
- If the approval link is not triggered, domain transfer will fail
- The last step is very important
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
| /etc/default/grub | |
| GRUB_CMDLINE_LINUX_DEFAULT="quiet splash usbcore.usbfs_memory_mb=1000 usbcore.autosuspend=-1" | |
| sudo update-grub |
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
| Snackbar: small notifications shows at the bottom |
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
| web_dir = os.path.join(os.path.dirname(__file__), 'public') | |
| os.chdir(web_dir) |
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 json | |
| from livereload import Server | |
| from tornado.web import RedirectHandler, StaticFileHandler | |
| settings = json.load(open('.firebaserc')) | |
| server_url = 'https://%s.web.app/__/' % settings['projects']['default'] | |
| class NoCacheHandler(StaticFileHandler): | |
| def set_extra_headers(self, path): |
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 hashlib | |
| import hmac | |
| import base64 | |
| import secrets | |
| import json | |
| import os | |
| print("Create a user account with email and the password is randomly generated.") | |
| email = input("Email: ") |
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
| # Making gif with PNG files | |
| # Generate palette | |
| ffmpeg -f image2 -i frame%04d.png -vf scale=900:-1:sws_dither=ed,palettegen palette.png | |
| # Join png files using the palette generate | |
| ffmpeg -i frame%04d.png -i palette.png -filter_complex "fps=12,scale=900:-1:flags=lanczos[x];[x][1:v]paletteuse" video.gif |
For Windows 💻 only
Because the computer is behind a corporate firewall, with additional firewall software installed, pip install always fails and gives a CERTIFICATE_VERIFY_FAILED error. It's either the access to the to the cert file is blocked or the cert is not recognized.
The best way to solve this problem I found so far is to add a pip.ini file in ~/AppData/Roaming/pip/pip.ini with the following content
[global]
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
| def abspath(filename): | |
| # looking for magic word _MEIPASS | |
| bundle_dir = getattr(sys, '_MEIPASS', os.path.abspath(os.path.dirname(__file__))) | |
| return os.path.abspath(os.path.join(bundle_dir, filename)) |
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
| from http.server import HTTPServer, BaseHTTPRequestHandler, SimpleHTTPRequestHandler | |
| import socketserver | |
| PORT = 8080 | |
| class MyHandler(SimpleHTTPRequestHandler): | |
| def __init__(self, request, client_address, server, *, directory=None): | |
| super().__init__(request, client_address, server, directory=directory) |
OlderNewer