Skip to content

Instantly share code, notes, and snippets.

View MarlonJD's full-sized avatar

Burak Karahan MarlonJD

  • Izmir, Turkey
  • 18:19 (UTC +03:00)
View GitHub Profile
@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
@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 / 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
curl -i LINK -d 'DATA' -X POST -H "Content-Type: application/json"
@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
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
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