Skip to content

Instantly share code, notes, and snippets.

View john-clark's full-sized avatar
🛸
Out there

John Clark john-clark

🛸
Out there
View GitHub Profile
function Disable-DriveIndexing {
Param($Drive)
$obj = Get-WmiObject -Class Win32_Volume -Filter "DriveLetter='$Drive'"
$indexing = $obj.IndexingEnabled
if("$indexing" -eq $True){
write-host "Disabling indexing of drive $Drive"
$obj | Set-WmiInstance -Arguments @{IndexingEnabled=$False} | Out-Null
}
}
#Use: Disable-DriveIndexing "C:"
10 REM
20 REM ELIZA/DOCTOR
30 REM CREATED BY JOSEPH WEIZENBAUM
40 REM THIS VERSION BY JEFF SHRAGER
50 REM EDITIED (SIC!) AND MODIFIED FOR MITS 8K BASIC 4.0 BY STEVEN NORTH
60 REM CREATIVE COMPUTING PO BOX 789-M MORRISTOWN NJ 07960
70 REM
80 REM -----INITIALIZATION-----
90 DIM C$(72),I$(72),K$(72),F$(72),S$(72),R$(72),P$(72),Z$(72)
100 DIM S(36),R(36),N(36)
@john-clark
john-clark / keycloak-install.md
Created November 5, 2022 15:08
keycloak on debian
@john-clark
john-clark / fuckyou-gmail.en.md
Created September 25, 2022 04:26 — forked from dxdxdt/fuckyou-gmail.en.md
What to do when Gmail marks all the mails from your server as spam

What to do when Gmail marks all the mails from your server as spam

If you're self-hosting your services and having trouble getting your emails through Gmail and infuriated by Google's non-existent support, you're not the only one. I'd like to share my experiences trying to get it sorted out.

I'm the author of the post above. You can tell how arrogant Google employees are from all the previous posts he made in the past.

List of apps in a De-Googled Android OS. Most of the apps are FOSS from F-Droid. Also some tweaks for a more secure OS.

Android OS

  • GrapheneOS
  • CalyxOS
  • LineageOS with Microg (currently using)
  • DivestOS

Android Webview

  • Bromite ♥️🌱 Webview or any Webview needs root phone for installation and recognition to the ROM. Requires AnyWebView module enabled in LSPosed to be able to change the System Webview.
@john-clark
john-clark / convert.sh
Created September 4, 2022 06:07
import esxi to proxmox
#!/bin/bash
# mount the esxi disk
# $ apt-get install vmfs-tools
# $ fdisk -l
# $ vmfs-fuse /dev/sdb1 /mnt/v
#
# convert error might need path something like this
# $ mount --bind /mnt/v /vmfs/volumes/56d37ecd-79274a3c-0d37-90b11c9a3f7f
@john-clark
john-clark / firefox-stop.md
Last active September 1, 2022 17:28
Firefox new window mayhem fix
  1. about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.

  2. In the search box: Type or paste "neww" to filter the list

  3. Adjust the preferences as follows:

    browser.link.open_newwindow - for links in Firefox tabs

@john-clark
john-clark / readme.md
Last active August 24, 2022 02:07
Debian working WIFI setup for non-free ISO install

Make WIFI work on Debian after a NET install or non-free ISO with/without a desktop environment or to install/remove additional packages.


Before rebooting to new system, after the install, dont reboot.

With graphical installer: Use the Ctrl+Alt+F2 key combination to switch to virtual terminal 2.

Without the graphical installer: Press the ESC key, Go to Execute a shell.

@john-clark
john-clark / docker-pct.sh
Last active August 15, 2022 06:13
Convert Docker to Proxmox Container
#!/bin/bash
#####################################################
# Name:
# docker-pct.sh
#
# about:
# converts docker image to proxmox lxc
# created by:
# johnrclark3@gmail.com
@john-clark
john-clark / install-config-win-srv-19-core-proxmox.md
Last active April 30, 2022 21:16
Install and Configure - Windows Server 2019 CORE no GUI on ProxMox VM

Windows Server 2019 Core on ProxMox VM - file server

Install and Configure

SCONFIG

  1. Change computer name
  2. Change Timezone
  3. Set updates to Manual

Uninstall slow down