This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.
Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).
| // time and time end | |
| console.time("This"); | |
| let total = 0; | |
| for (let j = 0; j < 10000; j++) { | |
| total += j | |
| } | |
| console.log("Result", total); | |
| console.timeEnd("This"); | |
| // Memory |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2004 Sam Hocevar <[email protected]> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| //Woocommerce Checkout JS events | |
| $( document.body ).trigger( 'init_checkout' ); | |
| $( document.body ).trigger( 'payment_method_selected' ); | |
| $( document.body ).trigger( 'update_checkout' ); | |
| $( document.body ).trigger( 'updated_checkout' ); | |
| $( document.body ).trigger( 'checkout_error' ); | |
| //Woocommerce cart page JS events | |
| $( document.body ).trigger( 'wc_cart_emptied' ); | |
| $( document.body ).trigger( 'update_checkout' ); |
| /** | |
| * WC_WooMercadoPago_PreferenceAbstract.php | |
| */ | |
| // Declare the taxes variable at the beginning of the file | |
| protected $taxes; | |
| // Set the value on constructor | |
| $this->taxes = 500; |
| #!/bin/bash | |
| read -sp "Enter encryption password: " PASSWORD | |
| echo "" | |
| read -sp "Confirm encryption password: " PASSWORD_CONFIRM | |
| echo "" | |
| if [[ "$PASSWORD" != "$PASSWORD_CONFIRM" ]]; then | |
| echo "ERROR: Passwords do not match!" | |
| exit 1 |
| { | |
| "meta": { | |
| "theme": "elegant" | |
| }, | |
| "basics": { | |
| "name": "Fernando Lira", | |
| "label": "Senior Software Engineer", | |
| "image": "https://avatars0.githubusercontent.com/u/1247740?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4", | |
| "summary": "I'm a Software Engineer at Mercado Livre, a big player of marketplace, with multi-language environment. I'm worked with SysAdmin and SysOp Linux too.", | |
| "website": "https://liraf.dev", |
| #!/bin/sh | |
| # see: https://github.com/RMerl/asuswrt-merlin/wiki/Custom-DDNS#google-domains | |
| # this script could go into /jffs/scripts of a router running Merlin's asus-wrt firmware | |
| # you must then choose the "Custom" option for DDNS in the router's web interface | |
| # it registers the WAN IP of the router with Google Domains' DDNS system | |
| # get your login info from yout Google Domains dashboard | |
| IP=$1 | |
| USER= | |
| PASS= |
| // Clone the repo | |
| git clone --depth=1 git://someserver/somerepo dirformynewrepo | |
| // Remove the .git directory | |
| rm -rf !$/.git |
*update: TBC, but this new might affect how easy it is to use this technique past August 2024: Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August
This gist, based in part on a gist by Brian Hartvigsen, allows you to export from Authy your TOTP tokens you have stored there.
Those can be "standard" 6-digits / 30 secs tokens, or Authy's own version, the 7-digits / 10 secs tokens.