Skip to content

Instantly share code, notes, and snippets.

View MarlonJD's full-sized avatar

Burak Karahan MarlonJD

  • Izmir, Turkey
View GitHub Profile
for d in packages/*/; do git rm --cached $d/.flutter-plugins; done
for d in packages/*/; do git rm --cached $d/.flutter-plugins-dependencies; done
import aioble
import uasyncio as asyncio
import bluetooth
from struct import unpack
from binascii import hexlify
from micropython import const
import sys
import network
import time
import urequests
@MarlonJD
MarlonJD / 00_README.md
Created March 5, 2023 12:10 — forked from LeZuse/00_README.md
Install node on Apple Silicon M1 both ARM and x86 (Rosetta)

Node.js on Apple Silicon

Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.

TODO

  • find a way how to run the same node version on both platforms
curl -i LINK -d 'DATA' -X POST -H "Content-Type: application/json"
@MarlonJD
MarlonJD / gist:d38cda46fa53e3074dd8e780ac0b6fa5
Last active November 12, 2022 10:27
fast build for cocaopods
pod install --repo-update && rugby --sdk ios --arch arm64 --keep-sources
pod install --repo-update && rugby --config Release --sdk ios --keep-sources
@MarlonJD
MarlonJD / hide-emacs-backup-and-autosave-files-on-macos
Created February 16, 2022 11:31
Hide emacs backup and autosave files on macos
find $HOME/dev/web/* -type f -name '#*#' -exec chflags hidden '{}' ';'
find $HOME/dev/web/* -type f -name '*~' -exec chflags hidden '{}' ';'
@MarlonJD
MarlonJD / django-core-serializers-json.py
Created February 6, 2022 01:34
Huge amount of loaddata
"""
Serialize data to/from JSON
"""
import datetime
import decimal
import json
import uuid
from django.core.serializers.base import DeserializationError
for dir in .; do
git -C "$dir" ls-files | perl -pe "s[^][$dir/]"
done | zip ./test.zip -@
@MarlonJD
MarlonJD / fluttercleanrecursive.sh
Created December 22, 2021 17:11 — forked from jeroen-meijer/fluttercleanrecursive.sh
Flutter Clean Recursive - Clear up space on your hard drive by cleaning your Flutter projects. This script searches for all Flutter projects in this directory and all subdirectories and runs 'flutter clean'. Note: may take a long time for folders with large amounts of projects.
#!/bin/sh
# To run, download the script or copy the code to a '.sh' file (for example 'fluttercleanrecursive.sh') and run like any other script:
# sh ./fluttercleanrecursive.sh
# or
# sudo sh fluttercleanrecursive.sh
echo "Flutter Clean Recursive (by jeroen-meijer on GitHub Gist)"
echo "Looking for projects... (may take a while)"
tree -I '__pycache__|*test*|venv|*.*~|static|media'