FFMpeg must be installed.
Instructions:
- On Mac: Use Homebrew
brew install ffmpeg - http://ffmpeg.org/download.html
| Sometimes, text that can be selected in pdf files (text overlay) does't match exactly the text as it is shown in the canvas layer. As a result, if one wants to select some text (for copy-pasting, for example) it is difficult to say if one has selected the right characters. | |
| Here I show one way to see the text selected using pdf.js, the pdf reader that is used, for example, in Firefox. | |
| 1) Find the path to your profile directory: In Firefox, press Tab to see the menu bar, go to Help > Troubleshooting information. Click "Open Directory" next to "Profile directory". | |
| 2) Create a folder named "chrome" in your profile folder and a userContent.css file inside. | |
| 3) Write this in the userContent.css file that you created, and save it: | |
| @-moz-document regexp('.*\.(p|P)(d|D)(f|F)') { | |
| .textLayer ::selection { | |
| color: white; |
FFMpeg must be installed.
Instructions:
brew install ffmpeg| #!/bin/bash | |
| # Inspired on https://david-kerwick.github.io/2017-01-04-combining-zsh-history-files/ | |
| set -e | |
| history1=$1 | |
| history2=$2 | |
| merged=$3 | |
| echo "Merging history files: $history1 + $history2" | |
| test ! -f $history1 && echo "File $history1 not found" && exit 1 |
| /* | |
| <https://stackoverflow.com/questions/40296831/is-it-possible-to-force-a-copy-of-a-protected-google-doc> | |
| NOTE - 2021-05-24 | |
| ----------------- | |
| The script below isn't the fastest way to copy-and-paste from a protected | |
| Google Doc. Before trying it, I'd suggest following MikoFrosty's advice from | |
| the comments: |
| # ⚠️ USE AT YOUR OWN RISK | |
| # first: pip install pysqlite3-binary | |
| # then in settings.py: | |
| # these three lines swap the stdlib sqlite3 lib with the pysqlite3 package | |
| __import__('pysqlite3') | |
| import sys | |
| sys.modules['sqlite3'] = sys.modules.pop('pysqlite3') | |
| DATABASES = { |
Following this guide: https://wiki.mobileread.com/wiki/Kindle4NTHacking#SSH.
Using Kindle 4.1 and macOS 10.14.
data.tar.gz, ENABLE_DIAGS, and diagnostic_logs to the Kindle folder.| # Imports | |
| from scapy.all import * | |
| from pprint import pprint | |
| import operator | |
| # Parameters | |
| interface = "eth0" # Interface you want to use | |
| dns_source = "local-ip" # IP of that interface | |
| dns_destination = ["ip1","ip2","ip3"] # List of DNS Server IPs |
| from __future__ import print_function, division | |
| import numpy as np | |
| import pandas as pd | |
| import matplotlib.pyplot as plt | |
| # Keras modules | |
| from tensorflow.keras.layers import Input, Dense, Reshape, Flatten, Dropout, BatchNormalization, Activation, ZeroPadding2D, LeakyReLU, UpSampling2D, Conv2D | |
| from tensorflow.keras.models import Sequential, Model | |
| from tensorflow.keras.optimizers import Adam |
| import struct | |
| import socket | |
| import base64 | |
| import json | |
| import sys | |
| class Server: | |
| def __init__(self, data): | |
| self.description = data.get('description') |