# Nginx
sudo apt install nginx
# PHP
sudo apt install php7.3 php7.3-fpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs, ... }: | |
let | |
update-qbittorrent-port = pkgs.stdenv.mkDerivation rec { | |
name = "update-qbittorrent-port"; | |
src = pkgs.fetchurl { | |
url = "https://gist.githubusercontent.com/aksiksi/34178962254fb73a8920d8b5e6650f98/raw/7917342ff0088fb58ed829571f7bc3f65108fc31/update_qbit_port.sh"; | |
hash = "sha256-35eodSANzs/ycDPeoy70NhFsgnDOxmJTka/WJ6j6gKY="; | |
}; | |
dontUnpack = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name IMDB Score Hider | |
// @author Assil Ksiksi | |
// @namespace http://assil.me | |
// @version 0.4 | |
// @match https://www.imdb.com/* | |
// @match https://www.imdb.com/ | |
// @description Hides all TV and movie scores from IMDB. | |
// @copyright 2012+, Assil Ksiksi | |
// ==/UserScript== |
- Install rclone:
curl https://rclone.org/install.sh | sudo bash
- Setup a new Backblaze B2 target: https://rclone.org/b2/
Install a new crontab to run this script daily:
- Install Nix:
sh <(curl -L https://nixos.org/nix/install) --no-daemon
nix-build default.nix
- Download UTM: https://getutm.app
- Download a Ubuntu Server image: https://ubuntu.com/download/server/arm
- Under the
System
tab, selectARM64
.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ARG FAIRGAME_REPO=https://github.com/Hari-Nagarajan/fairgame | |
ARG FAIRGAME_VERSION=0.6.0 | |
ENV FAIRGAME_PASSWORD="changeme" | |
ENV TZ="America/New_York" | |
# Clone Fairgame | |
RUN cd /root/ && git clone --depth 1 --branch $FAIRGAME_VERSION $FAIRGAME_REPO |
To enable the service: sudo systemctl enable rpi-htpc
To start the service: sudo systemctl start rpi-htpc
Make sure all ports specified in the docker-compose YAML config are available.
Once everything is up, you can configure/restore NZBGet, Sonarr, and Radarr to your liking.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Problem: | |
Given a vector of ints/floats V, find the number of length 3 subsets which have a sum < X. | |
Assume that V contains no duplicates. | |
""" | |
def num_subsets(V, X, N): | |
global count | |
count = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"crypto/rand" | |
"fmt" | |
"io" | |
"os" | |
) |
NewerOlder