Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env ruby
# encoding: utf-8
#
# This file, gist, is generated code.
# Please DO NOT EDIT or send patches for it.
#
# Please take a look at the source from
# http://github.com/defunkt/gist
# and submit patches against the individual files
# that build gist.
@rakeshopensource
rakeshopensource / TimeBasedOnetimePassword.java
Created September 22, 2023 10:22
The Time-Based One-Time Password (TOTP) algorithm stands as a prevalent technique for producing single-use codes, pivotal for two-factor authentication and enhancing security protocols. For a practical dive into its workings, I've written custom implementation in java.
package org.rakeshopensource.systemdesign;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import java.util.stream.IntStream;
public class TimeBasedOnetimePassword {
@Ynng
Ynng / custom.css
Last active April 20, 2024 11:58
vscode vtuber logo
.editor-group-watermark > .letterpress{
background-image: url("https://raw.githubusercontent.com/Aikoyori/ProgrammingVTuberLogos/main/VSCode/VSCode.png") !important;
opacity: .75;
}
@ishad0w
ishad0w / sources.list
Created August 20, 2023 09:36
Debian 12 (Bookworm) -- Full sources.list and debian.sources
deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware
deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security/ bookworm-security main contrib non-free non-free-firmware
@mlaidouni
mlaidouni / formation.orphee.nx.md
Last active April 20, 2024 11:51
VSGP - Formation Orphée NX - 2024.04.20
@crispyricepc
crispyricepc / install-instructions.md
Last active April 20, 2024 11:47
wlprop - An xprop clone for wlroots based compositors

Dependencies

Make sure you have installed the following commands:

  • swaymsg
  • jq
  • slurp
  • awk

Installation

@tatsuyasusukida
tatsuyasusukida / !README-javascript-audio.md
Last active April 20, 2024 11:46
🎵 How to record audio using the Web Audio API in JavaScript

🎵 How to record audio using the Web Audio API in JavaScript

Demo video: How to record audio using the Web Audio API in JavaScript

About this article

This article describes how to record audio using the Web Audio API in JavaScript. The related resources are shown below.

@UbuntuEvangelist
UbuntuEvangelist / Bagisto eCommerce Platform Installation Support
Created April 20, 2024 11:45
Bagisto eCommerce Platform Installation
📌 Get Bagisto eCommerce Platform Setup Telegram: https://t.me/LinuxGun​
📌 Email: linuxguns@gmail.com
I'll do installation process of Bagisto, a powerful Laravel-based eCommerce platform. Whether you're new to eCommerce or an experienced developer, shop owner Bagisto provides a flexible and scalable solution to build your online store. Bagisto eCommerce Platform Installation Supports | #Bagisto
Bagisto simplifies the process of creating feature-rich online stores with its modular approach, making it easy to customize and extend according to your business needs. Plus, it's built on Laravel, a popular PHP framework known for its elegant syntax and developer-friendly environment. Bagisto eCommerce Platform Installation Supports | #Bagisto
💰 Want to hire me for Bagisto eCommerce Platform Support? Hire me
🤔 Need to know more about Bagisto eCommerce Platform Support!!
@DynamiteBob17
DynamiteBob17 / HammingCode.java
Created April 20, 2024 11:45
Methods to encode/decode Hamming code using only bitwise operators/manipulations.
/**
* Class with static methods to encode/decode Hamming code
* with even parity in the 31-26 format,
* which is at most 26 data bits with 5 parity bits.
*/
public class HammingCode {
public static int encode(int msg) {
int bitThree = (msg & 0x1) << 2;
int bitsFiveToSeven = (msg & 0xe) << 3;
@aamiaa
aamiaa / CompleteMokokoQuest.md
Last active April 20, 2024 11:44
Complete Discord Mokoko Quest

Complete Discord Mokoko Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;