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
[Unit] | |
Description=Mako notification daemon | |
Documentation=man:mako(1) man:makoctl(1) | |
PartOf=graphical-session.target | |
[Service] | |
Type=dbus | |
BusName=org.freedesktop.Notifications | |
ExecStart=/usr/bin/mako |
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
package http_lang; | |
use nginx; | |
sub quality { | |
my $lang = shift; | |
if ($lang =~ /;q=(\d\.\d+)$/) { | |
return $1; | |
} |
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 python3.6 | |
import asyncio | |
from contextlib import closing | |
import aiohttp | |
import tqdm | |
async def download(session, url, progress_queue): |
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
import asyncio | |
import random | |
async def square(stream): | |
async for num in stream: | |
yield num ** 2 | |
async def add_two(stream): |
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 | |
LD_PRELOAD="./divos-hack/divos-hack.so" LD_LIBRARY_PATH="." ./EoCApp |
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 <ctype.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <limits.h> | |
int main(void) { | |
const size_t ARRAY_LEN = 256; | |
int data[ARRAY_LEN]; memset(data, 0, ARRAY_LEN*sizeof(int)); |
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 perl | |
# Configuration file for latexmk, automation script for LaTeX builds | |
# Use xelatex by default | |
$pdf_mode = 1; $postscript_mode = $dvi_mode = 0; | |
$pdflatex = "lualatex %O %S"; |
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
package cz.khardix.scala | |
import swing._ | |
object HelloWorld extends SimpleSwingApplication { | |
def top = new MainFrame { | |
title = "Hello World!" | |
contents = new Button { | |
text = "Click Me!" |
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
ACTION!="add|change", GOTO="yubico_end" | |
# Yubico Yubikey Neo | |
ATTRS{idVendor}=="1050", ATTRS{idProduct}=="0010|0110|0111|0116|0407", \ | |
ENV{ID_SECURITY_TOKEN}="1", RUN+="/bin/bash -c '/usr/bin/killall -9 scdaemon; sleep 1; /usr/bin/gpg2 --card-status'" | |
LABEL="yubico_end" |
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
.Phony: all run clean | |
all: validate | |
run: validate | |
./validate | |
validate: validate.cpp fileno.o | |
clean: |
NewerOlder