warning: Very cursed
- wf-recorder
- mpv
- wayland
| package main | |
| import ( | |
| "context" | |
| "fmt" | |
| "net/http" | |
| "time" | |
| "golang.org/x/time/rate" | |
| ) |
| name: Flutter CI | |
| # This workflow is triggered on pushes to the repository. | |
| on: | |
| push: | |
| branches: | |
| - master | |
| # on: push # Default will running for every branch. |
| export function cuilValidator(cuil: string): boolean { | |
| if (cuil.length !== 11) { | |
| return false; | |
| } | |
| const [checkDigit, ...rest] = cuil | |
| .split('') | |
| .map(Number) | |
| .reverse(); |
| #!/bin/bash | |
| # This script is based on https://unix.stackexchange.com/revisions/480191/9 . | |
| # The following changes proved to be necessary to make it work on CentOS 7: | |
| # * removed disk info (model, size) - not very useful, might not work in many cases. | |
| # * using "bw" instead of "bw_bytes" to support fio version 3.1 (those availible through yum @base) | |
| # * escaping exclamation mark in sed command | |
| # * the ".fiomark.txt" is not auto-removed | |
| LOOPS=5 #How many times to run each test |
Here we create the master key. We want only Certify capability: we use the master key only to create the subkeys, Sign - Encrypt - Authenticate capabilities will be assigned to the subkeys.
Run the following command to start the master key generation process. Select the set your own capabilities creation process (type 8)
▶ gpg --full-generate-key --expert
gpg (GnuPG) 2.2.9; Copyright (C) 2018 Free Software Foundation, Inc.
| #!/usr/bin/env bash | |
| # Source: https://gist.github.com/Tadly/0741821d3694deaec1ee454a95c591fa | |
| # | |
| # Use rofi to pick emoji because that's what this | |
| # century is about apparently... | |
| # | |
| # Requirements: | |
| # rofi, xsel, xdotool, curl, xmllint | |
| # | |
| # Usage: |
| # This is just a cheat sheet: | |
| # On production | |
| sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
| # On local | |
| scp -C production:~/database.sql.gz | |
| dropdb database && createdb database | |
| gunzip < database.sql.gz | psql database |
| #!/bin/sh | |
| # | |
| # !!! IMPORTANT !!! | |
| # As of 2017-12-14, pacaur is unmaintained (https://bbs.archlinux.org/viewtopic.php?pid=1755144#p1755144) | |
| # For alternatives see the arch wiki: https://wiki.archlinux.org/index.php/AUR_helpers#Active | |
| # pacaur seems to get occasional updates to fix breaking changes due to pacman updates though. | |
| # | |
| # If you are new to arch, I encourage you to at least read and understand what | |
| # this script does befor blindley running it. | |
| # That's why I didn't make a one-liner out of it so you have an easier time |