Skip to content

Instantly share code, notes, and snippets.

View nside's full-sized avatar

nside

View GitHub Profile
@djsime1
djsime1 / fz_reset_pin.md
Last active July 2, 2025 22:33
Reset forgotten Flipper Zero PIN

Reset Forgotten FZ PIN

On newer firmware versions (0.77 and later), you can factory reset the device by holding UP and BACK for 30 seconds. There is no well-known method to clear a forgotten PIN without resetting the entire device.

Old method for firmware versions before 0.77

⚠️ This method is only to be used for Flipper devices on old firmware! If performed on an updated device, it may make things worse. All liability falls on yourself if you proceed.

:: Last updated May 5th 2022. ::

@zit0un
zit0un / GeoJSON-OAS3.yaml
Last active June 27, 2025 13:59
OpenAPI (OAS3/Swagger) definition for GeoJSON objects
openapi: 3.0.0
info:
version: 1.0.1
title: GeoJSON format
description: >
This document defines the GeoJSON format as an OpenAPI.
It contains the definitions for 'Feature' object and 'FeatureCollection'
objects, as well as the definitions for all 'Geometry' objects.
It conforms with the 'RFC-7946' standard from IETF (August 2016 version)
@prevwong
prevwong / example-grid-craft.js
Created January 4, 2020 18:54
A simple Grid layout system with Craft.js
// Get total `width` of all children
const getAccumulatedChildrenWidth = (helper, parentId) => {
return helper(self.id).decendants().map(id => helper(id).get())
.reduce((a, b) => a.data.props.width + b.data.props.width, 0);
}
const Grid = () => {
return (
<div>
{children}
@alanjfs
alanjfs / CMakeLists.txt
Created October 5, 2019 18:47
ECSY's documentation example, implemented with Magnum and EnTT
cmake_minimum_required(VERSION 3.1)
project(ECSY1)
# Add module path in case this is project root
if(PROJECT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/../../modules/" ${CMAKE_MODULE_PATH})
endif()
find_package(Magnum REQUIRED
@velyan
velyan / Build Skia on MacOS
Last active April 25, 2025 12:50
Steps to build Skia on MacOS
mkdir $HOME/deps
cd $HOME/deps
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
git clone https://github.com/google/skia.git
export PATH="${PWD}/depot_tools:${PATH}"
cd skia
python tools/git-sync-deps
//static
bin/gn gen out/release --args="is_official_build=true skia_use_system_expat=false skia_use_system_icu=false skia_use_libjpeg_turbo=false skia_use_system_libpng=false skia_use_system_libwebp=false skia_use_system_zlib=false skia_use_libwebp=false extra_cflags_cc=[\"-frtti\"]"
@MikeK4y
MikeK4y / gps_utils.py
Last active February 17, 2025 14:44
A python class to convert GPS coordinates to a local ENU coordinate system and vice versa
'''
MIT License
Copyright (c) 2019 Michail Kalaitzakis
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@ysmood
ysmood / nginx.minimal.conf
Last active February 23, 2024 03:01
nginx minimal reverse proxy config
events {}
http {
server {
listen 8080;
server_name a.com;
location / {
proxy_pass http://127.0.0.1:8888;
}
@mobileben
mobileben / build-freetype-ios.sh
Last active October 5, 2024 06:52
Freetype 2 iOS Build Script
#!/bin/bash
#
# Filename: build-freetype-ios.sh
# Author: Benjamin Lee
# Copyright: (c) Copyright 2018 2n Productions
# License: MIT
#
# Copyright (c) 2017-2018 2n Productions
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
@athos
athos / deps.edn
Last active June 2, 2024 08:57
Try on your terminal `clojure -Sdeps '{:deps {hello-clojure/hello-clojure {:git/url "https://gist.github.com/athos/b68b15b08efedffaf14d8c020b125202" :git/sha "099bdf7d565b2c35c1df601abf58514cc5276237"}}}' -M -m hello-clojure`
{:paths ["."]
:deps {clansi/clansi {:mvn/version "1.0.0"}}}
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active July 14, 2025 06:05
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux