Skip to content

Instantly share code, notes, and snippets.

View calebccff's full-sized avatar
🏳️‍🌈

Caleb Connolly calebccff

🏳️‍🌈
View GitHub Profile
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@calebccff
calebccff / nohappinessincolors.json
Created April 1, 2019 20:12
Cusotm nohappinessincolors theme for vscode
{
"type": "dark",
"colors": {
"focusBorder": "#666666",
"activityBar.background": "#161616",
"activityBar.dropBackground": "#121212",
"activityBar.foreground": "#444444",
"activityBarBadge.background": "#666666",
"activityBarBadge.foreground": "#aaaaaa",
"badge.foreground": "#888888",
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_
#define SYSTEM_API_DBUS_UPDATE_ENGINE_DBUS_CONSTANTS_H_
namespace update_engine {
const char kUpdateEngineInterface[] = "org.chromium.UpdateEngineInterface";
const char kUpdateEngineServicePath[] = "/org/chromium/UpdateEngine";
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored _approximate
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' format '%d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-suffixes true
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*'
zstyle ':completion:*' max-errors 2
This file has been truncated, but you can view the full file.
[ 2259.596622] PM: suspend entry 2020-02-19 22:16:05.074208993 UTC
[ 2259.596636] PM: Syncing filesystems ... done.
[ 2259.608894] Freezing user space processes ...
[ 2259.609611] QSEECOM: qseecom_receive_req: Interrupted: exiting Listener Service = 11
[ 2259.609637] QSEECOM: qseecom_receive_req: Interrupted: exiting Listener Service = 28672
[ 2259.609655] QSEECOM: qseecom_receive_req: Interrupted: exiting Listener Service = 36864
[ 2259.609691] QSEECOM: qseecom_receive_req: Interrupted: exiting Listener Service = 4352
[ 2259.609726] QSEECOM: qseecom_receive_req: Interrupted: exiting Listener Service = 12288
[ 2259.609755] QSEECOM: qseecom_receive_req: Interrupted: exiting Listener Service = 10
[ 2259.611569] QSEECOM: qseecom_receive_req: Interrupted: exiting Listener Service = 45056
@calebccff
calebccff / mainline.md
Last active June 30, 2020 20:57
pmOS Mainline Building for oneplus sdm845

This gist it deprecated and may be outdated, latest instructions are on the wiki

pmbootstrap init pick oneplus -> enchilada/fajita. Pick any WM/DE you like, the following have been tested and are functional.

  • Gnome
  • Plasma Mobile - unstable, can sometimes crash out and reboot to crashdump mode
  • Plasma desktop
  • Phosh (fix scaling by setting scale=3 in /etc/phoc/phosh.ini)
  • Mate
  • Weston
@calebccff
calebccff / bandcamp-multidl.sh
Last active May 19, 2020 13:45
Download all albums for an artist from bandcamp using bandcamp-dl
#!/bin/bash
# bandcamp-multidl.sh URL [DESTINATION]
if [ -z $1 ]; then
echo "No URL specified"
exit 1
fi
if [ ! which bandcamp-dl ]; then
@calebccff
calebccff / creategadget.sh
Created May 24, 2020 20:29
create a USB gadget using configfs
#!/bin/sh
# Originally from: https://gitlab.com/postmarketOS/pmaports/-/blob/master/main/postmarketos-mkinitfs/init_functions.sh#L264
# See: https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt
mkdir -p /config
mount none -t configfs /config
CONFIGFS=/config/usb_gadget
@calebccff
calebccff / mkbootimg.sh
Created May 25, 2020 00:48
Run in a kernel source tree to make a boot image from a mainline kernel (assume $HOME/pmos exists be default)
#!/bin/bash
OUT="$HOME/pmos/mainline-boot.img"
DTB="$PWD/.output/arch/arm64/boot/dts/qcom/sdm845-oneplus-enchilada.dtb"
IMAGE="$PWD/.output/arch/arm64/boot/Image.gz"
THIS="$(basename $0)"
die() {
echo $1 1>&2
@calebccff
calebccff / broken_oneplus.md
Last active July 20, 2020 20:09
A table of instances where a oneplus 6/t becomes soft bricked after flashing something custom. Please comment if this happens to you with details and your exact device model number.
Name Model Attempted to flash Slot Symptoms
Fajita A6013 Halium a Device would not turn on at all, booted into QCOM mode to recovery mode.