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
{ stdenv | |
, fetchurl | |
, autoPatchelfHook | |
, python38 | |
, archs ? [] | |
}: | |
stdenv.mkDerivation rec { | |
pname = "symbiflow-arch-defs"; | |
version = "20200914-111752-g05d68df0"; |
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
diff --git a/pkgs/development/compilers/glslang/default.nix b/pkgs/development/compilers/glslang/default.nix | |
index dee3f488ecc..560c37a7752 100644 | |
--- a/pkgs/development/compilers/glslang/default.nix | |
+++ b/pkgs/development/compilers/glslang/default.nix | |
@@ -26,21 +26,6 @@ stdenv.mkDerivation rec { | |
nativeBuildInputs = [ cmake python3 bison jq ]; | |
enableParallelBuilding = true; | |
- postPatch = '' | |
- cp --no-preserve=mode -r "${spirv-tools.src}" External/spirv-tools |
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 python | |
import json | |
import pymysql | |
import pymysql.cursors | |
def main(): | |
connection = pymysql.connect( | |
host='localhost', |
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 clean | |
all: fbomb | |
fbomb: fbomb.elf | |
strip --strip-unneeded -o fbomb fbomb.elf | |
fbomb.elf: fbomb.o | |
ld --nmagic -o fbomb.elf fbomb.o |
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 | |
import json | |
import requests | |
from lxml import etree | |
def toh_to_dict(html): | |
ret = {} |
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/bash | |
# Instructions: | |
# Run this script and after it fills the screen with errors for a few minutes | |
# forcefully shutdown the computer. | |
# At the next boot the initramfs should attempt to recover the filesystem | |
# automatically. If you're in luck fsck will need interaction and bingo! | |
# You've got a root shell. This works by preventing access to /etc/passwd and | |
# therefore authentication with the system's credentials is imposible | |
# |
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 | |
''' | |
A script that downloads the black-list of ONJN Romania | |
Usage: ./onjn_lista_neagra.py >onjn_lista_neagra.txt | |
''' | |
from lxml import etree | |
import requests |
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 | |
efi_root=/sys/firmware/efi/efivars | |
for efifname in $(ls $efi_root); do | |
certdb=$efi_root/$efifname | |
length=$(wc -c $certdb | awk '{print $1;}') | |
for i in $(seq 0 $length); do | |
tail -c $i $certdb | openssl x509 -inform der -out $efifname-$i.crt 2>/dev/null | |
done | |
done |
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 | |
import multiprocessing as mp | |
import socket | |
import time | |
import sys | |
import pathlib | |
import OpenSSL.SSL as SSL | |
import OpenSSL.crypto as crypto |