Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
# Place it in ~/.githooks/pre-commit & configure your emails and domains | |
# Then run: | |
# git config --global core.hooksPath ~/.githooks | |
public_email="[email protected]" | |
public_domain="github.com" | |
work_email="[email protected]" | |
work_domain="your.work.domain" |
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
# download ubuntu-cloud image | |
# NOTE: ubuntu-server won't properly work with cloud-init for some reason | |
wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img | |
# NOTE: no need for sudo because we already login as root | |
# install image customization tool | |
apt update -y && apt install libguestfs-tools -y | |
# install qemu-guest-agent inside of image |
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
FROM ubuntu:focal | |
ENV GODOT_VERSION "3.3.4" | |
ENV COMMANDLINETOOLS_VERSION "7583922_latest" | |
ENV ANDROID_API "29" | |
ENV BUILD_TOOLS "30.0.3" | |
ENV CMAKE_VERSION "3.10.2.4988404" | |
ENV NDK_VERSION "21.4.7075529" | |
ARG DEBIAN_FRONTEND=noninteractive |
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
curl -X PUT http://127.0.0.1:4646/v1/system/gc | |
nomad system reconcile summaries |
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/python3.6 | |
import asyncio | |
import aiohttp | |
from concurrent import futures | |
from time import perf_counter | |
from os import path, stat, remove | |
from proxybroker import Broker | |
import logging |
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 <Wiegand.h> | |
// NOT a standart wiegand library | |
// Yet another wiegand library v2.0.0 by Paulo Costa | |
// https://github.com/paulo-raca/YetAnotherArduinoWiegandLibrary | |
#define PIN_D0 2 | |
#define PIN_D1 3 | |
Wiegand wg; | |
bool card_read_flag = false; |