#+Start Date: (fill me in with today’s date, DD-MM-YYYY) #+RFC MR: (leave this empty)
> One paragraph explanation of the change.
#!/usr/bin/env bash | |
function upgrade_godns() { | |
PROFILE="TimothyYe" | |
PROJECT="godns" | |
OUTFILE="godns.tar.gz" | |
ENDFILE="godns" | |
VERSION=$(curl -s "https://api.github.com/repos/$PROFILE/$PROJECT/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*') | |
import {join} from 'path'; | |
import {en, Faker} from '@faker-js/faker'; | |
import axios from 'axios'; | |
import fs from 'fs'; | |
import {get} from 'https'; // Use 'http' if needed | |
import {Readable} from 'stream'; // Ensure compatibility with Node.js 18+ | |
const faker = new Faker({ | |
locale: [en], |
------------------------------------------- | |
-- _ _ _ ___ ___ -- | |
-- | \| |_ _(_)_ __ | _ \/ __| -- | |
-- | .` \ V / | ' \| / (__ -- | |
-- |_|\_|\_/|_|_|_|_|_|_\\___| -- | |
-- ____ _ -- | |
-- | _ \ ___ _ __ ___ ___ | |_ ___ -- | |
-- | |_) / _ \ '_ ` _ \ / _ \| __/ _ \ -- | |
-- | _ < __/ | | | | | (_) | || __/ -- | |
-- |_| \_\___|_| |_| |_|\___/ \__\___| -- |
| |
https://ziglang.org/documentation/master/#Pointers | |
*T - single-item pointer to exactly one item. | |
Supports deref syntax: ptr.* | |
[*]T - pointer to unknown number of items. (eq. of *T in C) | |
Supports index syntax: ptr[i] | |
Supports slice syntax: ptr[start..end] | |
Supports pointer arithmetic: ptr + x, ptr - x |
#!/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 |
#!/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 |
import trio | |
from aioresult import ResultCapture | |
import string | |
async def task(receiver): | |
new_list = [] | |
list_nums = [] | |
alpha_nums = [] | |
async with receiver: |
#!/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" |