Open your terminal.
In the root directory run the command:
sudo nano /etc/bluetooth/main.conf
#!/usr/bin/env python3 | |
# python3 update of https://gist.github.com/dergachev/7028596 | |
# Create a basic certificate using openssl: | |
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes | |
# Or to set CN, SAN and/or create a cert signed by your own root CA: https://thegreycorner.com/pentesting_stuff/writeups/selfsignedcert.html | |
import http.server | |
import ssl | |
httpd = http.server.HTTPServer(('127.0.0.1', 443), http.server.SimpleHTTPRequestHandler) |
// ==UserScript== | |
// @name Hide YouTube comments | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Hides YouTube comments. | |
// @author gpoole | |
// @match https://www.youtube.com/* | |
// @run-at document-end | |
// @grant none | |
// ==/UserScript== |
const titleizeWord = (str) => `${str[0].toUpperCase()}${str.slice(1)}`; | |
const kebabToTitle = (str) => str.split("-").map(titleizeWord).join(" "); | |
const toBreadcrumbs = (pathname, { rootName = "Home", nameTransform = s=>s } = {}) => | |
pathname | |
.split("/") | |
.filter(Boolean) | |
.reduce( | |
(acc, curr, idx, arr) => { | |
acc.path += `/${curr}`; |
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands) | |
gpg --gen-key | |
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
# check current keys: | |
gpg --list-secret-keys --keyid-format LONG | |
# See your gpg public key: | |
gpg --armor --export YOUR_KEY_ID | |
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333) |
function isValidCPF(value: string) { | |
if (typeof value !== 'string') { | |
return false; | |
} | |
value = value.replace(/[^\d]+/g, ''); | |
if (value.length !== 11 || !!value.match(/(\d)\1{10}/)) { | |
return false; | |
} |
{ | |
"UF": [ | |
{"nome": "Acre", "sigla": "AC"}, | |
{"nome": "Alagoas", "sigla": "AL"}, | |
{"nome": "Amapá", "sigla": "AP"}, | |
{"nome": "Amazonas", "sigla": "AM"}, | |
{"nome": "Bahia", "sigla": "BA"}, | |
{"nome": "Ceará", "sigla": "CE"}, | |
{"nome": "Distrito Federal", "sigla": "DF"}, | |
{"nome": "Espírito Santo", "sigla": "ES"}, |
// ==UserScript== | |
// @name Vortek Preload | |
// @namespace vortek | |
// @description Load variables | |
// @include http://localhost/vortek_php/* | |
// @version 1 | |
// ==/UserScript== | |
// a function that loads jQuery and calls a callback function when jQuery has finished loading | |
function addJQuery(callback) { | |
var script = document.createElement("script"); |