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
Created May 5, 2022 23:58
Reset forgotten Flipper Zero PIN

Reset Forgotten FZ PIN

:: Last updated May 5th 2022. ::

First method

  • Plug your device in to a PC and open qFlipper.
  • On the device, hold LEFT and BACK simultaneously for 2 seconds.
  • Release BACK first, then wait until the LED becomes blue to release LEFT.
  • In qFlipper settings (Wrench icon), set Firmware Update Channel to "Development."
  • If you see a blue "REPAIR" button and the text "Dev XXXXXXXX" (With X being a random character) click the repair button.
  • Accept the confirmation prompt.
@zit0un
zit0un / GeoJSON-OAS3.yaml
Last active November 15, 2024 13:17
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 July 10, 2024 01:14
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 August 30, 2024 04:55
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 November 16, 2024 22:55
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