Skip to content

Instantly share code, notes, and snippets.

abactinally: 100
abrogative: 100
absinthol: 100
acclimation: 100
accumulate: 100
acenaphthene: 100
achroous: 100
acknowledge: 100
acriflavine: 100
acromegaly: 100
@sbogacz
sbogacz / battery-status
Last active March 13, 2018 03:41
WIP to get the unicode character and the color code for conky
#!/bin/bash
ICON_MODE=false
COLOR_MODE=false
STATUS=`upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep "state" | awk '{print $2}'`
STATUS_ICON='\xF0\x9F\x94\x8C'
if [[ "$STATUS" != "charging" && "$STATUS" != "fully-charged" ]]; then
STATUS_ICON='\xF0\x9F\x94\x8B'
fi
@sbogacz
sbogacz / Makefile
Last active August 9, 2016 04:37
Hugo automation makefile
all: build sync-s3 invalidate-cache
clean:
@rm -rf \
public
build:
hugo -v
sync-s3:
@sbogacz
sbogacz / circle.yml
Created August 9, 2016 04:16
Hugo automation circle config
machine:
environment:
S3_BUCKET: <you-s3-bucket>
CF_DISTRIBUTION: <your-cloudfront-distribution-id>
HUGO_VERSION: 0.16
dependencies:
cache_directories:
- ~/bin
override: