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
// 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
/* 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
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
import fdb | |
import json | |
import sys | |
import decimal | |
import datetime | |
def js(val): | |
if type(val) == int: | |
return val | |
if type(val) == str: |
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
/* | |
% npm install typescript | |
.. warnings blah blah.. | |
+ [email protected] | |
updated 1 package and audited 2 packages in 0.538s | |
found 0 vulnerabilities | |
% node_modules/.bin/tsc --lib es2018,dom --target es2018 --strict --noImplicitReturns --noImplicitAny --out hello.js hello.ts |
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
import java.io.FileInputStream; | |
import java.io.IOException; | |
public class A { | |
static long checkHeader(String path) throws IOException { | |
// can't use try() as there's no way to catch only the initialisation exception? | |
final FileInputStream fis; | |
try { | |
fis = new FileInputStream(path); | |
} catch (IOException e) { |
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
// Here's a .java file, named 'Yellow.java' | |
// Inside a package (and directory) named 'green' | |
package green; | |
// Here's a class named 'Blue' | |
class Blue { | |
// Here's a method named 'foo' inside 'Blue' | |
void foo() { |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>io.github.egg</groupId> | |
<artifactId>egg</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<name>egg</name> | |
<dependencies> |
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
const fs = require('fs'); | |
const fsp = fs.promises; | |
const util = require('util'); | |
const readFile = util.promisify(fs.readFile); | |
fs.writeFileSync('a', 'a'); | |
const attempts = 10000; |