Installing mysql2 gem errors on Apple silicon M1, M2 or M3 Mac running macOS Sonoma.
Make sure mysql-client, openssl and zstd are installed on Mac via Homebrew.
Replace
mysql-clientwith whichever mysql package you are using
| import javax.crypto.Cipher; | |
| import javax.crypto.spec.IvParameterSpec; | |
| import javax.crypto.spec.SecretKeySpec; | |
| import java.util.Base64; | |
| public class Encryptor { | |
| public static String encrypt(String key, String initVector, String value) { | |
| try { | |
| Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5PADDING"); | |
| IvParameterSpec iv = new IvParameterSpec(initVector.getBytes("UTF-8")); |
| Note: I don't know where does this thread belongs. If I'm on the incorrect section, move it to the correct one. | |
| Many people are literally just selling this method and I feel like sharing this out so that you don't have to pay because the seller just don't do a minute of work to get you the drive. | |
| So moving straight towards the method: | |
| Step I: | |
| Go to this link: https://td.fastio.me/ (mirrors to be left at the last) | |
| Step II: | |
| Type your desired drive's name at the first field and your Gmail on the bottom field. |
| # The Caddyfile is an easy way to configure your Caddy web server. | |
| # | |
| # Unless the file starts with a global options block, the first | |
| # uncommented line is always the address of your site. | |
| # | |
| # To use your own domain name (with automatic HTTPS), first make | |
| # sure your domain's A/AAAA DNS records are properly pointed to | |
| # this machine's public IP, then replace ":80" below with your | |
| # domain name. |
A simple JavaScript script that adds a floating "Archive" button to specific news websites, allowing quick archiving via archive.md.
Please refer to this blogpost to get an overview.
Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.