Skip to content

Instantly share code, notes, and snippets.

@RPTST
RPTST / keep_alive.py
Created October 11, 2021 03:48 — forked from beaucarnes/keep_alive.py
Python Server for Discord Bot
from flask import Flask
from threading import Thread
app = Flask('')
@app.route('/')
def home():
return "Hello. I am alive!"
def run():
@RPTST
RPTST / macbuntu-transformer.sh
Created March 10, 2021 17:24 — forked from YoshiTheChinchilla/macbuntu-transformer.sh
Tranforming Ubuntu 18.04(LTS) to MacBuntu Shell Script
#!/bin/bash
# Transform Ubuntu 18.04 or Linux Mint 19 to MacBuntu
# https://www.noobslab.com/2018/08/macbuntu-1804-transformation-pack-ready.html
# If you want to change another version Ubuntu or Linux Mint?
# Search MacBuntu for your version on https://www.noobslab.com/search?q=MacBuntu
# Setup workspace
WORKSPACE=~/Desktop/macbuntu
@RPTST
RPTST / Install NVIDIA Driver and CUDA.md
Created March 2, 2021 12:48 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@RPTST
RPTST / proxmox6-debian-playbook.yml
Created March 1, 2021 00:23 — forked from islander/proxmox6-debian-playbook.yml
Convert Debian 10 to Proxmox Virtual Environment 6. Ansible playbook.
---
- name: Add proxmox gpg key
apt_key:
url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg
state: present
- name: Add proxmox repository
lineinfile:
path: /etc/apt/sources.list
line: deb http://download.proxmox.com/debian/pve buster pve-no-subscription
@RPTST
RPTST / netplan2NM.sh
Created February 28, 2021 03:22 — forked from dbkinghorn/netplan2NM.sh
Change Ubuntu 20.04 server netplan to use NetworkManager instead of networkd
#!/usr/bin/env bash
# netplan2NM.sh
# Ubuntu server 20.04 Change from netplan to NetworkManager for all interfaces
echo 'Changing netplan to NetowrkManager on all interfaces'
# backup existing yaml file
cd /etc/netplan
cp 01-netcfg.yaml 01-netcfg.yaml.BAK
@RPTST
RPTST / guide.md
Created February 17, 2021 07:51 — forked from tkon99/guide.md
Use Mosh on Windows from the Command Prompt

Hi all. After wanting true color support in Mosh (to use Brow.sh), I also wanted to integrate it more tightly with Windows. Since I reckon more people will be wanting to accomplish this, here is a guide.

  1. Install Linux Subsystem for Windows if you haven't already (https://docs.microsoft.com/en-us/windows/wsl/install-win10) (I use Ubuntu)
  2. Make sure you can execute bash from a CMD prompt.
  3. Go into the bash environment by executing bash ~ in CMD prompt
  4. Install Mosh-dev (for up-to-date version) from https://launchpad.net/~keithw/+archive/ubuntu/mosh-dev by doing sudo add-apt-repository ppa:keithw/mosh-dev then sudo apt-get update
  5. Create a new mosh.bat file on your Desktop with the following contents
@echo off