Skip to content

Instantly share code, notes, and snippets.

View 000hen's full-sized avatar
Have a seat and take some coffee, let's talk about our life

Muisnow 000hen

Have a seat and take some coffee, let's talk about our life
View GitHub Profile
@pingswept
pingswept / card-reader.pde
Created March 19, 2014 19:26
Code to read UID from Charlie Card using Adafruit PN532 NFC shield
/**************************************************************************/
// Based on code from Adafruit's PN532 NFC shield example
// BSD license
/**************************************************************************/
#include <Wire.h>
#include <Adafruit_NFCShield_I2C.h>
#define IRQ (2)
@juampynr
juampynr / CHANGELOG.md
Created March 27, 2018 09:35
Sample CHANGELOG

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased] - yyyy-mm-dd

Here we write upgrading notes for brands. It's a team effort to make them as

@hereisderek
hereisderek / util.dart
Created September 14, 2018 17:48
dart utility class
import 'dart:math' as Math;
import 'dart:ui';
//import 'package:flutter/foundation.dart';
//import 'package:recorder/util/logger.dart';
import 'package:uuid/uuid.dart';
const _TAG = 'Util';
@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active July 19, 2026 02:05
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat
@Cojad
Cojad / mini_google_authenticator.php
Last active May 21, 2025 10:01
Very small implementation of Google's OTP Authenticator
<?php
// copied from python code at https://stackoverflow.com/a/23221582/3103058
function base32_decode($key) {
// https://www.php.net/manual/en/function.base-convert.php#122221
$key = strtoupper($key);
list($t, $b, $r) = array("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", "", "");
foreach(str_split($key) as $c)
$b = $b . sprintf("%05b", strpos($t, $c));
foreach(str_split($b, 8) as $c)
$r = $r . chr(bindec($c));
@storycraft
storycraft / uuid-to-nbt-uuid.js
Last active November 6, 2024 17:09
Convert uuid string to minecraft nbt uuid (int array)
function toNBTUUID(uuid) {
return `[I;${uuid.replace(/-/g, '').match(/.{8}/g).map(str => Number.parseInt(str, 16)).map(num => num & 0x80000000 ? num - 0xffffffff - 1 : num).join(',')}]`;
}
// toNBTUUID('0e9b65dd-3dce-4a3f-8a13-3299a91ceac7');
// -> [I;245065181,1036929599,-1978453351,-1457722681]
@majirosstefan
majirosstefan / react-native-char-kit-animations.js
Created August 30, 2021 12:26
animations for react-native-chart-kit
import React, { useEffect, useState, useRef } from 'react';
import {
Dimensions, SafeAreaView,
ScrollView,
StatusBar, StyleSheet, useColorScheme, Animated,
LayoutAnimation,
View
} from 'react-native';
import { LineChart, ProgressChart } from 'react-native-chart-kit';
import { Colors } from 'react-native/Libraries/NewAppScreen';
@sergeyzenchenko
sergeyzenchenko / russia-ddos.md
Last active July 16, 2026 11:10
Russia DDOS list
@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active August 3, 2026 06:57
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!


Update 2025-07-16: Use either Revanced, NewPipe or Firefox with add-ons. Revanced is my personal pick, due to it being a mod of the official App like Vanced, but better (e.g. it has integration of Sponsor Block, Return YouTube Disklike and more).

I wouldn't recommend Kiwi Browser anymore as it has been discontinued. AFAIK it has been accuired by Microsoft and the extension support has been merged into Edge (Canary). But you'd have to use Edge. Yuck.


@marirs
marirs / rust-cross-compile-openssl
Last active October 31, 2024 15:39
Rust OpenSSL Cross Compile for Linux on Mac M1
# Install the toolchain
```bash
brew tap SergioBenitez/osxct
brew install x86_64-unknown-linux-gnu
```
# this should get installed in:
# /opt/homebrew/Cellar/x86_64-unknown-linux-gnu/
# Installing the macOS OpenSSL - if not already installed