I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
These notes are pretty much the same steps as the two extensions list, it's just that I had to collate them together because neither seems to list it fully in the proper order.
-
Install Synthwave ’84/Synthwave + Fluoromachine theme on VS Code (I used the Fluoromachine one)
-
Install Custom CSS and JS Loader
-
Command + Shift + P to open command palette > "Preferences: Open settings (JSON)"
#!/usr/bin/perl -w | |
# act as a KSysGuard sensor | |
# provides NVIDIA GPU info via `nvidia-settings` | |
# Usage (e.g. add gpu temperature sensor) | |
# 1. save this file, make sure it has a exec permission | |
# 2. in KSysGuard's menu, open `File` -> `Monitor Remote Machine` | |
# 3.1 in new dialog, type `Host` whatever you want | |
# 3.2 set `Connection Type` to `Custom command` |
# -*- coding: utf-8 -*- | |
from pyqtgraph.Qt import QtGui, QtCore | |
import numpy as np | |
import pyqtgraph as pg | |
from multiprocessing import Process, Manager, Queue | |
import sched, time, threading | |
# This function is responsible for displaying the data | |
# it is run in its own process to liberate main process | |
def display(name,q): |
Prerequisites : the letsencrypt CLI tool
This method allows your to generate and renew your Lets Encrypt certificates with 1 command. This is easily automatable to renew each 60 days, as advised.
You need nginx to answer on port 80 on all the domains you want a certificate for. Then you need to serve the challenge used by letsencrypt on /.well-known/acme-challenge
.
Then we invoke the letsencrypt command, telling the tool to write the challenge files in the directory we used as a root in the nginx configuration.
I redirect all HTTP requests on HTTPS, so my nginx config looks like :
server {
from django.contrib.admin import ModelAdmin | |
class MyTableAdmin(ModelAdmin): | |
... | |
paginator = LargeTablePaginator | |
... | |
#!/bin/sh | |
set -e | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
BLUE='\033[0;34m' | |
NC='\033[0m' | |
mkdir -p log | |
echo -e "${GREEN}Checking for wine...${NC}" |
[steam-in-home-streaming] | |
title=Steam-In-Home-Streaming | |
description=Steam In-Home Streaming | |
ports=27031/udp|27036/udp|27036/tcp|27037/tcp |
Ever wanted to annotate Grafana panels with when your backups are executed or whatever? Have some possibly useful scripts.
These create region annotations, so you're supposed to call the script again with the update
operation to set the end
time. If you don't, they will be zero-length, which does look a little weird in the interface.
Alternatively, you can just change isRegion
to false. Note that it really does need the full annotation JSON
to update because Grafana replaces the document entirely. If we were to only send the new end time, all other info
(description, etc.) would be deleted.
Also, you need to have jq
installed for this to work.