type: PIN
Consumer key: 3nVuSoBZnx6U4vzUxf5w
Consumer secret: Bcs59EFbbsdF6Sl9Ng71smgStWEGwXXKSjYvPVt7qys
type: PIN
Consumer key: IQKbtAYlXLripLGPWd0HUA
# vim:ft=zsh ts=2 sw=2 sts=2 | |
# | |
# Minorister | |
# Dirty mix of agnoster and paradox theme | |
# I missed paradox theme of prezto even after installing oh-my-zsh | |
# | |
# # README | |
# | |
# In order for this theme to render correctly, you will need a | |
# [Powerline-patched font](https://github.com/Lokaltog/powerline-fonts). |
#AP6212_NVRAM_V1.0_20140603_intel | |
# 2.4 GHz, 20 MHz BW mode | |
# The following parameter values are just placeholders, need to be updated. | |
manfid=0x2d0 | |
prodid=0x0726 | |
vendid=0x14e4 | |
devid=0x43e2 | |
boardtype=0x0726 | |
boardrev=0x1101 |
/* Copyright (C) 1997-2016 Free Software Foundation, Inc. | |
This file is part of the GNU C Library. | |
The GNU C Library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. | |
The GNU C Library is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
#!/bin/zsh | |
mkdir aa3 | |
for file in $PWD/*.(mp3|flac|wav) ; do | |
fullfilename=$(basename $file) | |
filename=${fullfilename%.*} | |
ffmpeg -nostats -loglevel panic -i $fullfilename -ar 44100 temp.wav | |
# ATRAC3Tool can be found here: https://github.com/Treeki/atrac3tool |
#!/bin/zsh | |
for file in $PWD/*.(aa3) ; do | |
fullfilename=$(basename $file) | |
filename=${fullfilename%.*} | |
# linux-minidisc found here: https://wiki.physik.fu-berlin.de/linux-minidisc/doku.php | |
sudo ../netmdcli send "$fullfilename" "$filename" | |
done |
#!/usr/bin/zsh | |
pandoc "$1" -o "/tmp/print_temp_out.html" --wrap=preserve -f markdown -t html -s | |
wkhtmltopdf --encoding utf-8 --margin-top 1mm --margin-bottom 7mm --margin-left 0mm --margin-right 0mm --page-height 210mm --page-width 47mm --grayscale "/tmp/print_temp_out.html" "/tmp/print_temp_out.pdf" | |
lp -d Zjiang-58 "/tmp/print_temp_out.pdf" | |
rm "/tmp/print_temp_out.pdf" | |
rm "/tmp/print_temp_out.html" |
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = imagemagick | |
Target = ffmpeg | |
Target = protobuf | |
Target = nginx | |
Target = redis | |
Target = postgresql | |
Target = nodejs |
[Trigger] | |
Operation = Upgrade | |
Type = Package | |
Target = imagemagick | |
Target = ffmpeg | |
Target = protobuf | |
Target = nginx | |
Target = redis | |
Target = postgresql | |
Target = nodejs |
#!/bin/bash | |
# Delete current bundles | |
sudo -u mastodon rm -rf /var/lib/mastodon/live/vendor/bundle | |
# Build new bundles | |
cd /var/lib/mastodon/live | |
sudo -u mastodon bundle install --deployment --without development test | |
# Start mastodon services |