Skip to content

Instantly share code, notes, and snippets.

View johnraff's full-sized avatar

John Crawley johnraff

View GitHub Profile
@johnraff
johnraff / papirus-folder-color.sh
Last active April 24, 2022 03:48
Generate an overlay icon theme for Papirus, with a different colour for folders.
#!/bin/bash
# papirus-folder-color.sh
# Generate icon theme inheriting Papirus or Papirus-Dark,
# but with different coloured folder icons.
#
# Copyright: 2019-2022 John Crawley <john@bunsenlabs.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@johnraff
johnraff / rec_radiko.sh
Last active December 12, 2020 07:21 — forked from matchy256/rec_radiko.sh
簡易Radiko録音スクリプト
#!/bin/bash
LANG=ja_JP.utf8
pid=$$
date=`date '+%Y-%m-%d-%H_%M'`
outdir="."
if [ $# -le 1 ]; then
@johnraff
johnraff / sudoku.php
Created March 13, 2014 16:34
PHP sudoku solver, html and css are embedded in the file.
<?php
header('Content-Type: text/html; charset=utf-8');
class timer {
var $starttime;
function timer(){
$this->starttime=$this->microtime_float();
}
function microtime_float(){
list($usec, $sec) = explode(" ", microtime());
@johnraff
johnraff / tweets2html.php
Last active July 10, 2018 05:16 — forked from russellbeattie/twitterfeed.php
Access Twitter with OAuth, get json feed and output html for embedding in web page.
<?php
/**
* tweets2html.php
*
* Modified by John Crawley 2013/07/24
* to output html from Twitter feed for embedding in web page.
*
* Based on twitterfeed.php by Russell Beattie (2012-10-16)
* (http://www.russellbeattie.com/blog/twitterfeedphp-get-your-authenticated-twitter-stream-as-an-atom-feed)
*