Skip to content

Instantly share code, notes, and snippets.

@sparkstar
sparkstar / .config
Last active October 21, 2023 08:54
jammy-stable-v5.15.129
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 5.15.129 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=110400
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=23800
@sparkstar
sparkstar / .config
Last active November 9, 2022 10:56
[odroid-u2] jammy kernel flag
# kernel jammy-v5.15.74
# -----------------------------------------------------------------------------
# ./check-config.sh
# warning: /proc/config.gz does not exist, searching other paths for kernel config ...
# info: reading kernel config from ./.config ...
#
# Generally Necessary:
# - cgroup hierarchy: cgroupv2
# Controllers:
# - cpu: available
@sparkstar
sparkstar / latest.sh
Created January 21, 2019 09:36
get latest releases version(tag) from github repository
#!/bin/sh
# get latest releases version(tag) from github repository
# $ ./latest.sh neovim/neovim
# v0.3.4
# $ ./latest.sh tus/tusd
# 0.11.0
curl --silent "https://api.github.com/repos/$1/releases/latest" | grep "tag_name" | sed -E 's/.*\:\s\"(.*)\",*/\1/'
@sparkstar
sparkstar / python_basic_script.py
Created July 25, 2014 18:01
basic template of python script from 'How to Write "Pythonic" Code'
#!/usr/bin/env python
# examples/script-template.py
def main(args):
if not args:
print "Usage: foo ARG1 [ARG2...]"
return 2
return 0
@sparkstar
sparkstar / random_image_generator.py
Last active January 16, 2023 19:19
[python] random image generator
"""
20180828 code fixed
$ pip freeze
numpy==1.15.1
Pillow==5.2.0
pkg-resources==0.0.0
"""