Lightbox for Bootstrap 5.3.x, based on Modal and Carousel component. Responsive content, auto-play after first interaction, dark mode enabled, auto zoom. Fullscreen Mode enabled.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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[^"]*') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------------------------------------------- | |
-- _ _ _ ___ ___ -- | |
-- | \| |_ _(_)_ __ | _ \/ __| -- | |
-- | .` \ V / | ' \| / (__ -- | |
-- |_|\_|\_/|_|_|_|_|_|_\\___| -- | |
-- ____ _ -- | |
-- | _ \ ___ _ __ ___ ___ | |_ ___ -- | |
-- | |_) / _ \ '_ ` _ \ / _ \| __/ _ \ -- | |
-- | _ < __/ | | | | | (_) | || __/ -- | |
-- |_| \_\___|_| |_| |_|\___/ \__\___| -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import trio | |
from aioresult import ResultCapture | |
import string | |
async def task(receiver): | |
new_list = [] | |
list_nums = [] | |
alpha_nums = [] | |
async with receiver: |
NewerOlder