Skip to content

Instantly share code, notes, and snippets.

@tsgiannis
tsgiannis / tzoker_predictor.py
Last active February 21, 2022 20:49
Simple tzoker predictor
import random
from time import sleep
logo = """
_ _ _ _ _
| |_ _______ | | _____ _ __ _ __ _ __ ___ __| (_) ___| |_ ___ _ __
| __|_ / _ \| |/ / _ \ '__| | '_ \| '__/ _ \/ _` | |/ __| __/ _ \| '__|
| |_ / / (_) | < __/ | | |_) | | | __/ (_| | | (__| || (_) | |
\__/___\___/|_|\_\___|_| | .__/|_| \___|\__,_|_|\___|\__\___/|_|
|_|
@JuniYadi
JuniYadi / letsencrypt-dst-fix.sh
Created October 2, 2021 07:48
Fixed Expired SSL Let's Encrypt DST CA (Ubuntu/Debian)
#!/bin/bash
ISRG_CHECK=$( openssl x509 -noout -text -in /usr/share/ca-certificates/mozilla/ISRG_Root_X1.crt | grep Issuer | grep "CN = ISRG Root X1" )
if [[ ! $ISRG_CHECK ]]; then
mkdir -p /usr/share/ca-certificates/letsencrypt
curl -o /usr/share/ca-certificates/letsencrypt/ISRG_Root_X1.crt https://letsencrypt.org/certs/isrgrootx1.pem
sed -i 's/mozilla\/DST_Root_CA_X3.crt/!mozilla\/DST_Root_CA_X3.crt/g' /etc/ca-certificates.conf
echo "letsencrypt/ISRG_Root_X1.crt" | tee -a /etc/ca-certificates.conf
update-ca-certificates
fi
@ThomasHineXYZ
ThomasHineXYZ / KeepToMarkdown.py
Last active January 7, 2023 13:58
Google Keep "Takeout" to Markdown Converter
#!/usr/bin/env python
# Google Keep "Takeout" to Markdown Converter
# This allows you to convert your Google Keep notes that are downloaded from
# Google's "Takeout" system. This works with Nextcloud's Notes system.
from datetime import datetime
import json
import os
import shutil
@dreamwhite
dreamwhite / gsync_adapters.md
Created April 11, 2021 11:09
[Google Sync Adapters] How to sync them with microG

Mammamia Marcello what's this?

I know what you're thinking of while reading this gist, but I don't have much spare time to setup a Nextcloud server for syncing my contacts and my calendar This guide is intended for those users like me (lazy af) who wanna sync contacts and calendar with Google server, even if using microG.

Requirements

@shiveshabhishek
shiveshabhishek / keyboard-shortcuts.md
Last active October 20, 2021 06:57
Vokoscreen keyboard shortcuts in Ubuntu

VokscreenNG is a user friendly Open Source screencaster for Linux and Windows. Github: VokoscreenNG

  • Ctrl+Shift+f10 --> Start recording
  • Ctrl+Shift+f11 --> Stop recording
  • Ctrl+Shift+f12 --> Pause recording

If you pause the recording, then you'll have to first start the recording before you can stop it.

adb shell pm uninstall -k --user 0 com.google.android.apps.tachyon
adb shell pm uninstall -k --user 0 com.google.android.music
adb shell pm uninstall -k --user 0 com.google.android.videos
adb shell pm uninstall -k --user 0 com.android.browser
adb shell pm uninstall -k --user 0 com.miui.bugreport
adb shell pm uninstall -k --user 0 com.miui.compass
adb shell pm uninstall -k --user 0 com.miui.notes
adb shell pm uninstall -k --user 0 com.miui.screenrecorder
adb shell pm uninstall -k --user 0 com.miui.videoplayer
adb shell pm uninstall -k --user 0 com.miui.player
@nunq
nunq / miui_bloat.txt
Last active February 26, 2020 19:39
rm miui/android bloat/spyware
adb shell cmd package uninstall -k --user 0 com.android.chrome
adb shell cmd package uninstall -k --user 0 com.android.calendar
adb shell cmd package uninstall -k --user 0 com.miui.calculator
adb shell cmd package uninstall -k --user 0 com.android.browser
adb shell cmd package uninstall -k --user 0 com.miui.analytics
adb shell cmd package uninstall -k --user 0 com.google.android.youtube
adb shell cmd package uninstall -k --user 0 com.google.android.apps.photos
adb shell cmd package uninstall -k --user 0 com.miui.notes
adb shell cmd package uninstall -k --user 0 com.miui.player
adb shell cmd package uninstall -k --user 0 com.duokan.phone.remotecontroller
@MatthewVance
MatthewVance / restic-exclude-file-linux
Created May 18, 2019 15:04
Restic backup exclude file example for Linux.
/dev/*
/home/*/.bash_history
/home/*/.cache/chromium
/home/*/.local/share/Trash
/home/*/.mozilla/firefox/*/Cache
/home/*/Documents/Exclude/*
/lib/modules/*/volatile/.mounted
/media/*
/mnt/*
/proc/*

Ultimate Beginner's Guide to Proxmox GPU Passthrough

mirror of The Ultimate Beginner's Guide to GPU Passthrough (Proxmox, Windows 10) by /u/cjalas

>Welcome all, to the first installment of my Idiot Friendly tutorial series! I'll be guiding you through the process of configuring GPU Passthrough for your Proxmox Virtual Machine Guests. This guide is aimed at beginners to virtualization, particularly for Proxmox users. It is intended as an overall guide for passing through a GPU (or multiple GPUs) to your Virtual Machine(s). It is not intended as an all-exhaustive how-to guide; however, I will do my best to provide you with all the necessary resources and sources for the passthrough process, from start to finish. If something doesn't work properly, please check /r/Proxmox, /r/Homelab, /r/VFIO, or