Skip to content

Instantly share code, notes, and snippets.

View anoduck's full-sized avatar

Anoduck, The Anonymous Duck anoduck

View GitHub Profile
@anoduck
anoduck / setup-ivre.sh
Last active August 14, 2024 06:46
Ivre Setup for Kali / Debian
#!/usr/bin/env bash
# contrived from https://doc.ivre.rocks/en/latest/install/fast-install-and-first-run.html
# Ensure user has suid permissions
if [ "$EUID" -ne 0 ]
then echo "You must run this with root permissions."
exit
fi
@anoduck
anoduck / create_tun.py
Created July 12, 2024 05:58
A simply pthon script to create a tunnel interface.
#!/usr/bin/env python3
import fcntl
import struct
import os
from scapy.layers.inet import IP
from warnings import warn
from dataclasses import dataclass, field
from typing import List
import subprocess
@anoduck
anoduck / resource_error_test.py
Last active November 25, 2023 21:16
Script repeating `trio.ClosedResourceError`
import trio
from aioresult import ResultCapture
import string
async def task(receiver):
new_list = []
list_nums = []
alpha_nums = []
async with receiver:
@anoduck
anoduck / build_goneovim.sh
Created September 4, 2023 06:58
Sh script to build goneovim and desktop environment for testing goneovim.
#!/usr/bin/env sh
SNDBX="$HOME/Sandbox"
WORKDIR="$HOME/Sandbox/goneovim"
export GO111MODULE=off
export QT_PKG_CONFIG=true
export GOPATH="$(go env GOPATH)"
export GOBIN="$GOPATH/bin"
export PATH="$PATH:$GOBIN"
QSET="$(go env GOPATH)/bin/qtsetup"
@anoduck
anoduck / install-sdrangel.sh
Created June 22, 2023 08:10
Simple script to install sdrangel
#!/usr/bin/env bash
#
# Copyright (C) 2023 Anoduck
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
@anoduck
anoduck / amdgpu-make.log
Last active March 30, 2023 05:12
Make log from attempting to compile amdgpu in kali Linux.
DKMS make.log for amdgpu-5.18.13-1538762.22.04 for kernel 6.1.0-kali7-amd64 (amd64)
Wed Mar 29 06:41:47 PM EDT 2023
make: Entering directory '/usr/src/linux-headers-6.1.0-kali7-amd64'
CC [M] /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/scheduler/sched_main.o
CC [M] /var/lib/dkms/amdgpu/5.18.13-1538762.22.04/build/amd/amdgpu/amdgpu_drv.o
In file included from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/posix_types.h:5,
from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/types.h:14,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/types.h:6,
from /usr/src/linux-headers-6.1.0-kali7-common/include/uapi/linux/sched.h:5,
from /usr/src/linux-headers-6.1.0-kali7-common/include/linux/sched.h:10,
@anoduck
anoduck / expansive-org-captures.el
Created December 19, 2022 08:14
Collections of org-capture templates that I found one day...
(setq org-capture-templates
'(
;; ===============================================================================
;; ___ _
;; | _ \___ ______ ___ _____(_)___ _ _ ___
;; | _/ _ (_-<_-</ -_|_-<_-< / _ \ ' \(_-<
;; |_| \___/__/__/\___/__/__/_\___/_||_/__/
;; ;; Templates for the POSSESSIONS keyword sequence
("p" "Possessions")
;; ;; The fact this guy REALLY customized his captures so only he can use it can sck it!
@anoduck
anoduck / gist:ba2001956177e3cca2489a7c3eec8151
Last active December 13, 2022 00:35 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

Github compatible emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
@anoduck
anoduck / ifupdown.sh
Last active November 5, 2022 06:33
ifplugd ifupdown action script (see https://linux.die.net/man/8/ifplugd)
#!/bin/sh
set -e
set -o errexit
set -o nounset
if [ -z "$1" ] || [ -z "$2" ] ; then
echo "Wrong arguments" > /dev/stderr
exit 1
fi
@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'