List of freely available resources to study computer graphics programming.
| #!/bin/bash | |
| set -euo pipefail | |
| IFS=$'\n\t' | |
| # Download all ticked blocklists from The Firebog's "The Big Blocklist | |
| # Collection" [0] and block access to them with Unbound by redirecting traffic | |
| # to 0.0.0.0. | |
| # | |
| # [0]: https://firebog.net | |
| ( |
Use this script via curl -L -O https://gist.github.com/dragon788/e777ba64d373210e4f6306ad40ee0e80/raw/a86f3d05fb56feb6ef01fc2d61a4feb2fd82b281/crypt-fix.sh and sudo bash ./crypt-fix.sh.
You may need to edit the DEVICE variable to reflect your disk and partition layout (this was created on an EFI system using LUKS and LVM).
It will prompt you for your disk password once to mount and discover the correct name for the encrypted volume mount and
then prompt again to mount with the correct name so that the update-initramfs command succeeds with the appropriate mapping,
if this wasn't done you would get a warning and your next boot would still fail.
| import ssl | |
| from flask import json | |
| from ldap3 import Server, \ | |
| Connection, \ | |
| SUBTREE, \ | |
| ALL_ATTRIBUTES, \ | |
| Tls, MODIFY_REPLACE | |
| OBJECT_CLASS = ['top', 'person', 'organizationalPerson', 'user'] |
| wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
| tar xvf wkhtmltox-0.12.4_linux-generic-amd64.tar.xz | |
| mv wkhtmltox/bin/wkhtmlto* /usr/bin/ | |
| ln -nfs /usr/bin/wkhtmltopdf /usr/local/bin/wkhtmltopdf |
Create file /etc/systemd/system/docker-compose@.service. SystemD calling binaries using an absolute path. In my case is prefixed by /usr/local/bin, you should use paths specific for your environment.
[Unit]
Description=%i service with docker compose
PartOf=docker.service
After=docker.service| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <time.h> | |
| #include "crypto_secretbox.h" | |
| #include "randombytes.h" | |
| // install nacl: https://nacl.cr.yp.to/install.html | |
| // export NACL_DIR=path/to/nacl/build/<machinename>/ |
| from falcon.routing import DefaultRouter | |
| class ReverseRouter(DefaultRouter): | |
| url_map = {} | |
| # override add_route to add our map | |
| def add_route(self, uri_template, method_map, resource, name=None): | |
| if name: | |
| self.url_map[name] = uri_template |
| height: 600 | |
| license: mit | |
| acknowledgement: Please add "Nadieh Bremer | Visual Cinnamon" to your credit when re-using this code, thank you! |