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 / 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'
@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 <[email protected]>
;; 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