Skip to content

Instantly share code, notes, and snippets.

View samueldr's full-sized avatar
🔧
Doing a lot

Samuel Dionne-Riel samueldr

🔧
Doing a lot
View GitHub Profile
{ pkgs ? import <nixpkgs> {} }:
let
candyCrisis =
{ stdenv
, writeText
, runtimeShell
, fetchFromGitHub
, cmake
, SDL2
{ pkgs ? import <nixpkgs> {} }:
let
gameBuilder =
{ stdenv
, runtimeShell
, fetchFromGitHub
, cmake
, SDL2
@samueldr
samueldr / dtc-static.nix
Created June 21, 2022 20:33
static dtc for armv7l
#
# Dirty override to compile a static dtc binary for armv7l
#
# $ git rev-parse HEAD
# 0d68d7c857fe301d49cdcd56130e0beea4ecd5aa
# $ nix-build -I nixpkgs=./. ./dtc-static.nix
#
{ pkgs ? import <nixpkgs> { } }:
pkgs.pkgsCross.armv7l-hf-multiplatform.pkgsStatic.dtc.overrideAttrs (_: {

ZTE Cymbal 2 (8GB) Z2335L Notes

(zte-campbell)

With all those hapazard notes, it can't be a good Android experience. It requires hacks that the OEM put everywhere in the system for it to operate in a barely passable manner.

And uh, why did I get this? Because I hoped the bootloader would be unlockable and I could install Mobile NixOS. Sadly ZTE on many of their phones disables anything fancy with the bootloader. That's just not good.

I'm not sure it applies to other "feature phones" from ZTE, or any other vendors, but at least here you can install Android apps. But to do so you will need some way or another to install apps that is not the built-in apk installer. E.g. adb install will work. So the steps are

Evals report

Report built at 2020-02-19 00:02:39 UTC

Built for evals:


@samueldr
samueldr / google-walleye.fastboot.partitions
Created February 18, 2020 06:52
google-walleye: fastboot getvar all 2>&1 | grep ' partition'
~ $ fastboot getvar all 2>&1 | grep ' partition'
(bootloader) partition-type:userdata:ext4
(bootloader) partition-size:userdata: 0xD49BFB000
(bootloader) partition-type:vendor_b:ext4
(bootloader) partition-size:vendor_b: 0x1F400000
(bootloader) partition-type:vendor_a:ext4
(bootloader) partition-size:vendor_a: 0x1F400000
(bootloader) partition-type:system_b:ext4
(bootloader) partition-size:system_b: 0xA0000000
(bootloader) partition-type:system_a:ext4
@samueldr
samueldr / whats-the-holdup
Last active August 11, 2019 01:49
Simple script to find out what's holding a store path alive
#!/usr/bin/env nix-shell
#!nix-shell -p nix -p ruby_2_6 -i ruby
require "open3"
require "shellwords"
def usage
puts "Usage: whats-the-holdup [-m|--with-memory] <path>"
end
@samueldr
samueldr / gist:9a031a79a448794b6d038bce7e293e88
Created June 28, 2019 13:26
Jobset nixos:trunk-combined 2019-06-28 08:22:57 UTC
hydra-eval-jobs returned signal 9:
GC Warning: Repeated allocation of very large block (appr. size 245760):
May lead to memory leak and poor performance
trace: Default desktop manager (gnome-xorg) not found at evaluation time.
These are the known valid session names:
services.xserver.desktopManager.default = "xterm";
services.xserver.desktopManager.default = "none";
It's also possible the default can be found in one of these packages:
gnome-session-3.32.0
@samueldr
samueldr / gist:748657ebb234c675de92c22181651f74
Created June 19, 2019 22:37
Jobset nixos:trunk-combined Errors occurred at 2019-06-19 07:42:19.
Errors occurred at 2019-06-19 07:42:19.
Adjusted to local time (-04:00)
Other timezones:
UTC: 2019-06-19 11:42:19
As Hydra reported: 2019-06-19 13:42:19 (CEST)
hydra-eval-jobs returned signal 134:
trace: Default desktop manager (gnome-xorg) not found at evaluation time.
These are the known valid session names:
@samueldr
samueldr / gist:fa3552b412086259a5764d7ef098b9c0
Created April 16, 2019 16:15
nixos:trunk-combined - 2019-04-16 05:16:43
<time datetime="2019-04-16T05:16:43Z" title="Adjusted to local time (-04:00)
Other timezones:
UTC: 2019-04-16 05:16:43
As Hydra reported: 2019-04-16 07:16:43 (CEST)" data-timestamp="1555391803" class="date is-absolute is-local">2019-04-16 01:16:43</time>
hydra-eval-jobs returned exit code 99:
trace: Default desktop manager (gnome-xorg) not found at evaluation time.
These are the known valid session names:
services.xserver.desktopManager.default = "xterm";
services.xserver.desktopManager.default = "none";