time.google.com
time1.google.com
time2.google.com
time3.google.com
NOTE: requires an EFI bios, so zfs will not use the whole disk as this is a single disk scenario. | |
/*\ | |
|* Prerequisite: preare archiso with zfs support | |
\*****************************************************************************/ | |
// 0. Do everything as root. |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
# Checks a MIDI file to see if there are any overlapping notes | |
# An overlapping note is defined as two MIDI on events in sequence | |
import math | |
from mido import MidiFile, tick2second | |
input_midi = MidiFile(r'my_midi_file.mid') | |
notes = {} # stores which note is being held when iterating through each event | |
tempo = 120 # default, tempo will be read from the file | |
numerator = 4 # default, will be read from the file |
/* Written in 2015 by Sebastiano Vigna (vigna@acm.org) | |
To the extent possible under law, the author has dedicated all copyright | |
and related and neighboring rights to this software to the public domain | |
worldwide. This software is distributed without any warranty. | |
See <http://creativecommons.org/publicdomain/zero/1.0/>. */ | |
#include <stdint.h> |
#!/bin/bash | |
# This script is enabling (uncommenting) the Japanese locale and regenerates them | |
sudo steamos-readonly disable | |
sudo pacman-key --init | |
sudo pacman-key --populate archlinux | |
sudo pacman -S glibc | |
sudo sed -i "s%#ja_JP.UTF-8 UTF-8%ja_JP.UTF-8 UTF-8%" /etc/locale.gen | |
sudo locale-gen |
Africa/Abidjan | |
Africa/Accra | |
Africa/Addis_Ababa | |
Africa/Algiers | |
Africa/Asmara | |
Africa/Bamako | |
Africa/Bangui | |
Africa/Banjul | |
Africa/Bissau | |
Africa/Blantyre |
# Put this code in shell | |
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH |
# common/admin.py | |
class InputFilter(admin.SimpleListFilter): | |
template = 'admin/input_filter.html' | |
def lookups(self, request, model_admin): | |
# Dummy, required to show the filter. | |
return ((),) | |
def choices(self, changelist): |