Skip to content

Instantly share code, notes, and snippets.

View Stanley00's full-sized avatar

Stanley00 Stanley00

View GitHub Profile
@Stanley00
Stanley00 / bcm_iton.c
Created June 22, 2023 05:46 — forked from dexter93/bcm_iton.c
Shaping it up
/*
Copyright 2021 Dimitris Mantzouranis <d3xter93@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
000(023Rb|001Rb)
001(017La|002Rb)
002(021La|003Rb)
003(021La|004La)
004(009Rb|005Lb)
005(004Ra|005La)
006(008La|007La)
007(009Rb|007La)
008(009Ra|008La)
009(010Ra|026Ra)
#!/bin/sh
# /etc/init.d/S90adb
#
# Start mass_storage....
#
case "$1" in
start)
echo "Starting mass_storage..."
if [ -d /sys/class/android_usb/android0 ]
@Stanley00
Stanley00 / channel_url
Created December 26, 2015 14:59
Ubuntu Touch image selective mirror
http://system-image.ubuntu.com/ubuntu-touch/stable/ubuntu-developer/vegetahd/
http://system-image.ubuntu.com/ubuntu-touch/stable/bq-aquaris.en/vegetahd/
http://system-image.ubuntu.com/ubuntu-touch/devel-proposed/ubuntu/vegetahd/
http://system-image.ubuntu.com/ubuntu-touch/rc-proposed/ubuntu/vegetahd/
# $Id: PKGBUILD 60970 2011-12-19 21:33:58Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Dag Odenhall <dag.odenhall@gmail.com>
# Contributor: Grigorios Bouzakis <grbzks@gmail.com>
pkgname=dwm
pkgver=6.0
pkgrel=100
pkgdesc="A dynamic window manager for X"
url="http://dwm.suckless.org"
@Stanley00
Stanley00 / C-builtin-defer.c
Last active January 15, 2024 10:26
C++ small code snip
#include <stdio.h>
#include <stdlib.h>
#define DECLARE(...) for(__VA_ARGS__
#define DECLARE_CHECK(...) __VA_ARGS__
#define DEFER(...) __VA_ARGS__)
#define DEFER_BREAK continue
int main(void)
{
import re
import shutil
import argparse
from os import path
from sys import stderr
#
# Author: Daxda
# Date: 02.04.2014
# WTF: This is a quick tool I've hacked together to easily remove the meta