Skip to content

Instantly share code, notes, and snippets.


Max Filippov jcmvbkbc

  • Fremont, CA
View GitHub Profile
View gist:a7de72e719c619ac82b3da8b1eedb5de
// ==UserScript==
// @name drop lj promo
// @namespace jcmvbkbc
// @include https://**
// @include
// @version 1
// @run-at document-idle
// @grant none
// ==/UserScript==
jcmvbkbc /
Created Jul 11, 2018
android kernel/emulator tools
#! /bin/bash -ex
# VER=3.18|4.4|4.9 ./rebuild-kernels
declare -A defconfig
declare -A cross
defconfig=([arm64]="ranchu64_defconfig" [x86_64]="x86_64_ranchu_defconfig")
cross=([arm64]="aarch64-linux-gnu-" [x86_64]="x86_64-linux-gnu-")
for check in 0 1 ; do
jcmvbkbc / fix-repo-version
Created May 10, 2018
Script for repo project version fixing ( repo forall -c fix-repo-version `pwd`/.repo/manifests/default.xml )
View fix-repo-version
#! /bin/bash -ex
if [ $# -gt 0 ] ; then name="$1"
else name=".repo/manifests/default.xml" ; fi
sed -i "$name" -e "\\,name=\"$REPO_PROJECT\",s, *revision=\"[^\"]*\",,g"
sed -i "$name" -e "\\,name=\"$REPO_PROJECT\",s,/>,revision=\"$REPO_LREV\" />,g"
include $(srcdir)/
View sintables.c
#include <inttypes.h>
#include <math.h>
#include <unistd.h>
#include <stdio.h>
#ifndef FREQ
#define FREQ 44100
#ifndef CHANNELS
View irq_check.s
.asciz ">>> 0x%08x -> 0x%08x: called from IRQ (or with interrupts disabled)\n"
.global _mcount
.align 4
.align 4
movi a11, 0x40200000
jcmvbkbc / Makefile
Last active May 23, 2019
Makefile for ESP8266 that can build both C and C++
View Makefile
# tnx to mamalala
# Changelog
# Changed the variables to include the header file directory
# Added global var for the XTENSA tool root
# This make file still needs some work.
# Updated for SDK 0.9.2
# Output directors to store intermediate compiled files
jcmvbkbc / dhcpd.conf
Created Sep 26, 2014
gpxelinux config files
View dhcpd.conf
ddns-update-style interim;
ignore client-updates;
subnet netmask {
option routers;
option subnet-mask;
option domain-name-servers;
option ntp-servers;
jcmvbkbc / h.c
Last active Dec 13, 2018
Hanoi towers with unsorted source.
View h.c
#include <algorithm>
#include <cassert>
#include <climits>
#include <cstdio>
#include <deque>
typedef std::deque<int> stack;
void move_top1(stack& from, stack& to, stack& spare);
int top(const stack& o)
You can’t perform that action at this time.