Skip to content

Instantly share code, notes, and snippets.

Avatar

Masanori Ogino omasanori

  • Japan, or anywhere else
View GitHub Profile
View gist:c1da433406807255f9aa835d72976470
wpa_supplicant -B -i interface -c <(wpa_passphrase 'SSID' 'key').
ping 1.1.1.1
parted /dev/nvme0n1 -- mklabel gpt
parted /dev/nvme0n1 -- mkpart primary 512MiB -0
parted /dev/nvme0n1 -- mkpart ESP fat32 1MiB 512MiB
parted /dev/nvme0n1 -- set 2 esp on
cryptsetup luksFormat /dev/nvme0n1p1
View broadwell_breakdown.md

https://review.coreboot.org/c/coreboot/+/46943 cpu/intel/Makefile.inc: Use correct Kconfig symbols https://review.coreboot.org/c/coreboot/+/46977 sb/intel/lynxpoint: Use common code to generate HPET table https://review.coreboot.org/c/coreboot/+/46719 sb/intel/lynxpoint: Drop unnecessary 'UL' suffix https://review.coreboot.org/c/coreboot/+/46720 {cpu,nb}/intel/haswell: Drop unnecessary 'UL' suffix https://review.coreboot.org/c/coreboot/+/46725 sb/intel/lynxpoint/lpc.c: Simplify PM init sequence https://review.coreboot.org/c/coreboot/+/46726 sb/intel/lynxpoint: Align with Broadwell https://review.coreboot.org/c/coreboot/+/46727 azalia: Treat all negative return values as errors https://review.coreboot.org/c/coreboot/+/46728 azalia: Use 'HDA_GCTL_CRST' macro as unset-mask https://review.coreboot.org/c/coreboot/+/46734 Revert "broadwell: Switch to using common ACPI _SWS code" https://review.coreboot.org/c/coreboot/+/46732 soc/intel/broadwell/gma.c: Align struct with Haswell

View Pixiv Fanbox Downloader.js
// ==UserScript==
// @name Pixiv Fanbox Downloader
// @version 0.9
// @description Download Pixiv Fanbox images and files.
// @icon https://www.fanbox.cc/favicon.ico
// @author Mike Lei
// @match https://*.fanbox.cc/*
// @require https://code.jquery.com/jquery-3.5.1.slim.min.js#sha256=4+XzXVhsDmqanXGHaHvgh1gMQKX40OUvDEBTu8JcmNs=
// @grant GM_download
// ==/UserScript==
@kesor
kesor / Dockerfile
Last active Jul 29, 2022
Compile DENO on Alpine (w/MUSL C)
View Dockerfile
FROM rust:alpine
RUN apk add --no-cache \
bash \
binutils-gold \
ca-certificates \
clang \
curl \
g++ \
git \
View webrtc_now.rst
@unarist
unarist / mastodon-hide-private.user.css
Created Jan 1, 2019
Mastodon - Hide private posts
View mastodon-hide-private.user.css
/* ==UserStyle==
@name Mastodon - Hide private posts
@namespace github.com/unarist
@version 1.0.0
@description Hide private posts from timeline
@author unarist
==/UserStyle== */
@-moz-document regexp("^https://[^/]+/web/.*") {
/* :not(.muted) filters notification */
@kazuho
kazuho / git-blame-pr.pl
Last active Jun 28, 2022
git-blame by PR #
View git-blame-pr.pl
#! /usr/bin/perl
#
# Written in 2017 by Kazuho Oku
#
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.
#
use strict;
use warnings;
@ArthurHeymans
ArthurHeymans / coreboot_x60.md
Last active Apr 4, 2021
How to flash coreboot properly on Thinkpad X60
View coreboot_x60.md

How to flash coreboot to the thinkpad x60 the proper way

-> https://blog.aheymans.xyz/old-how-to-flash-coreboot-to-the-thinkpad-x60-the-proper-way/ is more up to date

What is so special about the x60 when running vendor bios?

Vendor BIOS write protects its bootblock, which means the lowest 64K of the flash can't be modified

This is a problem since the first code that runs on the CPU comes from there and if we ever want to run coreboot the cpu must start with coreboot code. This write protection is set in the PBR (protect bios range) registers on the southbridge, there is currently no known way to change them back once they are locked by setting the SPI Configuration Lock-Down bit.

View commonssids.txt
ssid
xfinitywifi
linksys
<no ssid>
BTWiFi-with-FON
NETGEAR
Ziggo
dlink
BTWifi-X
default
@martijnvermaat
martijnvermaat / nixos.md
Last active Jul 22, 2022
Installation of NixOS with encrypted root
View nixos.md