Skip to content

Instantly share code, notes, and snippets.

View kragniz's full-sized avatar
🥀
🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓

Louis Taylor kragniz

🥀
🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓🥀⛓
View GitHub Profile
building path(s) ‘/nix/store/y6agkf15gjmnz70yad40rnrbiqxm782s-python3.5-ruamel.ordereddict-0.4.9’
checking for hypot... unpacking sources
unpacking source archive /nix/store/n2009m5dcdmv5nxc35s7rhxkd1apvjfk-ruamel.ordereddict-0.4.9.tar.gz
source root is ruamel.ordereddict-0.4.9
patching sources
configuring
building
yes
checking for lgamma... yes
checking for log1p... yes
@kragniz
kragniz / 1b.py
Last active December 3, 2015 21:22
adventofcode
#!/usr/bin/env python3
s = input()
t = 0
for i, c in enumerate(s):
if c == '(': t += 1
elif c == ')': t += -1
if t == -1: print i; break
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
# Use the GRUB 2 boot loader.
boot.loader.grub.enable = true;
#!/bin/sh
echo "AW YE"
patches:
- "fix-thing.patch":
- 3.10.0-229
- 3.10.0-228
- 3.10.0-227
- 3.10.0-226
- "fix-thing-for-older-kernel.patch":
- 3.10.0-123
- "fix-thing-for-really-old-kernel.patch":
- 3.9.7-233
diff --git a/fs/proc/version.c b/fs/proc/version.c
index d2154eb..21ccc9b 100644
--- a/fs/proc/version.c
+++ b/fs/proc/version.c
@@ -4,10 +4,16 @@
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/utsname.h>
+#include <generated/compile.h>
+
ubuntu in ~/git/searchlight on (detached from sjmc7/metadef-plugin)*
$ tox -e py27
py27 create: /home/ubuntu/git/searchlight/.tox/py27
py27 installdeps: -r/home/ubuntu/git/searchlight/requirements.txt, -r/home/ubuntu/git/searchlight/test-requirements.txt
py27 develop-inst: /home/ubuntu/git/searchlight
py27 runtests: PYTHONHASHSEED='2186359158'
py27 runtests: commands[0] | lockutils-wrapper python setup.py testr --slowest --testr-args=
running testr
running=OS_STDOUT_CAPTURE=${OS_STDOUT_CAPTURE:-1} \
OS_STDERR_CAPTURE=${OS_STDERR_CAPTURE:-1} \
@kragniz
kragniz / swift
Created January 14, 2015 13:54
Swift devstack
$ cd ~/devstack
$ cat localrc
ADMIN_PASSWORD=whatevs
MYSQL_PASSWORD=whatevs
RABBIT_PASSWORD=whatevs
SERVICE_PASSWORD=whatevs
SERVICE_TOKEN=whatevs
FLAT_INTERFACE=br100
HOST_IP=10.0.0.7
@kragniz
kragniz / gist:2dceb3aae6579522aa5f
Created November 21, 2014 17:18
glanceclient multiple upload
$ glance image-create --name non-queued --disk-format qcow2 --container-format bare --file files/images/cirros-0.3.2-x86_64-uec/cirros-0.3.2-x86_64-blank.img
+------------------+--------------------------------------+
| Property | Value |
+------------------+--------------------------------------+
| checksum | 4eada48c2843d2a262c814ddc92ecf2c |
| container_format | bare |
| created_at | 2014-11-21T16:56:14 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
@kragniz
kragniz / keybase.md
Created November 3, 2014 11:35
keybase.io

Keybase proof

I hereby claim:

  • I am kragniz on github.
  • I am kragniz (https://keybase.io/kragniz) on keybase.
  • I have a public key whose fingerprint is CCBE 4586 336F E1BF BC64 5050 8E81 A6DA E13E 7098

To claim this, I am signing this object: