Skip to content

Instantly share code, notes, and snippets.

View player999's full-sized avatar
📻
Never stop

Taras Zakharchenko player999

📻
Never stop
View GitHub Profile
@player999
player999 / prepare_bej_decoder_test_data.md
Last active June 22, 2023 18:47
Preparing testing data for BEJ decoder

Install dependencies

python -m pip install lxml
python -m pip install tabulate

Get dictionaries from DMTF website

Use URL to get dictionaries. Use URL to get dictionary tools.

@player999
player999 / make_initrd.sh
Created May 25, 2021 17:15
Prepare initramfs for Hikvision
#!/bin/bash
dd if=/dev/zero of=tmp.ext2 bs=1M count=16
mkfs.ext2 ./tmp.ext2
mkdir -p tmp_mp
sudo mount ./tmp.ext2 ./tmp_mp
sudo cp -rf fs/* ./tmp_mp
sudo umount ./tmp_mp
rm -r ./tmp_mp
gzip ./tmp.ext2
mkimage -A arm -O Linux -T ramdisk -C gzip -n ramdisk_1.0.28_ubuntu -d ./tmp.ext2.gz test_initrd.gz
@player999
player999 / raspberrypi4_notes.txt
Created March 27, 2021 10:34 — forked from eric100lin/raspberrypi4_notes.txt
Build raspberrypi4 image from Yocto Project
* Yocto Project Quick Build
https://www.yoctoproject.org/docs/2.7.1/brief-yoctoprojectqs/brief-yoctoprojectqs.html
* meta-raspberrypi
http://git.yoctoproject.org/cgit.cgi/meta-raspberrypi/about/?h=warrior
* Building Raspberry Pi Systems with Yocto
https://jumpnowtek.com/rpi/Raspberry-Pi-Systems-with-Yocto.html
* coldnew.github.io:
https://coldnew.github.io/c3e8558e/
https://coldnew.github.io/64f655a5/
* Useful bitbake commands
@player999
player999 / Creality CR-20 Pro.fff
Created December 23, 2020 21:25 — forked from jrlucier/Creality CR-20 Pro.fff
Creality CR-20 PRO Simplify3d Configuration
<?xml version="1.0"?>
<profile name="Creality CR-20 Pro" version="2018-01-19 08:00:00" app="S3D-Software 4.0.0">
<baseProfile></baseProfile>
<printMaterial>PLA</printMaterial>
<printQuality>Medium</printQuality>
<printExtruders></printExtruders>
<extruder name="Primary Extruder">
<toolheadNumber>0</toolheadNumber>
<diameter>0.4</diameter>
<autoWidth>0</autoWidth>
/*
* include/linker_lists.h
*
* Implementation of linker-generated arrays
*
* Copyright (C) 2012 Marek Vasut <marex@denx.de>
*
* SPDX-License-Identifier: GPL-2.0+
*/
#!/usr/bin/python3
from functools import partial,reduce
T = 1
F = 0
def CheckArgs(*args):
for entry in args:
if type(entry) is not Elem:
raise Exception("Wrong arguments! Type: %s"%type(entry))
@player999
player999 / Kernel 3.17config
Created September 5, 2014 16:15
Kernel 3.17 from rocketboards for DE1-SoC serial console
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.17.0-rc2 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_ARM_HAS_SG_CHAIN=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y

Keybase proof

I hereby claim:

  • I am player999 on github.
  • I am taras (https://keybase.io/taras) on keybase.
  • I have a public key whose fingerprint is 5DA4 604C 062D 41A8 DB63 9C86 319D 8742 DAA5 0A7B

To claim this, I am signing this object: