Skip to content

Instantly share code, notes, and snippets.

@veritas06
veritas06 / calibre-web-add-books.md
Created August 6, 2024 12:56
How to add new books to Calibre-Web

Add New Books to Calibre-Web

August 06, 2024

  • I must not have had this command saved anywhere, so when I had to setup Calibre-Web again, it took me a little while to figure it out again.
  • First, need to get metadata.db if you don't already have one. I placed mine in .../Calibre-web/config/ with the rest of the generated files.
  • To actually load the books, I needed to use a shell on that container & run the calibredb command:

docker exec -it <<CONTAINER_NAME>> /bin/bash calibredb add --add /eBook_Source/ --with-library /books

@veritas06
veritas06 / Stock Android for Rabbit r1 via Windows.md
Last active July 26, 2024 16:19
Guide on installing stock Android GSI on the r1 through Windows

Android on Rabbit r1 through Windows 11

July 11, 2024

  • Trying to get this working again from my Surface Laptop with win11 21H2.

git clone https://github.com/RabbitHoleEscapeR1/r1_escape.git

winget install Git.Git

winget install Python.Python.3.12

@veritas06
veritas06 / Building rabbitude-launcher Instructions from Cat in a Nutshell.md
Created July 3, 2024 11:33
Instructions from Cat in a Nutshell on building the rabbitude-launcher.

Building the Rabbitude Launcher

Prerequisites

  • Basic knowledge of using the terminal/command line.
  • An internet connection to download dependencies and the repository.

Step 1: Install Dependencies

Android SDK

Ensure you have the Android SDK, or at least the command-line tools installed. You can download it from the official Android developer website.

@veritas06
veritas06 / Rabbit_r1-Android_Guide.md
Last active November 2, 2024 06:45
Instructions to get stock Android or LineageOS21 on the Rabbit r1 (July 2024)

Android on Rabbit r1

Created: July 01, 2024

Last Edited: August 01, 2024

NOTICE: Should go without saying, but I am not responsible for your device. Below are the notes I've used to get my own Rabbit r1 running with the r1_escape image & LineageOS. You should have a vague idea of what you're doing before jumping into any of this, & make sure you have a stock backup before changing anything.

System Backup

  • Before making any changes, make sure you backup your stock partitions with MTKClient
  • ./mtk rl --skip userdata "path/to/backup"
BEGIN MESSAGE.
W0epoFoIRapVBJq Vqg7htXkfwccqfX RiWJpeu30p0JaHW NGmJqfVzYUPuu77
pVwVlxEfxWSLTxd NK1F4rGrkTKTCKq 6Xr2MZHgg6m3T3e ajA9Q8xvZWNhqe0
Gz5N4Tto9CqnSkv uT7tRnTuLuuWnZR p0MguZyJsb0GOPV xsAn6MrRbQf6qLY
3wHcbyRlEw47YB1 Ca3tkWX7gHmDz2D wYOwC29HFxl.
END MESSAGE.
@veritas06
veritas06 / PS-GetPublicIP.ps1
Created October 26, 2018 18:48
[PS: Get External \ Public IP Address] Get the public IP through PowerShell #PowerShell
$ipinfo = Invoke-RestMethod http://ipinfo.io/json
$ipinfo.ip
$ipinfo.hostname
$ipinfo.city
$ipinfo.region
$ipinfo.country
$ipinfo.loc
$ipinfo.org
@veritas06
veritas06 / PS-Get_External_IP.ps1
Created August 7, 2018 17:54
[PS: Get External IP] PowerShell command to get a user's external IP #PowerShell #IP
# Microsoft TechNet: PowerShell One Liner: Get External/Public IP Address
# https://gallery.technet.microsoft.com/scriptcenter/Get-ExternalPublic-IP-c1b601bb
$ip = Invoke-RestMethod http://ipinfo.io/json | Select -exp ip
$ipinfo = Invoke-RestMethod http://ipinfo.io/json
$ipinfo.ip
$ipinfo.hostname
$ipinfo.city
$ipinfo.region
$ipinfo.country
@veritas06
veritas06 / blockstack_verification.txt
Created March 5, 2018 19:17
BlockStack Verification
Verifying my Blockstack ID is secured with the address 1ApGuA3dtcXWCRGoRsAdti1V7TzVZN47AT https://explorer.blockstack.org/address/1ApGuA3dtcXWCRGoRsAdti1V7TzVZN47AT
@veritas06
veritas06 / RevealPasswords.js
Created January 8, 2018 20:24
[Reveal Passwords Bookmarklet] This javascript item will reveal passwords in a browser, instead of displaying *** #JavaScript #Bookmarklet
javascript:(function()%7Bvar%20IN,F;IN=document.getElementsByTagName('input');for(var%20i=0;i%3CIN.length;i++)%7BF=IN%5Bi%5D;if(F.type.toLowerCase()=='password')%7Btry%7BF.type='text'%7Dcatch(r)%7Bvar%20n,Fa;n=document.createElement('input');Fa=F.attributes;for(var%20ii=0;ii%3CFa.length;ii++)%7Bvar%20k,knn,knv;k=Fa%5Bii%5D;knn=k.nodeName;knv=k.nodeValue;if(knn.toLowerCase()!='type')%7Bif(knn!='height'&&knn!='width'&!!knv)n%5Bknn%5D=knv%7D%7D;F.parentNode.replaceChild(n,F)%7D%7D%7D%7D)()
@veritas06
veritas06 / PS-SetOWAMailboxPolicy.ps1
Created December 12, 2017 17:31
[PS: Set OWA Mailbox Policy] Commands to set a specific OWA Policy to a user #PowerShell #Office365
# How to set a specific OWA Policy for a user:
Set-CASMailbox -Identity $User -OWAMailboxPolicy:$owaPolicyName