Skip to content

Instantly share code, notes, and snippets.

@oSumAtrIX
oSumAtrIX / README.md
Last active April 30, 2024 20:38
Useful snippets for Discord

Discord console scripts

My collection of scripts for Discord.

Scripts

  • friend_invitelink.js: Generate a friend invite link
  • clientside_nitro.js: Spoof the client and enable client side Discord Nitro
@Killeroid
Killeroid / gpg-import-and-export-instructions.md
Created October 18, 2017 11:51
How to export and import gpg keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Gotten from the RedHat GPG migration manual

Backup the public and secret keyrings and trust database

## Export all public keys

gpg -a --export >mypubkeys.asc

@posener
posener / go-table-driven-tests-parallel.md
Last active April 30, 2024 20:34
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
	t.Parallel()
@FahimFBA
FahimFBA / OASIS_to_NIFTI_Fahim.sh
Created April 30, 2024 15:09
Converting OASIS brains MRI image files to NIFTI files
#!/bin/bash
# Directory where the OASIS data is located
ROOTDIR=/home/fahim/dataset
# Directory to save results
NIFTIDIR=${ROOTDIR}/../nifti
# Go to the directory with the data
cd ${ROOTDIR}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Z-Index Example</title>
<style>
html, body { background-color: #00787F; }
.container {
position: relative;
@noteeeeee
noteeeeee / JetBrainsActivation.md
Last active April 30, 2024 20:24
Webstorm/JetBrains products activation 2024 (Windows/MacOS)

Webstorm/JetBrains products activation 2024 (Windows/MacOS)

1.Proxy Settings

  1. Step 1: Navigate to Proxy settings.
  2. Step 2: Select "Manual proxy settings - HTTP".
    • Hostname: localhost
    • Port: 80

Set no proxy for:

@ekwoodrich
ekwoodrich / DVRIP-Sonia Reference Codes.md
Last active April 30, 2024 20:24
Reference codes for the DVRIP/Sonia TCP protocol used by the Net Surveillance ActiveX plugin

DVRIP/Sonia Protocol

DVRIP/Sonia TCP protocol used by the Net Surveillance ActiveX plugin

1. Response Codes

Return code Definition
100 Success
101 Unknown error
102 Version not supported
103 Illegal request
@JBlond
JBlond / bash-colors.md
Last active April 30, 2024 20:22 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@dalechyn
dalechyn / anvil.ts
Created April 30, 2024 13:06
Start an anvil and otterscan with bun
import { createAnvil } from '@viem/anvil'
import 'dotenv/config'
import { $ } from 'bun'
import path from 'path'
import z from 'zod';
import { fromError } from 'zod-validation-error'
//////////////////////
// Env validation