Skip to content

Instantly share code, notes, and snippets.

import argparse
import contextlib
import math
import pathlib
from typing import List, Optional, Tuple, Union
import numpy as np
import torch
import torch.distributed as dist
import torch.nn as nn
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active June 28, 2025 04:52
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@obahareth
obahareth / setup_os_x.sh
Last active June 28, 2025 04:51
A script to setup OS X with the apps and formulas I use.
# Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
# Tap sources we need
brew tap homebrew/dupes
brew tap homebrew/versions
brew tap homebrew/homebrew-php
brew tap caskroom/versions
@fnky
fnky / ANSI.md
Last active June 28, 2025 04:50
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@tsiege
tsiege / The Technical Interview Cheat Sheet.md
Last active June 28, 2025 04:50
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

ANNOUNCEMENT

I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!






\

@Akshay-Eypz
Akshay-Eypz / owner.js
Last active June 28, 2025 04:48
Owner
const { izumi, mode } = require('../lib/');
izumi({
pattern: "owner$",
fromMe: mode,
desc: "Bot Owner",
type: "user",
}, async (message, match, client) => {
try {
const name = 'Eʏᴘᴢ ☔', title = "Iᴢᴜᴍɪ Sᴜᴘᴘᴏʀᴛ🧚‍♂️", number = '917994489493', body = "Eʏᴘᴢ☔";
const image = "https://i.imgur.com/UriXD0j.jpeg", sourceUrl = 'https://chat.whatsapp.com/KHvcGD7aEUo8gPocJsYXZe';

just a collection of entertaining video game clips

various

https://www.youtube.com/watch?v=aGBHDh4LNNM Space Creator Pro - Unreal engine 5
https://www.youtube.com/watch?v=nWm_OhIKms8 Star Citizen - The Future of Gaming: StarEngine (4K)
https://www.youtube.com/watch?v=3keRKwUizuQ Star Citizen
https://www.youtube.com/watch?v=6OeW2QtTkIo Everspace 2 -
https://www.youtube.com/watch?v=j0JwGQMug4c Homeworld 3 -
https://www.youtube.com/watch?v=nNZYHp5-y1U Elite Dangerous - Exploring the "World of Death"

@DavidEGrayson
DavidEGrayson / serial.c
Last active June 28, 2025 04:38
Simple Windows C program that connects to a serial port and prints out events from it, such as ring signals.
// Lots of code was copied from https://msdn.microsoft.com/en-us/library/ff802693.aspx#serial_topic3
#include <assert.h>
#include <windows.h>
#include <stdio.h>
#include <stdbool.h>
void ReportStatusEvent(HANDLE port, DWORD s)
{
printf("event 0x%lx", s);
@cjonesy
cjonesy / macbook_pro_ubuntu_install.md
Last active June 28, 2025 04:37
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image