Skip to content

Instantly share code, notes, and snippets.

View hong-duc's full-sized avatar

Hong duc hong-duc

View GitHub Profile
@hong-duc
hong-duc / Xorg.0.log
Created August 21, 2018 01:37
[Manjaro Deepin] After a whole system update, the secondary monitor show black screen and I can only see the mouse
[ 4.444]
X.Org X Server 1.20.1
X Protocol Version 11, Revision 0
[ 4.444] Build Operating System: Linux Arch Linux
[ 4.444] Current Operating System: Linux hongduc-pc 4.17.17-1-MANJARO #1 SMP PREEMPT Sat Aug 18 14:38:10 UTC 2018 x86_64
[ 4.444] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.17-x86_64 root=UUID=dbb063aa-9a4d-4140-8984-9974992c553d rw quiet resume=UUID=c3230d08-b5d5-4637-9be1-8a5605c64086
[ 4.444] Build Date: 09 August 2018 06:37:34PM
[ 4.444]
[ 4.444] Current version of pixman: 0.34.0
[ 4.444] Before reporting problems, check http://wiki.x.org
Module Size Used by
xt_nat 12681 0
veth 13410 0
ipt_MASQUERADE 12678 1
nf_nat_masquerade_ipv4 13412 1 ipt_MASQUERADE
nf_conntrack_netlink 36354 0
nfnetlink 14490 1 nf_conntrack_netlink
iptable_nat 12875 1
nf_conntrack_ipv4 15053 2
nf_defrag_ipv4 12729 1 nf_conntrack_ipv4
MemTotal: 3881048 kB
MemFree: 139492 kB
MemAvailable: 292828 kB
Buffers: 0 kB
Cached: 485832 kB
SwapCached: 55552 kB
Active: 1383740 kB
Inactive: 687684 kB
Active(anon): 1191868 kB
Inactive(anon): 561716 kB
@hong-duc
hong-duc / slabtop.txt
Created June 30, 2018 10:13
slabtop -o -s c
Active / Total Objects (% used) : 374799 / 443836 (84.4%)
Active / Total Slabs (% used) : 16628 / 16628 (100.0%)
Active / Total Caches (% used) : 73 / 98 (74.5%)
Active / Total Size (% used) : 119024.31K / 137067.67K (86.8%)
Minimum / Average / Maximum Object : 0.01K / 0.31K / 8.00K
OBJS ACTIVE USE OBJ SIZE SLABS OBJ/SLAB CACHE SIZE NAME
48439 44205 91% 0.94K 2870 17 45920K xfs_inode
22688 17251 76% 0.50K 1418 16 11344K kmalloc-512
17304 15228 88% 0.57K 618 28 9888K radix_tree_node
@hong-duc
hong-duc / example.tsx
Created May 23, 2018 01:58
Why my Router.push not do Client-side transitions
import * as React from 'react'
import { connect } from 'react-redux'
import * as FontAwesome from 'react-fontawesome'
import Router from 'next/router'
import ManageTemplatesTable from './ManageTemplatesTable'
import {
getTemplates,
deleteTemplates,
} from '../../store/module/campaign/actions'

Keybase proof

I hereby claim:

  • I am hong-duc on github.
  • I am dman94 (https://keybase.io/dman94) on keybase.
  • I have a public key ASCNxsOwGG8_LwJ7utEppGBhdh0DdaHhV27duItHn6JUMAo

To claim this, I am signing this object:

@hong-duc
hong-duc / introrx.md
Created July 25, 2017 03:47 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
[ 0.000000] microcode: microcode updated early to revision 0xa0b, date = 2010-09-28
[ 0.000000] Linux version 4.6.0-1-MANJARO (builduser@manjaro) (gcc version 6.1.1 20160501 (GCC) ) #1 SMP PREEMPT Mon May 16 02:44:59 UTC 2016
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.6-x86_64 root=UUID=0246f7f2-b3a7-45dd-8718-00543238bd6b rw ipv6.disable=1 quiet resume=UUID=b4900e68-1a1b-45f1-a16f-28f85477abf4 nosplash
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Enabled xstate features 0x3, context size is 576 bytes, using 'standard' format.
[ 0.000000] x86/fpu: Using 'eager' FPU context switches.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f3ff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009f400-0x000000000009ffff] reserved