Skip to content

Instantly share code, notes, and snippets.

View orangecms's full-sized avatar
🐢
Hack the planet!

Daniel Maslowski orangecms

🐢
Hack the planet!
View GitHub Profile
@orangecms
orangecms / .hyper.js
Created August 21, 2017 08:34
Hyper config
// Future versions of Hyper may add additional config options,
// which will not automatically be merged into this file.
// See https://hyper.is#cfg for all currently supported options.
module.exports = {
config: {
// default font size in pixels for all tabs
fontSize: 12,
// font family with optional fallbacks
@orangecms
orangecms / docker-clean
Created October 20, 2017 12:40
Workaround for the pointless crap Docker leaves behind to bloat up your disk
#!/bin/bash
## see https://lebkowski.name/docker-volumes/
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi
# Porting coreboot to a Haswell / Lynx Point laptop: GIGABYTE P34V2
## autoport
### patch coreboot repo for LynxPoint support in autoport
https://review.coreboot.org/c/coreboot/+/30890
`git fetch https://review.coreboot.org/coreboot refs/changes/90/30890/2 && git cherry-pick FETCH_HEAD`
https://review.coreboot.org/c/coreboot/+/31759
`git fetch https://review.coreboot.org/coreboot refs/changes/59/31759/2 && git cherry-pick FETCH_HEAD`
@orangecms
orangecms / coreboot-p34v2.md
Last active April 22, 2025 04:03
Porting guide for coreboot: GIGABYTE P34G v2 / Schenker XMG C404

Porting coreboot to a Haswell / Lynx Point laptop: GIGABYTE P34G v2

This mainboard was sold by Schenker XMG as C404, while the original model name by GIGABYTE is P34G v2.

The board schematics are not publicly available. However, from another laptop board's schematics, we can learn a bit about the components it should have: laptop mainboard schematics

autoport

# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGO_VENDOR=(
"github.com/go-xorm/builder 1d658d7596c25394aab557ef5b50ef35bf706384"
"github.com/go-xorm/core ccc80c1"
"github.com/go-xorm/xorm 1f39c59"
"github.com/gorilla/context 08b5f42"
@orangecms
orangecms / notes.md
Last active February 27, 2020 19:39
elitebook-2530p

board name: Compal_LA-4021p

SPI flash chip: 4096 KB AT25DF321

KBC fw

see util/kbc1126

@orangecms
orangecms / laptops.md
Last active July 26, 2020 06:59
laptops I have

laptops I have

AMD

  • Toshiba Satellite A210-15Y
  • MSI M670

Intel

  • TUXEDO BU1406 (Clevo N240BU, HM170 / Sunrise Point / Kaby Lake-U)
  • XMG C404 (Gigabyte P34V2, Lynx Point / Haswell)
  • T-bao Tbook Pro (C116C Rev21 / Z8350, like Hometech h14x or Digimate DGM L-141QH)
@orangecms
orangecms / golang-project.sh
Created September 28, 2019 12:53
Go (golang) project fix
git clone .../my-project
mkdir -p .go/src/
cd .go/src
ln -s ../../my-project .
cd my-project
vim ...
GOPATH=$(pwd)/.. build my-project/cmd/foo
@orangecms
orangecms / chuck-norris.sh
Created October 7, 2019 20:18
Chuck Norris Joke
#!/bin/sh
# requirements: google_speech, jq, curl, sed
URL=https://api.chucknorris.io/jokes/random
JSON_PATH='.value'
curl -s "$URL" | \
jq "$JSON_PATH" | \
sed "s/'//g" | \
[ 0.000000] Linux version 4.14.162 (cyrevolt@orangetux) (gcc version 9.2.0 (Gentoo Hardened 9.2.0-r2 p3)) #11 SMP PREEMPT Wed Jan 8 20:16:25 CET 2020
[ 0.000000] Command line: console=ttyS0 vga=786 memmap=4G!4G
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved