-
Clone and prepare the repo:
$ git clone https://github.com/google/material-design-lite.git $ cd material-design-lite $ npm install $ sudo npm install -g gulp # needed to build
-
Set your colors in
src/src/material-design-lite.scss
, BEFORE the@import "variables";
line.
The colours must be in"R,G,B"
format (values 0-255).
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
ykman config usb --disable OTP | |
ykman fido set-pin | |
ssh-keygen -t ed25519-sk -O resident -f ~/.ssh/id_ed25519_sk | |
ssh-add -K |
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
# Put me into /usr/local/etc/X11/xorg.conf.d/ | |
# Replace XXX by the appropriate device: | |
# guess from `sudo libinput list-devices` (TODO I should write more precise instructions) | |
Section "ServerLayout" | |
Identifier ":-(" | |
InputDevice "Trackpoint0" "CorePointer" | |
InputDevice "Touchpad0" "CorePointer" | |
EndSection |
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
#!/bin/sh | |
MYSCREEN='eDP-1' # the laptop's built-in display | |
screens=` xrandr | grep ' connected' | grep -v $MYSCREEN | cut -d\ -f1` | |
notscreens=`xrandr | grep 'disconnected' | grep -v $MYSCREEN | cut -d\ -f1` | |
for s in $notscreens; do | |
xrandr --output $s --off | |
done |
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
#!/usr/bin/env python3 | |
# TODO publish this separately | |
# | |
# Needs packages: | |
# - ag (package probably named something like silversearcher) | |
# - cloc | |
# Uses prometheus_client Python library -- install with pip install --user prometheus_client, or use pipenv | |
# | |
# use with something like: |
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
#!/usr/bin/env python3 | |
import prometheus_client as prom | |
import random | |
import time | |
import sys | |
T = float(sys.argv[1]) if len(sys.argv) > 1 else 0.1 | |
REQUEST_TIME = prom.Summary('processing_time_seconds', 'Time spent processing request') |
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
#!/bin/bash | |
# Pushes a link through Pushbullet. Set $1 to title and $2 to the link. | |
ACCESS_TOKEN=<Your access token here> | |
CHANNEL_TAG=<Your channel tag here> | |
PUSH_METHOD=POST | |
PUSH_URL=https://api.pushbullet.com/v2/pushes | |
if [ $# != 2 ]; then echo "Usage: $0 title href"; exit 1; fi |
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
#!/bin/bash | |
DIR="`readlink -f \"${1:-.}\"`" | |
FLAC_MUSIC_DIR="`readlink -f \"${2:-$HOME/temp/flac_music/}\"`" | |
Q=8 | |
echo " ** Encoding all FLAC files under $DIR as OGG at quality $Q **" | |
find "$DIR" -type f -name '*.flac' -print | while read -r f; do oggenc -q$Q -o "${f%.flac}.ogg" "$f"; done | |
echo " ** Moving all FLAC files to $FLAC_MUSIC_DIR **" |
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
MOVED: I now have an (up-to-date!) repo with all my templates at https://github.com/AnotherKamila/templates. | |
PRESUNUTÉ: Po novom mám repozitár so všetkými mojimi templatami na https://github.com/AnotherKamila/templates. |
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
#!/usr/bin/coffee | |
# a small app to pull new revisions to a specified github repo | |
# to be used as the other end of post-receive hooks | |
# | |
# url should contain the (absolute) path to the repo in the `repo` parameter | |
# example: http://rhoeas.tk/pull?repo=~kamila/www/my.rhoeas.tk | |
http = require 'http' | |
url = require 'url' |