Skip to content

Instantly share code, notes, and snippets.

@Orangera1n
Orangera1n / 15on16sepactivationguide.md
Last active April 16, 2024 11:27
How to activate a device on iOS 15 that was futurerestored on 16 sep

whatisthisthisthisthisthisthis?

This is a guide on how to activate ur idevice on ios 15 (maybe ios 14 idk) when its futurerestored on 16 sep.

DISCLAIMER: I am very aware people might use this to bypass icloud, but I am NOT encouraging you to bypass icloud.

ALSO: THIS IS RECOMMENDED FOR ADVANCED USERS ONLY, i am not responsable for ur device being broken (tho idk how it becomes broken via this)

also, i've only tested this on macOS, might work on linux tho if u replace darwin with linux and shit.

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active April 16, 2024 11:25
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@nikhita
nikhita / update-golang.md
Last active April 16, 2024 11:25
How to update the Go version

How to update the Go version

System: Debian/Ubuntu/Fedora. Might work for others as well.

1. Uninstall the exisiting version

As mentioned here, to update a go version you will first need to uninstall the original version.

To uninstall, delete the /usr/local/go directory by:

@jkerola
jkerola / hyprland-ubuntu-2310.sh
Created October 13, 2023 14:59
Commands for installing Hyprland v0.30.0 on Ubuntu 23.10
# Hyprland v0.30.0 on Ubuntu 23.10
# Tested 12.10.2023 on Ubuntu server
# Official deps
sudo apt-get install -y meson wget build-essential \
ninja-build cmake-extras cmake gettext gettext-base \
libfontconfig-dev libffi-dev libxml2-dev libdrm-dev \
libxkbcommon-x11-dev libxkbregistry-dev libxkbcommon-dev \
libpixman-1-dev libudev-dev libseat-dev seatd libxcb-dri3-dev \
libvulkan-dev libvulkan-volk-dev vulkan-validationlayers-dev \
@xiabingquan
xiabingquan / transformer_all_in_one.py
Created December 6, 2023 14:52
Implement Transformer from scratach. All modules included in one file!
# coding=utf-8
# Contact: bingquanxia@qq.com
import numpy as np
import torch
import torch.nn as nn
def get_len_mask(b: int, max_len: int, feat_lens: torch.Tensor, device: torch.device) -> torch.Tensor:

Typescript: Function composition and recurrent types

While I was working on our toolkit library Desmond I stumbled upon a problem when defining the TypeScript definition for a function pipe.

With help from Joe Calzaretta, a software developer working for MIT's IS&T, I defined type definitions for a variadic function composition in TypeScript, that is in some aspects superior to the existing solutions implemented in popular libraries.

Adapting the proposed solution I managed to define the HOC function type for composition without overloads, ultimately allowing it to safely type-check function chain for any number of arguments, which is a feature lacking in type definitions of even extremely popular utility libraries such as Lodash.

What is pipe?

# install docker
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
if [ ! $(getent group docker) ];
then
sudo groupadd docker;
else
echo "docker user group already exists"
fi
@StephenCleary
StephenCleary / ObservableProgress.cs
Last active April 16, 2024 11:22
ObservableProgress
using System;
using System.Reactive.Linq;
using System.Threading;
/// <summary>
/// Helper methods for using observable <see cref="IProgress{T}"/> implementations. These are hot observables.
/// </summary>
public static class ObservableProgress
{
/// <summary>
@erlend
erlend / inx.sh
Created September 3, 2023 21:09
Script for running GUI applications in Docker or OrbStack with XQuartz
#!/bin/sh
cmd=$*
authorize() {
for host
do xhost | egrep -q "^INET6?:$host$" || xhost + $host
done
}
@NeatMonster
NeatMonster / README.md
Last active April 16, 2024 11:19
A simple hexdump module for Python

Simple Hexdump

A simple hexdump module for Python.

Installation

The preferred installation method is:

pip install simple-hexdump