Run the following:
echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment > /dev/null
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen > /dev/null
echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null
sudo locale-gen en_US.UTF-8
| --- | |
| #### | |
| #### THIS IS OLD AND OUTDATED | |
| #### LIKE, ANSIBLE 1.0 OLD. | |
| #### | |
| #### PROBABLY HIT UP https://docs.ansible.com MY DUDES | |
| #### | |
| #### IF IT BREAKS I'M JUST SOME GUY WITH | |
| #### A DOG, OK, SORRY | |
| #### |
| This playbook has been removed as it is now very outdated. |
| from MySQLdb import connect | |
| conn = connect(user="[USER]", passwd= "[PASSWORD]") | |
| cur = conn.cursor() | |
| cur.execute("show databases;") | |
| dbs_to_update = filter( | |
| lambda db: db not in ('information_schema', 'mysql', 'performance_schema'), | |
| [dbname[0] for dbname in cur.fetchall()]) |
| #!/bin/bash | |
| # find-out-what-is-using-your-swap.sh | |
| # -- Get current swap usage for all running processes | |
| # -- | |
| # -- rev.0.3, 2012-09-03, Jan Smid - alignment and intendation, sorting | |
| # -- rev.0.2, 2012-08-09, Mikko Rantalainen - pipe the output to "sort -nk3" to get sorted output | |
| # -- rev.0.1, 2011-05-27, Erik Ljungstrom - initial version | |
| SCRIPT_NAME=`basename $0`; |
| #!/usr/bin/env python | |
| ''' | |
| Simple and functional REST server for Python (2.7) using no dependencies beyond the Python standard library. | |
| Features: | |
| * Map URI patterns using regular expressions | |
| * Map any/all the HTTP VERBS (GET, PUT, DELETE, POST) | |
| * All responses and payloads are converted to/from JSON for you |
| #!/usr/bin/env python | |
| from argparse import ArgumentParser | |
| from random import SystemRandom | |
| from string import ascii_letters, digits | |
| from subprocess import Popen as subprocess, PIPE | |
| from shlex import split as sh | |
| ap = ArgumentParser() | |
| ap.add_argument('action', help='add, delete or change password', choices=('add', 'delete', 'passwd')) |
Run the following:
echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment > /dev/null
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen > /dev/null
echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null
sudo locale-gen en_US.UTF-8
sudo apt-get update
sudo apt-get -y upgrade
echo "deb http://repo.pritunl.com/stable/apt focal main" | sudo tee /etc/apt/sources.list.d/pritunl.list
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com --recv 9DA31620334BD75D9DCB49F368818C72E52529D4
sudo apt update