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
17a18,21 | |
> # Additional environment file | |
> if [ -f /opt/atomic/atomic-php56/root/etc/sysconfig/php-fpm ]; then | |
> . /opt/atomic/atomic-php56/root/etc/sysconfig/php-fpm | |
> fi | |
25,26c29,30 | |
< pidfile=${PIDFILE-/var/run/php-fpm/php-fpm.pid} | |
< lockfile=${LOCKFILE-/var/lock/subsys/php-fpm} | |
--- | |
> pidfile=${PIDFILE-/opt/atomic/atomic-php56/root/var/run/php-fpm/php-fpm.pid} |
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
key | value | date | |
---|---|---|---|
C | 10515.0 | 04/15/13 | |
C | 8144.0 | 05/05/13 | |
C | 5713.0 | 05/25/13 | |
C | 506.0 | 06/14/13 | |
C | 6123.0 | 07/04/13 | |
C | 7483.0 | 07/24/13 | |
C | 5173.0 | 08/13/13 | |
C | 974.0 | 09/02/13 | |
C | 7281.0 | 09/22/13 |
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 python2 | |
import networkx as nx | |
import os | |
# decorator==4.0.10 | |
# networkx==1.11 | |
# pydotplus==2.0.2 | |
# pyparsing==2.1.10 | |
# | |
# http://networkx.github.io/documentation/development/examples/drawing/weighted_graph.html |
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 | |
a=0 | |
for i in ~/music/*mp3; do | |
((a++)) | |
sox \ | |
"$i" \ | |
-n remix 1 spectrogram \ | |
-m -h \ | |
-p 2 \ | |
-z 80 \ |
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/python3 | |
import os | |
import base64 | |
from flask import Flask, request, redirect, url_for, send_from_directory, render_template, flash | |
#from werkzeug.utils import secure_filename | |
from collections import Counter | |
import sys |
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
;; rsm-mod | |
(defun %get-powers (k n) | |
"Get the list of the factor <k> that appears in <n>." | |
(loop | |
:with nn = n | |
:with facts = nil | |
:while (= (mod nn k) 0) :do | |
(setf nn (/ nn k)) | |
(push k facts) |
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
(in-package #:shiny) | |
;; scuffer version of FoxDot's song "ghost-in-the-machine.py"[1] | |
;; using lisp's "Common Music" patterns. And some custom helpers[2]. | |
;; | |
;; [1]: github.com/Qirky/ten-lines-or-less | |
;; [2]: github.com/azimut/shiny | |
;;-------------------------------------------------- | |
;; Scale.default="minor"; Clock.bpm=120 | |
(setf (bpm *tempo*) 120f0) | |
;;-------------------------------------------------- |

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
(emacs@localhost)155> snitch_resolver:do_query("starbucks.com",txt). | |
snitch_resolver:do_query("starbucks.com",txt). | |
{dns_rec,{dns_header,49263,true,query,false,true,true,true, | |
false,0}, | |
[{dns_query,"starbucks.com",txt,in}], | |
[],[],[]} |