Skip to content

Instantly share code, notes, and snippets.

@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;
@don-smith
don-smith / swap-caps-lock-and-ctrl.ps1
Last active April 20, 2024 11:44
A PowerShell script to swap the Caps Lock and Ctrl keys
# Script found at https://superuser.com/a/997448
# Swap details found at https://www.mavjs.org/post/swap-ctrl-and-capslock-on-windows
# Improvement provided by Davido264 in comment below
$hexified = "00,00,00,00,00,00,00,00,03,00,00,00,1d,00,3a,00,3a,00,1d,00".Split(',') | % { "0x$_"};
$kbLayout = 'HKLM:\System\CurrentControlSet\Control\Keyboard Layout';
$scancodeMap = Get-ItemProperty -Path $kbLayout -Name "Scancode Map" -ErrorAction Ignore
if ( -not $scancodeMap )
{
@Drarig29
Drarig29 / better-git-checkout.sh
Last active April 20, 2024 11:51
Git checkout with fuzzy search and automatic branch swap between worktrees
function swap_worktree_branch_with() {
# Run the command again to get the error message
error_message=$(git switch $1 2>&1)
culprit_worktree=$(echo $error_message | grep "is already used by worktree at" | cut -d "'" -f4)
if [ -z "$culprit_worktree" ]; then
return
fi
# Save the branch in current worktree, and detach the HEAD so that we can switch to this branch in the culprit worktree
@adrianhajdin
adrianhajdin / index.css
Created November 11, 2021 13:19
Build and Deploy a Fully Responsive Website with Modern UI/UX in React JS
.gpt3__whatgpt3 {
display: flex;
flex-direction: column;
padding: 2rem;
background: var(--color-footer);
/* ff 3.6+ */
background:-moz-radial-gradient(circle at 30% -100%, #042c54 25%, rgba(4, 44, 84, 1) 85%, rgba(27, 120, 222, 1) 100%);
@andyjessop
andyjessop / prompt.txt
Created April 20, 2024 07:43
A prompt to categorise and analyse sentiment for GitHub issues
Please analyze the following GitHub issue data, which is provided as a JSON object:
{
"title": "🐛 BUG: WebSocket typing doesn't work in apps that also pull in DOM types",
"body": "Which Cloudflare product(s) does this pertain to?",
}
Provide a response with the following structure:
<json>