Skip to content

Instantly share code, notes, and snippets.

Dreamcat4 dreamcat4

Block or report user

Report or block dreamcat4

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 gist:066dccee3aab949799fa45c84a12bef7
[SublimePackageSync] Syncing all packages.
[SublimePackageSync] Done!
[ECC:DEBUG]:[tools.py]:[is_valid_view]:[Dummy-17]: view file_name is None
[ECC:DEBUG]:[settings_manager.py]:[settings_for_view]:[Dummy-17]: no settings for view 86. Reinitializing.
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-17]: Overriding settings by project ones if needed:
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-17]: Valid prefixes: ['ecc_', 'easy_clang_complete_']
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-17]: Reading settings...
[ECC:DEBUG]:[settings_storage.py]:[__load_vars_from_settings]:[Dummy-17]: Settings sucessfully read...
[ECC:INFO]:[tools.py]:[get_clang_version_str]:[Dummy-17]: Getting version from command: `clang++ -v`
[ECC:DEBUG]:[settings_storage.py]:[__populate_common_flags]:[Dummy-17]: Populating common_flags with current variables.
View zfs-failed-build.log.sh
id@asrock-z170-ocf:~/.dev/zfs$
id@asrock-z170-ocf:~/.dev/zfs$ ./autogen.sh
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I config
autoreconf: configure.ac: tracing
autoreconf: configure.ac: AM_GNU_GETTEXT is used, but not AM_GNU_GETTEXT_VERSION
autoreconf: running: libtoolize --copy --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
View zfs-build-fail.diff
diff --git a/zfs-1.build-success b/zfs-2.build-failed
index 8aa7bc7..ebe840c 100644
--- a/zfs-1.build-success
+++ b/zfs-2.build-failed
@@ -1,5 +1,5 @@
-[id:~/.dev/zfs] e34c3ee2f ±
-[id:~/.dev/zfs] e34c3ee2f ± ./autogen.sh
+id@asrock-z170-ocf:~/.dev/zfs$
+id@asrock-z170-ocf:~/.dev/zfs$ ./autogen.sh
autoreconf: Entering directory `.'
@dreamcat4
dreamcat4 / zfs-spl-0.7.9-0.7.12.patch
Created Jun 6, 2019
Fix zfs spl for building against kernel 5.1 on 0.7.x - reference: https://github.com/zfsonlinux/zfs/issues/8697
View zfs-spl-0.7.9-0.7.12.patch
diff -Naur a/include/linux/file_compat.h b/include/linux/file_compat.h
--- a/include/linux/file_compat.h 2018-05-08 21:37:01.000000000 +0100
+++ b/include/linux/file_compat.h 2019-06-06 22:40:44.873699894 +0100
@@ -81,7 +81,7 @@
ssize_t ret;
saved_fs = get_fs();
- set_fs(get_ds());
+ set_fs(KERNEL_DS);
@dreamcat4
dreamcat4 / tsysinfo-example-output.sh
Created Jun 5, 2019
Example output for tsysinfo ('Terse System Information')
View tsysinfo-example-output.sh
# the program can be found here:
# https://gist.github.com/dreamcat4/1010d224fee2402fb0d934bb0e281f0e
# tsysinfo platform
x86_64
# tsysinfo kernel
Linux 5.1.6-050106-lowlatency
# tsysinfo uptime
@dreamcat4
dreamcat4 / tsysinfo
Last active Jun 17, 2019
tsysinfo ('Terse System Information') - Report back on certain very basic but vital aspects of system health
View tsysinfo
#!/bin/bash
#
# tsysinfo v1.0.1 ('Terse System Information')
#
# Report back on certain very basic but vital aspects of system health
# Each as a really short one-liner, with maximum terseness / brevity
#
# Example Output:
#
# https://gist.github.com/dreamcat4/21b67ffe135546697b5411ceb26246f1
View dnsmasq-filter-aaaa.patch
From 966471712184cfb3b067f2ae8dad9d8e2a896cae Mon Sep 17 00:00:00 2001
From: Bearice Ren <bearice@icybear.net>
Date: Tue, 20 Sep 2016 11:52:08 +0800
Subject: [PATCH] add filter-aaaa option
---
src/dnsmasq.h | 3 ++-
src/option.c | 3 +++
src/rfc1035.c | 9 +++++++++
3 files changed, 14 insertions(+), 1 deletion(-)
@dreamcat4
dreamcat4 / update-boot2
Last active Jul 20, 2019
For luks zfs root pool on ubuntu. Patches for - dual disks, v1.04, for ubuntu 19.04+
View update-boot2
#!/bin/sh
#
# /usr/local/bin/update-boot2
#
# Summary:
#
# For luks zfs root pool on ubuntu. Patches for - dual disks, v1.04, for ubuntu 19.04+
#
# a) This patches initrd to remove certain error messages at boot time, that would otherwise
# interfere and prevent the system booting correctly.
View journalctl_-f.output.log
-- Logs begin at Wed 2018-12-26 17:06:49 GMT. --
May 15 09:21:20 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 31 ***
May 15 09:21:21 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 37 ***
May 15 09:21:22 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 48 ***
May 15 09:21:23 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 36 ***
May 15 09:21:24 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 33 ***
May 15 09:21:25 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 32 ***
May 15 09:21:26 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 34 ***
May 15 09:21:27 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 34 ***
May 15 09:21:28 apex budgie-wm.desktop[4299]: *** FPS for MetaStage: 32 ***
@dreamcat4
dreamcat4 / dell-perc-h310-how-to-flash.sh
Created Mar 8, 2019
how to flash LSI SAS 2008 hba dell perc h310 to lsi 8112-8i firmware p19 or p20
View dell-perc-h310-how-to-flash.sh
# ======
# how to flash LSI SAS 2008 hba dell perc h310 raid jbod card
# for uefi motherboards, must boot uefi and use sas2flash.efi
# select uefi in the moot menu --> launches boof.efi. then:
# official UEFI oprom downloads are now only available from the product page of lsi 8210-8i card
# however we found an un official mirror / off site backup of previous files
# https://www.broadcom.com/products/storage/host-bus-adapters/sas-9210-8i#downloads
You can’t perform that action at this time.