Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am perillamint on github.
  • I am perillamint (https://keybase.io/perillamint) on keybase.
  • I have a public key ASCVZZ0uW_jTYR9A_Nm5LelVjOSU4bglX5ItU6VpgLHbLQo

To claim this, I am signing this object:

@perillamint
perillamint / mprisnp.sh
Created March 20, 2017 02:01
MPRIS #NowPlaying tweet poster
#!/bin/zsh
PLAYER=Bugs
METADATA=$(qdbus org.mpris.MediaPlayer2.${PLAYER} /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata)
ALBUM=$(echo $METADATA | grep xesam:album: | sed "s/xesam:album: //g")
ARTIST=$(echo $METADATA | grep xesam:artist: | sed "s/xesam:artist: //g")
TITLE=$(echo $METADATA | grep xesam:title: | sed "s/xesam:title: //g")
TWEET="#NowPlaying ${ALBUM} - ${ARTIST} - ${TITLE}"
@perillamint
perillamint / 444d.sh
Created March 17, 2017 07:46
Crude 444 daemon
#!/bin/bash
while true
do
TS=$(date -Iseconds)
echo $TS | grep 16:44:44
if [ 0 -eq $? ]
then
t update "$TS"
fi
@perillamint
perillamint / node.service
Created February 17, 2017 03:12
systemd unit for node app
[Unit]
Description=Your awesome nodejs app
After=network.target
[Service]
User=awesome_user_account_name_here
Environment=NODE_ENV=production
ExecStart=/opt/awesomenode/launcher_script.sh
Restart=on-failure
@perillamint
perillamint / AX35.preset
Created February 3, 2017 01:09
pulseaudio mbeq config file for Astrotek AX35
mbeq_1197
mbeq
Multiband EQ
1.0
AX35
15
0.0
-5.0
-5.0
-5.0
#!/bin/bash
ZIPFILE=$1
if [ ! -f "${ZIPFILE}" ]
then
exit 1
fi
if [ -d qcow ]
@perillamint
perillamint / bootlog.txt
Created November 14, 2016 16:59
WeVO W2914NS v2 bootlog
===================================================================
MT7621 stage1 code Mar 12 2015 14:43:30 (ASIC)
CPU=500000000 HZ BUS=166666666 HZ
==================================================================
Change MPLL source from XTAL to CR...
do MEMPLL setting..
MEMPLL Config : 0x11100000
3PLL mode + External loopback
=== XTAL-40Mhz === DDR-1200Mhz ===
PLL2 FB_DL: 0x11, 1/0 = 596/428 45000000
@perillamint
perillamint / DSDT.dsl
Created September 5, 2016 00:43
Connectia Cherry 9.7 DSDT.dsl
This file has been truncated, but you can view the full file.
/*
* Intel ACPI Component Architecture
* AML/ASL+ Disassembler version 20160831-64
* Copyright (c) 2000 - 2016 Intel Corporation
*
* Disassembling to symbolic ASL+ operators
*
* Disassembly of DSDT, Tue Jul 26 06:10:25 2016
*
* Original Table Header:
'use strict';
var Twitter = require('twitter');
//Fill below with your own credential.
var client = new Twitter({
consumer_key: '',
consumer_secret: '',
access_token_key: '',
access_token_secret: ''