- Clean pkg cache
- Remove unused packages (orphans)
- Clean cache in /home
- remove old config files
- Find and Remove
- duplicates
- empty files
- empty directories
- broken symlinks
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
| const io = require('socket.io-client'); | |
| const socket = io('http://localhost:3000', { | |
| transportOptions: { | |
| polling: { | |
| extraHeaders: { | |
| 'Authorization': 'Bearer abc', | |
| }, | |
| }, | |
| }, |
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
| [opcache] | |
| ; Determines if Zend OPCache is enabled | |
| opcache.enable=1 | |
| ; Determines if Zend OPCache is enabled for the CLI version of PHP | |
| ;opcache.enable_cli=1 | |
| ; The OPcache shared memory storage size. | |
| opcache.memory_consumption=512 |
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
| """ | |
| This is an example on how to reload Flask app in runtime | |
| It can be useful for the use case where you want to enable/disable blueprints/routes dynamically. | |
| To run the app: | |
| > pip install flask & python app.py | |
| Then test it via 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
| from __future__ import with_statement | |
| from alembic import context | |
| from sqlalchemy import engine_from_config, pool | |
| from logging.config import fileConfig | |
| from models import Base | |
| config = context.config | |
| fileConfig(config.config_file_name) |
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
| #!/usr/bin/env python | |
| import ctypes | |
| FAKE = 0 #NÃO DETECTAR DEDO FALSO | |
| #FAKE = 1; #DETECTAR DEDO FALSO | |
| try: | |
| sdk = ctypes.cdll.LoadLibrary('/usr/lib/libcis_sdk.so') | |
| except: | |
| print("Falha ao importar bibliotecas.") |
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
| # best practice: linux | |
| nano ~/.pgpass | |
| *:5432:*:username:password | |
| chmod 0600 ~/.pgpass | |
| # best practice: windows | |
| edit %APPDATA%\postgresql\pgpass.conf | |
| *:5432:*:username:password | |
| # linux |
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 __future__ import with_statement | |
| from alembic import context | |
| from sqlalchemy import engine_from_config, pool, MetaData, Table, ForeignKeyConstraint | |
| from logging.config import fileConfig | |
| # this is the Alembic Config object, which provides | |
| # access to the values within the .ini file in use. | |
| config = context.config | |
| # Interpret the config file for Python logging. |