Skip to content

Instantly share code, notes, and snippets.

View SwiftWinds's full-sized avatar
focusing

Mateo Wang SwiftWinds

focusing
View GitHub Profile
@0xallie
0xallie / checkm8_downgrade.md
Last active February 2, 2024 08:47
Guide for downgrading checkm8 devices
@gwerbin
gwerbin / conda_env_export.py
Last active March 6, 2024 06:23
Export a Conda environment with --from-history, but also append Pip-installed dependencies
"""
Export a Conda environment with --from-history, but also append
Pip-installed dependencies
Exports only manually-installed dependencies, excluding build versions, but
including Pip-installed dependencies.
Lots of issues requesting this functionality in the Conda issue tracker,
e.g. https://github.com/conda/conda/issues/9628
@Lessica
Lessica / build-idevicerestore.sh
Last active January 16, 2024 13:30
Build script for idevicerestore and all its dependencies for macOS.
#!/bin/sh
# Tested on macOS 12.0 / Xcode 13.3 / Homebrew 3.4.6-60-ge1c1157
# yum install python python-devel
# echo '[group_kdesig-cmake3_EPEL]
# name=Copr repo for cmake3_EPEL owned by @kdesig
# baseurl=https://copr-be.cloud.fedoraproject.org/results/@kdesig/cmake3_EPEL/epel-7-$basearch/
# type=rpm-md
# skip_if_unavailable=True
# gpgcheck=1
@leodutra
leodutra / -setup-windows-wsl-devenv.md
Last active May 23, 2024 02:13
Install and Setup Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

Setup Windows Subsystem 2 for Linux

Windows Subsystem 2 for Linux, Hyper, ZSH + Oh My Zsh + Powerlevel9k + plugins, FNM + VSCode (+ext) and Nerd Font

To setup native Linux, see this gist

Preview

Requirements

@barryblando
barryblando / .eslintrc
Last active September 26, 2020 13:35
VSCode Setup Prettier + ESLint + StyleLint for React
{
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
@croxton
croxton / cloudinary_reponsive_background_cover_img
Last active November 1, 2019 10:36
Responsive background cover images with Cloudinary & jQuery, fetched on the fly
HTML:
<header id="js-cover" class="cover">
<!-- Optionally specify image width stoppoints to reduce the maximum possible no of transforms per image -->
<!-- The appropriate image resolution will automatically be loaded -->
<img
data-stoppoints="480,768,1200"
data-src="http://res.cloudinary.com/<your account name>/image/fetch/w_auto,dpr_auto/http://<your full img url>"
class="cld-responsive cover-img" id="js-cover-img">