Skip to content

Instantly share code, notes, and snippets.

@ssl1313
ssl1313 / Credit Card Generator
Created January 2, 2025 05:06 — forked from B-Con/Credit Card Generator
This JavaScript function generates random number strings that pass the Luhn checksum, the test that credit card numbers must conform to. It assumes there is an HTML radio input to indicate which company issued the card. This code is from my webpage here: http://bradconte.com/cc_generator.html.
// Copyright (c) 2015, Brad Conte (http://bradconte.com)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
@B-Con
B-Con / Credit Card Generator
Last active January 2, 2025 05:06
This JavaScript function generates random number strings that pass the Luhn checksum, the test that credit card numbers must conform to. It assumes there is an HTML radio input to indicate which company issued the card. This code is from my webpage here: http://bradconte.com/cc_generator.html.
// Copyright (c) 2015, Brad Conte (http://bradconte.com)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
@ststeiger
ststeiger / offline_mdn_docs.md
Last active January 2, 2025 05:05 — forked from zed-dz/offline_mdn_docs.md
Offline MDN Docs
@Pamblam
Pamblam / Credit Card Generator
Last active January 2, 2025 05:04 — forked from B-Con/Credit Card Generator
Generate a valid random credit card number, CVV, issuer and expiration date
/**
* Generate a valid random credit card number, CVV, issuer and expiration date
*
* Original Copywrite/license:
*
* Copyright (c) 2015, Brad Conte (http: *bradconte.com)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
@nov1n
nov1n / nvimbak.sh
Created January 1, 2025 12:46
Bash script to launch Neovim from a working backup configuration
#!/usr/bin/env bash
# nvimbak
#
# Description:
# This script creates a backup of the user's dotfiles directory and starts
# Neovim with the backup configuration. The backup directory and any submodules
# are reset to the latest Git commit - which is assumed to be working.
#
# NEOVIM_ARGS: Optional arguments to pass to Neovim. These arguments will be
@aequabit
aequabit / youtube-sidebar-playlists.user.js
Last active January 2, 2025 04:56
YouTube Sidebar Playlists
// ==UserScript==
// @name YouTube Sidebar Playlists
// @description Shows playlists in the sidebar again
// @version 0.0.4
// @author aequabit
// @match https://www.youtube.com/*
// @grant none
// @run-at document-start
// @downloadURL https://gist.github.com/aequabit/9f2dcd6af2e7d8958fcc1ffe8e87199a/raw/youtube-sidebar-playlists.user.js
// ==/UserScript==
@A2L5E0X1
A2L5E0X1 / lineage-signing-builds.md
Last active January 2, 2025 04:54
Signing LineageOS builds with your own dev-keys

Generating dev-keys to sign android builds

All you need is an Android buildsystem (LineageOS is recommended)
NOTE: For Lineage 21 and newer, different steps are required.

PART 1: GENERATING KEYS

  1. Export your infos (replace examples with your infos)
subject='/C=US/ST=California/L=Mountain View/O=Android/OU=Android/CN=Android/[email protected]'

C: Country shortform

@keynmol
keynmol / clay-glue.c
Created January 1, 2025 13:55
Scala Native bindings for Clay - https://github.com/nicbarker/clay
#include <string.h>
void __sn_wrap_clay_Clay_CreateArenaWithCapacityAndMemory(uint32_t capacity, void * offset, Clay_Arena *____return) {
Clay_Arena ____ret = Clay_CreateArenaWithCapacityAndMemory(capacity, offset);
memcpy(____return, &____ret, sizeof(Clay_Arena));
}
void __sn_wrap_clay_Clay_EndLayout(Clay_RenderCommandArray *____return) {
Clay_RenderCommandArray ____ret = Clay_EndLayout();
@alkavan
alkavan / ctf.cfg
Last active January 2, 2025 04:50
Install IOQUAKE3 on Rocky Linux 9.0
set sv_hostname "BewareSpace Q3 Arena (CTF)"
set sv_maxclients 12
set g_motd "mess with the best, die like the rest."
set g_forcerespawn 10
set g_gametype 4
set bot_minplayers 8
set g_spskill 3
set timelimit 15
set m1 "capturelimit 8; map q3ctf1 ; set nextmap vstr m2"
@eldadfux
eldadfux / README.md
Last active January 2, 2025 04:44
Appwrite's Email Verification

Appwrite's Email Verification

The Appwrite email verification process helps you verify your project user really owns the email address he has signed up with. The email verification process allows your user to update his user object emailVerification attribute to true.

The email verification process consists of 2 parts:

  1. Sending the confirmation email
  2. Confirming the verification process

By default, unverified users are not restricted in any special way. It's up to you and your app logic to decide how these users are treated. You can prompt them with a verification message or limit their access to your application.