Skip to content

Instantly share code, notes, and snippets.

Andrew Gunnerson chenxiaolong

Block or report user

Report or block chenxiaolong

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am chenxiaolong on github.
  • I am chenxiaolong (https://keybase.io/chenxiaolong) on keybase.
  • I have a public key ASAuhWiX_ruz6-jyBQxysq-9ADEOHQvXu9kDIL84QR5dLAo

To claim this, I am signing this object:

View Fedora_RPM_pesign.md

Building Fedora RPMs that use pesign

This guide describes how to build RPMs that use pesign. Pesign is used for signing PE/COFF EFI executables so that they can be used with UEFI secure boot. Enrolling DB or MOK keys and signing kernel modules is beyond the scope of this guide.

Preparation

  1. Install pesign.

    sudo dnf install pesign
@chenxiaolong
chenxiaolong / DellXPS15_9560_AHCI_RAID.md
Created Nov 27, 2017
Switching between AHCI and RAID on the Dell XPS 15 (9560)
View DellXPS15_9560_AHCI_RAID.md

Switching between AHCI and RAID on the Dell XPS 15 (9560)

This guide likely applies to other models and, potentially, even laptops from other OEMs that have NVME drives. However, I've only tested this on my Dell XPS 15 (9560) with the OEM Windows installation from the Signature Edition model.

Switching from RAID to AHCI

Switching from RAID to AHCI is significantly simpler than switching from AHCI to RAID. All that's needed is a successful boot to Safe Mode.

  1. To set the default boot mode to Safe Mode, use msconfig.exe or open an admin cmd/PowerShell window and run:
View google-dns-dnssec.md

Using Google DNS with DNSSEC:

[chenxiaolong@li598-247 ~]$ dig hkps.pool.sks-keyservers.net @8.8.8.8

; <<>> DiG 9.9.4-RedHat-9.9.4-50.el7_3.1 <<>> hkps.pool.sks-keyservers.net @8.8.8.8
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: SERVFAIL, id: 35367
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 1
View keybase.txt
### Keybase proof
I hereby claim:
* I am chenxiaolong on github.
* I am chenxiaolong (https://keybase.io/chenxiaolong) on keybase.
* I have a public key ASBLZM_C3WXfPQH8DghFSDn8xaAiAUAjtmxWutdL6EOZRgo
To claim this, I am signing this object:
@chenxiaolong
chenxiaolong / sinalaysis.cs
Created Feb 9, 2017 — forked from dosomder/sinalaysis.cs
Xperia SIN Structure analysis
View sinalaysis.cs
// ==========================================================
// Sony Xperia SIN (Firmware flashable files) analysis
//
// Author: zxz0O0
// Started: 2014-06-05
// Notes: Numbers are big endian
// Credits: Androxyde
// ==========================================================
struct SinFile
@chenxiaolong
chenxiaolong / build_attr_acl.sh
Created Nov 28, 2016
Build attr and acl for Android
View build_attr_acl.sh
#!/bin/bash
# Copyright (C) 2014-2016 Andrew Gunnerson <andrewgunnerson@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
View Segfault.java
public class Segfault {
public static void main(String[] args) {
System.out.println("Segmentation fault");
}
}
View gist:0e0b7113815cded833c1
[Unity-for-Arch-Utopic]
SigLevel = Optional TrustAll
Server = http://dl.dropbox.com/u/486665/Repos/$repo/$arch
[Unity-for-Arch]
SigLevel = Optional TrustAll
Server = http://dl.dropbox.com/u/486665/Repos/$repo/$arch
[Unity-for-Arch-Extra]
SigLevel = Optional TrustAll
View enable-unity.py
#!/usr/bin/python3
from gi.repository import Gio
SCHEMA = 'org.compiz.core'
PATH = '/org/compiz/profiles/unity/plugins/core/'
UNITY = 'unityshell'
KEY = 'active-plugins'
gsettings = Gio.Settings.new_with_path(SCHEMA, PATH)
You can’t perform that action at this time.