Skip to content

Instantly share code, notes, and snippets.

@kayabaNerve
kayabaNerve / .md
Last active April 16, 2024 10:24
FCMP+SA+L

Full-Chain Membership Proofs + Spend Authorization + Linkability

This proposes an extension to FCMPs to make them a drop-in replacement for the exsting CLSAG. In order to be such a replacement, the proof must handle membership (inherent to FCMPs), spend authorization, and linkability.

Terminology

@dimaclara
dimaclara / hello.c
Last active April 16, 2024 10:23
hello world
int main()
{
printf("hello world");
return 0;
}
@xnumad
xnumad / pre-installed-chrome-extensions
Last active April 16, 2024 10:22
Simplest way to get rid of pre-installed Chrome extensions
Sadly, the usual uninstallers of those programs DO NOT remove their "enforcement of pre-installing" extensions into Google Chrome web browser. ("Another program on your computer added an extension that may change the way Chrome works.")
This guidance only contains instructions for Google Chrome.
Enter about://extensions into the adress bar of Google Chrome.
Click on "Details" for the respective extension you want to stop from being pre-installed.
Copy the extension ID from the URL (the text after "id=").
Now remove all these in the registry existing keys at the following paths:
- HKEY_LOCAL_MACHINE\SOFTWARE\Google\Chrome\Extensions\<id>
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Google\Chrome\Extensions\<id>
- HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\Extensions\<id>
@rokibhasansagar
rokibhasansagar / tg_group_cleaner.py
Created March 4, 2020 20:37
Kick all the deleted accounts from a telegram chat using telethon.
from telethon import TelegramClient
from telethon.tl.functions.channels import EditBannedRequest
from telethon.tl.types import ChatBannedRights
import asyncio
import datetime
api_id = 1234 # Your API_ID
api_hash = "1a2b3c456" # Your APP_ID
@crabmusket
crabmusket / README.md
Last active April 16, 2024 10:20
Headless rendering with THREE.js

Headless THREE

Created with

Make sure you install headless-gl's dependencies, then run with XVFB like so:

@DarkAng3L
DarkAng3L / CSS: Reset by Kevin Powell.css
Created April 16, 2024 10:18
CSS: Reset by Kevin Powell
/*
* Kevin Powell
* https://youtu.be/2lyDv0wOQuQ
* https://youtu.be/cCAtD_BAHNw
*/
*, *::before, *::after {
box-sizing: border-box; /* Switch to border-box for box-sizing. */
}
@caroguerrerosilvera
caroguerrerosilvera / InputAutocomplete.tsx
Last active April 16, 2024 10:18
Creating a custom reusable Combobox using headless-ui for react
import { Combobox } from '@headlessui/react';
interface InputAutocompleteProps<T> {
multiple?: boolean;
labelExtractor: (item: T) => string;
handleChange: (query: string) => void;
}
export function InputAutocomplete<T>({
multiple,
@rais38
rais38 / gist:5766980
Created June 12, 2013 16:35
Create patch from stash
git stash show -p stash@{0} > Stash0.patch
@kenvilar
kenvilar / index.php
Created May 23, 2020 09:28
Create Cpanel database through PHP script
<?php
$database_name = "dbname"; // without prefix
$database_user = $database_name; // database name and database username are both similar, change the value if you want
$database_pass = "random_password";
$cpanel_username = "my_cpanel_username";
$cpanel_pass = "my_cpanel_password";
$cpanel_theme = "paper_lantern"; // change this to "x3" if you don't have paper_lantern yet
function createDb($cpanel_theme, $cPanelUser, $cPanelPass, $dbName)
@rahularity
rahularity / work-with-multiple-github-accounts.md
Last active April 16, 2024 10:14
How To Work With Multiple Github Accounts on your PC

How To Work With Multiple Github Accounts on a single Machine

Let suppose I have two github accounts, https://github.com/rahul-office and https://github.com/rahul-personal. Now i want to setup my mac to easily talk to both the github accounts.

NOTE: This logic can be extended to more than two accounts also. :)

The setup can be done in 5 easy steps:

Steps:

  • Step 1 : Create SSH keys for all accounts
  • Step 2 : Add SSH keys to SSH Agent