Skip to content

Instantly share code, notes, and snippets.

View linuxipho's full-sized avatar

Rémi de Chazelles linuxipho

  • Montpellier
View GitHub Profile
@vijaywm
vijaywm / frappe-reference-guide.md
Last active August 27, 2025 14:30
Frappe Reference Guide
@rossant
rossant / parallel_write.py
Created August 30, 2019 15:04
Write a NumPy array in parallel from multiple CPUs/processes, using shared memory. No copy/serialization involved. Pure Python/NumPy.
"""Write a NumPy array in parallel from multiple CPUs/processes, using shared memory."""
from contextlib import closing
import multiprocessing as mp
import os
import numpy as np
def _init(shared_arr_):
@hjbotha
hjbotha / free_ports.sh
Last active October 9, 2025 03:02
Free ports 80 and 443 on Synology NAS
#! /bin/bash
# NEWLY ADDED BACKUP FUNCTIONALITY IS NOT FULLY TESTED YET, USE WITH CARE, ESPECIALLY DELETION
# Developed for DSM 6 - 7.0.1. Not tested on other versions.
# Steps to install
# Save this script in one of your shares
# Edit it according to your requirements
# Backup /usr/syno/share/nginx/ as follows:
# # cd /usr/syno/share/
# # tar cvf ~/nginx.tar nginx
@zatarra
zatarra / esp8266_relays.py
Created July 18, 2016 15:27
ESP8266 Relay controller using MicroPython
import machine
import socket
import ure
RELAYS = [machine.Pin(i, machine.Pin.OUT) for i in (12, 13, 14, 15)]
def getPinStatus():
return RELAYS
def setPin(pin, value):
@gabrielemariotti
gabrielemariotti / Readme.md
Last active August 5, 2025 08:11
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example:

@digitaljhelms
digitaljhelms / gist:4287848
Last active September 22, 2025 15:07
Git/GitHub branching standards & conventions

Branching

Quick Legend

Description, Instructions, Notes
Instance Branch