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
@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

@john-clark
john-clark / setup.sh
Last active April 8, 2022 21:36
fix magick on deb 11 for nextcloud heic
#test if enabled in magick
magick -list format |grep HEIC
#test if enabled in php
php -r 'phpinfo();' | grep HEIC
#enable src by removing #
sed -Ei 's/^# deb-src /deb-src /' /etc/apt/sources.list
#update os and install dependancies
apt-get update ; apt-get upgrade
@john-clark
john-clark / shell.sh
Created February 4, 2022 15:22
oneliners linux/powershell
# rename files/dirs with space
ls *.csv | Rename-Item -NewName {$_.name -replace " ","_"}
find . -name "*\ *" -prune -type f -print0 | xargs -0 -n1 bash -c 'mv "$0" "${0/ /_}"'
#find files recurse subdirs
find . -name "*something*"
Get-ChildItem -Path [Drive]:[Path] -Recurse -Include "*something"
#history
history |grep something
@john-clark
john-clark / plugins.txt
Created January 17, 2022 02:48
Minecraft Mods
AuctionHouse-1.18-3.1.jar
BedWars-0.2.22.jar
betterjails-1.5-SNAPSHOT.jar
blocklocker-1.10.3.jar
ClickSort.jar
DiscordSRV-Build-1.24.1-SNAPSHOT-4775ab5.jar
EssentialsX-2.19.3-dev+8-a9585bb.jar
EssentialsXAntiBuild-2.19.3-dev+8-a9585bb.jar
EssentialsXChat-2.19.3-dev+8-a9585bb.jar
EssentialsXProtect-2.19.3-dev+8-a9585bb.jar
@john-clark
john-clark / ReadMe.md
Last active January 5, 2021 05:44
Setup Server to allow anyone to install OS

What is this?

This is meant for home users that need to quickly test different M$ operating systems

WDSClientUnattend.xml usage

  • install windows server
  • add windows deployment server role
  • add deployment OS
  • add administrator user for WDS (if you want)