Skip to content

Instantly share code, notes, and snippets.

View anoduck's full-sized avatar
🦆
Quackity, Quack!

Anoduck, The Anonymous Duck anoduck

🦆
Quackity, Quack!
View GitHub Profile
@anoduck
anoduck / vuurmurr-error.cc
Last active October 25, 2022 08:56
Vuurmuur build error
CCLD libvuurmuur.la
/usr/bin/ld: .libs/blocklist.o:/home/user/vuurmuur-0.8/lib/../include/vuurmuur.h:429: multiple definition of `vrprint'; .libs/backendapi.o:/home/user//vuurmuur-0.8/lib/../include/vuurmuur.h:429: first defined here
/usr/bin/ld: .libs/blocklist.o:/home/user/vuurmuur-0.8/lib/../include/vuurmuur.h:1892: multiple definition of `vrmr_plugin_list'; .libs/backendapi.o:/home/user//vuurmuur-0.8/lib/../include/vuurmuur.h:1892: first defined here
/usr/bin/ld: .libs/config.o:/home/user/vuurmuur-0.8/lib/../include/vuurmuur.h:429: multiple definition of `vrprint'; .libs/backendapi.o:/home/user//vuurmuur-0.8/lib/../include/vuurmuur.h:429: first defined here
/usr/bin/ld: .libs/config.o:/home/user/vuurmuur-0.8/lib/../include/vuurmuur.h:1892: multiple definition of `vrmr_plugin_list'; .libs/backendapi.o:/home/user//vuurmuur-0.8/lib/../include/vuurmuur.h:1892: first defined here
/usr/bin/ld: .libs/conntrack.o:/home/user/vuurmuur-0.8/lib/../include/vuurmuur.h:429: multiple definition of `vrprint'
@anoduck
anoduck / keybase.md
Created October 2, 2022 07:59
keybase.md

Keybase proof

I hereby claim:

  • I am anoduck on github.
  • I am anoduck (https://keybase.io/anoduck) on keybase.
  • I have a public key ASDmcjTddstoynslXZFKQUXfH9XyRQ9pw6KQhfDrshBvSQo

To claim this, I am signing this object:

;;; org-roam-captures.el --- Captures for Org Roam -*- lexical-binding: t; -*-
;; Copyright (C) 2022 anoduck
;; Author: anoduck <anoduck@github.com>
;; Keywords: local, outlines, internal, calendar, convenience, data, docs, files, extensions
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@anoduck
anoduck / colortrans.py
Created September 6, 2022 04:46 — forked from gagbo/colortrans.py
Translate truecolor to 256-color palette
#!/usr/bin/env python3
"""
Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
The legacy version uses naive euclidean distance in rgb space,
the non-legacy version uses naive euclidean distance in hsv space, manually
@anoduck
anoduck / github_compose-file.yml
Last active August 6, 2022 00:38
docker-compose.yml for tor container and vanguards container networked
version: '3.5'
services:
# -------------------------------------------------------
# Apache
# -------------------------------------------------------
apache:
image: apache:0.0.2
container_name: webox
restart: always
#!/usr/bin/env zsh
export PATH="$PATH:$HOME/.rvm/bin:$PATH"
# If you come from bash you might have to change your $PATH.
# export PATH TERM HOME
export PATH="$PATH:$HOME/bin:/usr/local/bin:$HOME/.local/bin:$HOME/Sandbox/Nim/bin:$HOME/.cargo/bin:$HOME/Sandbox/go/bin:${GOPATH//://bin:}/bin:$PATH"
export GOPATH="$HOME/go/bin"
export GOBIN="$(go env GOPATH)/bin"
export PATH="$PATH:$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
# export MANPATH="/usr/local/man:$MANPATH"
;;; org-event-captures.el --- summary -*- lexical-binding: t -*-
;; Author: anoduck
;; Maintainer: anoduck
;; Version: 0.0.3
;; Package-Requires: org
;; Homepage: reddit.com/r/orgmode
;; Keywords: org-capture, org, events, appointments, meetings
@anoduck
anoduck / README.md
Last active December 10, 2021 20:52
Proxy-Scraper Script: To ease execution of: https://github.com/iw4p/proxy-scraper
__________                                      _________ .__                   __    
\______   \_______  _______  ______.__.         \_   ___ \|  |__   ____   ____ |  | __
 |     ___/\_  __ \/  _ \  \/  <   |  |  ______ /    \  \/|  |  \_/ __ \_/ ___\|  |/ /
 |    |     |  | \(  <_> >    < \___  | /_____/ \     \___|   Y  \  ___/\  \___|    < 
 |____|     |__|   \____/__/\_ \/ ____|          \______  /___|  /\___  >\___  >__|_ \
                              \/\/                      \/     \/     \/     \/     \/

Proxy-Check

@anoduck
anoduck / leaflet-load.html
Created October 24, 2021 11:53
Shortcodes for leaflet-map in order: 1) Load the map. 2) Map shortcode and parameters. 3) Map markers and parameters. 4) BONUS: the actual hugo page I used.
<!-- Leaflet (JS/CSS) -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.6.0/dist/leaflet.css"
integrity="sha512-xwE/Az9zrjBIphAcBb3F6JVqxf46+CDLwfLMHloNu6KEQCAWi6HcDUbeOfBIptF7tcCzusKFjFw2yuvEpDL9wQ=="
crossorigin=""/>
<script src="https://unpkg.com/leaflet@1.6.0/dist/leaflet.js"
integrity="sha512-gZwIG9x3wUXg2hdXF6+rVkLF/0Vi9U8D2Ntg4Ga5I5BZpVkVxlJWbSQtXPSiUTtC0TjtGOmxa1AJPuV0CPthew=="
crossorigin=""></script>
<!-- leaflet-elevation -->
<link rel="stylesheet" href="https://unpkg.com/@raruto/leaflet-elevation@1.1.1/dist/leaflet-elevation.css" />
@anoduck
anoduck / vscode_kali_setup.bash
Created June 17, 2021 02:04
Setup VSCODE to run on Kali while using root as primary user
#!/usr/bin/env bash
## Of coarse this is assuming that you are user root && you already have vscode and sudo installed
useradd -m vscode -s /bin/bash && adduser vscode sudo && echo 'vscode ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
xhost +
echo "export DISPLAY=:0.0" >> /home/vscode/.bashrc
cat ~/.Xauthority | sudo -u vscode -i tee /home/vscode/.Xauthority > /dev/null
echo "Done"