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 | |
# Depencies: lp & wry | |
search='#adnprinter' # hashtag/search | |
count=7 # How many post should be printed? | |
cd /adnprinter #change that to cd /path/to/adnprinter | |
posts=$(wry search $search -c $count) | |
if test "$posts" != "$(cat ./ref.txt)" | |
then echo "$posts" > ./ref.txt | |
lp ./ref.txt |
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
diff --git a/application/controllers/file.php b/application/controllers/file.php | |
index 7d701b7..16c6d75 100644 | |
--- a/application/controllers/file.php | |
+++ b/application/controllers/file.php | |
@@ -316,7 +316,7 @@ class File extends MY_Controller { | |
echo '<div class="table-row">'."\n"; | |
echo '<div class="table-cell">'."\n"; | |
// TODO: use exec safe and catch exception | |
- $r = (new \libraries\ProcRunner(array(FCPATH.'scripts/Markdown.pl', $file)))->forbid_stderr()->exec(); | |
+ $r = (new \libraries\ProcRunner(array('perl '.FCPATH.'scripts/Markdown.pl', $file)))->forbid_stderr()->exec(); |
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
#define F_CPU 10000000UL | |
#include <avr/io.h> | |
#include <avr/interrupt.h> | |
#define BLINKPIN (1 << DDA0) | |
int main(void) { | |
DDRA = BLINKPIN; | |
PORTA = DDRA; |
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
module Data.Infinite where | |
import Prelude hiding (iterate, take, drop) | |
data Infinite a = Cons a (Infinite a) deriving Show | |
simple :: a -> Infinite a | |
simple x = Cons x $ simple x | |
iterate :: a -> (a -> a) -> Infinite a |
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
(ql:quickload "chirp") | |
(ql:quickload "trivial-http") | |
(defparameter chirp:*oauth-api-key* | |
"toplel") | |
(defparameter chirp:*oauth-api-secret* | |
"lolnope") | |
(defparameter chirp:*oauth-access-token* | |
"roflmao") | |
(defparameter chirp:*oauth-access-secret* |
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 | |
nix-shell -p pkgs.opam pkgs.ocamlPackages_4_03.ocaml pkgs.aspcud pkgs.m4 pkgs.gnumake pkgs.binutils pkgs.gcc pkgs.gmp \ | |
--command ". $HOME/.opam/opam-init/init.sh; eval \`opam config env\`; return" \ | |
-I nixpkgs=$HOME/src/nix/nixpkgs |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <ctype.h> | |
#include <sys/mman.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#define TOKENS_CHUNK 50 |
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 nix-shell | |
#!nix-shell -i runhaskell -p "haskellPackages.ghcWithPackages (hps: with hps; [wai-middleware-static warp unix])" | |
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Network.Wai | |
import Network.Wai.Middleware.Static | |
import Network.Wai.Handler.Warp | |
import Network.HTTP.Types.Status | |
import System.Posix.Directory |
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
[Definition] | |
failregex = pam_unix\(rpam:auth\): authentication failure; logname=.* uid=\d* euid=\d* tty=.* ruser=.* rhost=<HOST>\s*user=.*$ |
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
\ProvidesPackage{philcite} | |
\usepackage{csquotes} | |
\usepackage[% | |
style=philosophy-verbose% | |
, sorting=nyt% | |
, shorthandintro=true% | |
, loccittracker=context% | |
, inbeforejournal=true | |
]{biblatex} |
OlderNewer