This file contains hidden or 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
swagger: '2.0' | |
info: | |
version: 1.0.0 | |
title: Example API | |
description: | | |
blabla | |
termsOfService: Copyright TEST eG - 2015 | |
contact: | |
name: [email protected] | |
license: |
This file contains hidden or 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
/* compton --backend glx --glx-fshader-win "$(cat ~/compton-colour.glsl)" */ | |
uniform sampler2D tex; | |
/*mProtanopia*/ | |
//static const half3 blindVisionR = float3( 0.20 , 0.99 , -0.19 ); | |
//static const half3 blindVisionG = float3( 0.16 , 0.79 , 0.04 ); | |
//static const half3 blindVisionB = float3( 0.01 , -0.01 , 1.00 ); | |
/*mDeuteranopia*/ | |
//static const half3 blindVisionR = float3( 0.43 , 0.72 , -0.15 ); | |
//static const half3 blindVisionG = float3( 0.34 , 0.57 , 0.09 ); |
This file contains hidden or 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
// gcc -Wall -Wextra -O2 guess.c -lcrypto -o guess | |
#include <openssl/des.h> | |
#include <stdint.h> | |
#include <string.h> | |
int main() { | |
DES_cblock key_data; | |
if (!DES_random_key(&key_data)) { | |
printf("couldn't generate random key"); |
This file contains hidden or 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
// make CFLAGS=-O2 dpkgs && time ./dpkgs /lib/systemd/systemd | |
#define _POSIX_C_SOURCE 200809L | |
#define _GNU_SOURCE | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <dirent.h> | |
#include <assert.h> | |
#include <string.h> |
This file contains hidden or 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
cleanup() { | |
sudo umount a | |
rm a.img | |
sudo losetup -d /dev/loop0 | |
} | |
set -eu | |
mkdir -p a | |
truncate -s 128k a.img | |
mkfs.ext4 a.img >/dev/null 2>&1 |
This file contains hidden or 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
use std::collections::HashMap; | |
use std::collections::hash_map; | |
#[derive(Debug)] | |
enum Node { | |
Dir(HashMap<String, Node>), | |
File | |
} | |
fn add(into: &mut HashMap<String, Node>, remaining: &[String]) { |
This file contains hidden or 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
use std::collections::HashMap; | |
use std::collections::hash_map; | |
#[derive(Debug)] | |
enum Node { | |
Dir(HashMap<String, Node>), | |
File | |
} | |
fn list_to_tree(from: Vec<Vec<String>>) -> HashMap<String, Node> { |
This file contains hidden or 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
#[macro_use] | |
extern crate error_chain; | |
use errors::*; | |
fn call_john() -> Result<()> { | |
john::useful() | |
.chain_err(|| "calling useful") | |
?; | |
Ok(()) |
This file contains hidden or 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
# grab a load of dbd txt files | |
# v the maximum size of log to download | |
./fetch-logs -m 5k --download --delete-outdated -t dbdtxt | |
# process the logs | |
cd logs | |
../has-only.py debian/dbdtxt/unstable/amd64/* | |
# read out some packages | |
CBP=$(python3 -c 'import yaml; print(" ".join(pkg for pkg,dat in yaml.load(open("suggested_notes.yml")).items() if "captures_build_path" in dat.get("issues", {})))') |
This file contains hidden or 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
commit 9d2bf90676206957a502e9ec1c3cfe4f4b40b0cc | |
Author: Chris West (Faux) <[email protected]> | |
Date: Thu Jun 1 17:01:16 2017 +0000 | |
dynamically allocate EVP_CTX | |
diff --git a/boxbackup-0.11.1~r2837/debian/control b/boxbackup-0.11.1~r2837/debian/control | |
index 5cbdba6..d422125 100644 | |
--- a/boxbackup-0.11.1~r2837/debian/control | |
+++ b/boxbackup-0.11.1~r2837/debian/control |