Skip to content

Instantly share code, notes, and snippets.

View TheHeurist's full-sized avatar

Carey Butler TheHeurist

View GitHub Profile
@coldfire7
coldfire7 / Install pve-edge-kernel on Proxmox.txt
Last active March 18, 2022 14:32
Install pve-edge-kernel on Proxmox (Zen 2)
### This guide is for Zen 2 ONLY!!!
### USE AT YOUR OWN RISK!!!
### NEW WAY!!!
apt install pve-kernel-5.11
apt install pve-headers-$(uname -r)
update-grub
update-initramfs -u
reboot
@rewida17
rewida17 / goupload
Last active November 11, 2024 18:40
Upload files to gofile.io via api. Required curl and jq
#!/bin/bash
#Simple test/help
if [[ "$#" == '0' ]]
then
echo -e '\nPlease Select File\n'
#Great, file selected.. Lets upload that..
elif [[ "$#" == '1' ]]
then
@whiskerz007
whiskerz007 / gist:53c6aa5d624154bacbbc54880e1e3b2a
Last active November 10, 2024 02:39
How to setup a community version of Proxmox VE 5.x-6.x
# Disable Commercial Repo
sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list
apt-get update
# Add PVE Community Repo
echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list
apt-get update
# Remove nag
echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script
@Seanmatthews
Seanmatthews / fibonacci_sphere.py
Created May 29, 2018 02:54
Create equidistant points on the surface of a sphere using Fibonacci sphere algorithm
#!/usr/bin/env python3
import argparse
import mpl_toolkits.mplot3d.axes3d as ax3d
import matplotlib.pyplot as plt
import numpy as np
def fibonacci_sphere(num_points: int):
ga = (3 - np.sqrt(5)) * np.pi # golden angle
anonymous
anonymous / Projection to matrix.json
Created January 17, 2018 04:29
Projection to matrix
{
"export_version": "0.072",
"framed_nodes": {},
"groups": {
"Projection to matrix": "{\"nodes\": {\"Matrix Apply (verts).001\": {\"height\": 100.0, \"location\": [1401.585693359375, 19.969396591186523], \"bl_idname\": \"MatrixApplyNode\", \"hide\": false, \"label\": \"\", \"params\": {}, \"width\": 140.0}, \"Matrix Apply (verts)\": {\"height\": 100.0, \"location\": [1019.91845703125, 13.145959854125977], \"bl_idname\": \"MatrixApplyNode\", \"hide\": false, \"label\": \"\", \"params\": {}, \"width\": 140.0}, \"Matrix Math\": {\"height\": 100.0, \"location\": [784.7843627929688, -76.69599914550781], \"bl_idname\": \"SvMatrixMathNode\", \"hide\": false, \"label\": \"Matrix Invert\", \"params\": {\"operation\": \"INVERT\"}, \"width\": 140.0}, \"Matrix in.002\": {\"height\": 100.0, \"location\": [613.08935546875, -94.53923034667969], \"bl_idname\": \"SvMatrixGenNodeMK2\", \"hide\": false, \"label\": \"\", \"params\": {}, \"width\": 140.0}, \"Matrix out\": {\"height\": 100.0, \"location\": [396.370208740
anonymous
anonymous / weave
Created October 17, 2017 09:51
to do later?
{
"export_version": "0.065",
"framed_nodes": {},
"groups": {},
"nodes": {
"Easing 0..1": {
"bl_idname": "SvEasingNode",
"color": [
0.6079999804496765,
0.6079999804496765,
@ijstokes
ijstokes / anaconda_latest_pkgs_no_versions.txt
Last active April 11, 2023 16:32
Anaconda Latest: packages in the latest release of Anaconda (currently 4.4), without versions. This can be used to update all (and only) the packages that are found in Anaconda to the latest available version, since (you may be surprised to learn) the command `conda update anaconda` will not do this for you (see explanation below).
alabaster
anaconda-client
anaconda-navigator
anaconda-project
appnope
appscript
asn1crypto
astroid
astropy
babel
anonymous
anonymous / NodeTree
Created June 8, 2017 14:48
to do later?
{
"export_version": "0.065",
"framed_nodes": {},
"groups": {},
"nodes": {
"Int": {
"bl_idname": "IntegerNode",
"color": [
0.6079999804496765,
0.6079999804496765,
anonymous
anonymous / Sv_ShapeKey_Hack
Created April 27, 2017 13:38
to do later?
{
"export_version": "0.064",
"framed_nodes": {},
"groups": {},
"nodes": {
"Frame info": {
"bl_idname": "SvFrameInfoNodeMK2",
"color": [
0.904932975769043,
1.0,
# First, make a backup of the cluster:
cp -a /etc/pve /root/pve_backup
# Stop cluster service:
/etc/init.d/pve-cluster stop
# Umount /etc/pve if it is mounted:
umount /etc/pve
# Stop corosync service: