Skip to content

Instantly share code, notes, and snippets.

View kiyui's full-sized avatar

Dafne Kiyui kiyui

View GitHub Profile
@kiyui
kiyui / translate.sh
Created May 21, 2017 16:45
PHP Translator
#!/bin/sh
# Simple shell script example to show how to translate
# PHP files from Chinese to English based on a simple
# REGEX match.
# Requires: https://github.com/soimort/translate-shel://github.com/soimort/translate-shell
alias match_han="grep -oP \"((?!')[\p{Han}\d]+(?:(?!').)*)\""
@kiyui
kiyui / spotify.desktop
Created November 26, 2017 14:27
HiDPI context menu example
[Desktop Entry]
Name=Spotify
GenericName=Music Player
Comment=Spotify streaming music client
Icon=com.spotify.Client
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=spotify --file-forwarding com.spotify.Client --force-device-scale-factor=2 @@u %U @@
Terminal=false
Type=Application
Categories=Audio;Music;Player;AudioVideo;
MimeType=x-scheme-handler/spotify;
@kiyui
kiyui / fizzbuzz.re
Created February 21, 2018 14:30
Fizz Buzz
/**
* Was watching this video by Tom Scott;-
* https://www.youtube.com/watch?v=QPZ0pIK_wsc
* And decided to try out the problem in ReasonML
*/
for (i in 1 to 100) {
let i = float(i);
let output = switch (mod_float(i, 3.0), mod_float(i, 5.0)) {
| (0.0, 0.0) => "FizzBuzz"
| (0.0, _) => "Fizz"
@kiyui
kiyui / PKGBUILD
Created October 22, 2019 03:17
lbry-app-bin rolling release PKGBUILD example
pkgname=lbry-app-bin-rolling
pkgver=...
pkgrel=1
pkgdesc='The LBRY app built using electron'
arch=('x86_64')
url='https://lbry.io/'
license=('MIT')
depends=('nodejs' 'npm' 'gnome-keyring' 'gconf')
source=('https://lbry.com/get/lbry.deb')
sha256sums=('SKIP')
@kiyui
kiyui / theme.css
Created April 2, 2020 17:28
Protonmail Theme
@charset "UTF-8"; /*!
* Custom Theme for ProtonMail v3.16.21
* http://amdelamar.com/pm-theme/
* SPDX-License-Identifier: MIT
*/
:root {
--theme1: #4a154b;
--theme2: #896184;
--theme3: #ffeeed;
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Dafne Kiyui",
"label": "professional doer of technology thingies™",
"image": "https://www.gravatar.com/avatar/9745db1aa088a2cef8c9dfd6b5b6bf5d?s=512",
"email": "didyouknowthat@dafne.rocks",
"url": "https://dontreinventbicycle.com/",
"summary": "Pronouns: she/they; I'm Dafne, and there's no better way to describe me than as a huge tech nerd. I started scripting before I was able to even properly read, and have been using Linux for over half my life. I try to keep life quirky, and am always busy tinkering. Ask me about my latest project.",
"location": {