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
#!/usr/bin/env python3 | |
# | |
# This file is part of cannelloni, a SocketCAN over Ethernet tunnel. | |
# | |
# Copyright (C) 2014-2015 Maximilian Güntner <[email protected]> | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License, version 2 as | |
# published by the Free Software Foundation. | |
# |
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
require 'json' | |
file = File.read("chains.json") | |
data = JSON.parse(file) | |
unknowncount = 0 | |
for effect in data | |
filename = "" | |
for element in effect | |
if element.class == 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
# Edit this configuration file to define what should be installed on | |
# your system. Help is available in the configuration.nix(5) man page | |
# and in the NixOS manual (accessible by running ‘nixos-help’). | |
{ config, pkgs, ... }: | |
{ | |
imports = | |
[ # Include the results of the hardware scan. | |
./hardware-configuration.nix |
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
// run with ./concurrentadd --dir where/your/testfiles/reside | |
package main | |
import ( | |
"flag" | |
"log" | |
"os" | |
"io/ioutil" | |
"github.com/ipfs/go-ipfs-api" | |
"path/filepath" |
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
{ | |
systemd.services.pure-ftpd = { | |
description = "PureFTPD Server"; | |
wantedBy = [ "multi-user.target" ]; | |
serviceConfig = { | |
# -e only Anon -M allow Dirs | |
ExecStart = "${pkgs.pure-ftpd}/bin/pure-ftpd -e -M -p 30000:50000"; | |
Type = "simple"; | |
}; | |
}; |
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
{ workingDirectory, socketLocation, pidLocation, workerProcesses }: | |
let | |
cfg = '' | |
# The following was taken from github.com/crohr/syslogger and is BSD | |
# licensed. | |
require 'syslog' | |
require 'logger' | |
require 'thread' | |
class Syslogger |
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
{ | |
alacritty_sb = callPackage ./alacritty { | |
inherit (pkgs.xorg) libXcursor libXxf86vm libXi libX11; | |
}; | |
} |
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
<html> | |
<title>Absolute answers are hard.</title> | |
<style> | |
#main { | |
background-color: #00ff00; | |
height: 200px; | |
} | |
#absolute { | |
position: absolute; | |
top: 220px; |
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
#!/usr/bin/env ruby | |
require 'byebug' | |
require 'dry-validation' | |
module MyPredicates | |
include Dry::Logic::Predicates | |
predicate(:nested_one?) do |value| | |
(value.is_a? Hash) && value.key?(:alpha) |
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
bindsym --release $mod+q exec --no-startup-id /home/anon/bin/kill.sh |