Skip to content

Instantly share code, notes, and snippets.

silvernode

  • USA
Block or report user

Report or block silvernode

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
@silvernode
silvernode / greeter.log
Created Apr 7, 2019
GDM log: gretter errors
View greeter.log
[root@voidpad gdm]# cat greeter.log | grep error
> Internal error: Could not resolve keysym XF86MonBrightnessCycle
> Internal error: Could not resolve keysym XF86MonBrightnessCycle
Gdk-Message: 20:15:48.248: gsd-clipboard: Fatal IO error 11 (Resource temporarily unavailable) on X server :1024.
Gdk-Message: 20:15:48.250: gsd-xsettings: Fatal IO error 11 (Resource temporarily unavailable) on X server :1024.
Gdk-Message: 20:15:48.251: gsd-power: Fatal IO error 11 (Resource temporarily unavailable) on X server :1024.
Gdk-Message: 20:15:48.253: gsd-keyboard: Fatal IO error 11 (Resource temporarily unavailable) on X server :1024.
Gdk-Message: 20:15:48.257: gsd-color: Fatal IO error 11 (Resource temporarily unavailable) on X server :1024.
Gdk-Message: 20:15:48.266: gsd-media-keys: Fatal IO error 11 (Resource temporarily unavailable) on X server :1024.
@silvernode
silvernode / site-status.sh
Last active Feb 13, 2019
[Bash] Check if a site is online or offline
View site-status.sh
#!/bin/bash
FAIL_CODE=6
if [ -z "${1}" ];then
echo "usage: ${0} example.com"
exit
fi
check_status(){
@silvernode
silvernode / C-states.md
Created Feb 11, 2019 — forked from wmealing/C-states.md
What are CPU "C-states" and how to disable them if needed?
View C-states.md

To limit a CPU to a certain C-state, you can pass the processor.max_cstate=X option in the kernel line of /boot/grub/grub.conf.

Here we limit the system to only C-State 1:

    kernel /vmlinuz-2.6.18-371.1.2.el5 ... processor.max_cstate=1

On some systems, the kernel can override the BIOS setting, and the parameter intel_idle.max_cstate=0 may be required to ensure sleep states are not entered:

@silvernode
silvernode / tizonia.debug.txt
Created Jun 26, 2018
Debug log for Tizonia
View tizonia.debug.txt
This file has been truncated, but you can view the full file.
[stdout] 26-06-2018 15:20:06.171 - [PID:5508][TID:5508] [TRACE] [tiz.platform.rc] [tizrc.c:obtain_xdg_config_dir:576] --- XDG_CONFIG_DIRS [/snap/tizonia/188/etc/xdg:/etc/xdg:/usr/share/kde-settings/kde-profile/default/xdg] ...
[stdout] 26-06-2018 15:20:06.171 - [PID:5508][TID:5508] [TRACE] [tiz.platform.rc] [tizrc.c:obtain_xdg_config_dir:580] --- XDG_CONFIG_DIR - [/snap/tizonia/188/etc/xdg] ...
[stdout] 26-06-2018 15:20:06.171 - [PID:5508][TID:5508] [TRACE] [tiz.platform.rc] [tizrc.c:obtain_xdg_config_dir:604] --- Using config location /snap/tizonia/188/etc/xdg/tizonia/tizonia.conf
[stdout] 26-06-2018 15:20:06.171 - [PID:5508][TID:5508] [TRACE] [tiz.platform.rc] [tizrc.c:obtain_xdg_config_home:627] --- HOME [/home/mollusk/snap/tizonia/188]
[stdout] 26-06-2018 15:20:06.171 - [PID:5508][TID:5508] [TRACE] [tiz.platform.rc] [tizrc.c:tiz_rcfile_init:663] --- Looking for [3] rc files...
@silvernode
silvernode / tizonia-script.sh
Last active Jun 21, 2018
custom script used to use tizonia
View tizonia-script.sh
#!/bin/bash
DEVICE_ID=""
USERNAME=""
PASSWORD=""
echo -e "[1] Jimi Hendrix\n\n"
echo -e -n ">> "
View vpu.sh
#!/usr/bin/bash
# Colors
RED='\033[0;31m'
LRED="\033[1;31m"
BLUE="\033[0;34m"
LBLUE="\033[1;34m"
GREEN="\033[0;32m"
LGREEN="\033[1;32m"
YELLOW="\033[1;33m"
@silvernode
silvernode / T420 Specs
Created Feb 13, 2018
inxi output T420
View T420 Specs
System: Host: tneon Kernel: 4.13.0-32-generic x86_64 (64 bit) Desktop: KDE Plasma 5.12.0
Distro: neon 16.04 xenial
Machine: System: LENOVO (portable) product: 4177R3U v: ThinkPad T420
Mobo: LENOVO model: 4177R3U Bios: LENOVO v: 83ET78WW (1.48 ) date: 01/21/2016
CPU: Dual core Intel Core i5-2430M (-HT-MCP-) cache: 3072 KB
clock speeds: max: 3000 MHz 1: 2392 MHz 2: 2392 MHz 3: 2392 MHz 4: 2392 MHz
Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller
Display Server: X.Org 1.19.5 drivers: (unloaded: fbdev,vesa) Resolution: 1366x768@60.10hz
GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 17.2.4
Audio: Card Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel
View pm-suspend.log
+ log Initial commandline parameters:
+ is_set true
+ return 0
+ local fmt=%s\n
+ [ Initial commandline parameters: = -n ]
+ printf %s\n Initial commandline parameters:
Initial commandline parameters:
+ load_hook_blacklist
+ [ ]
+ return
View dmesg.log
[ 0.000000] Linux version 4.12.11_1 (void-buildslave@build) (gcc version 6.3.0 (GCC) ) #1 SMP PREEMPT Fri Sep 8 10:17:18 UTC 2017
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.12.11_1 root=UUID=f8f62656-6a47-4361-a7c3-bc2b204d7e46 ro loglevel=4 slub_debug=P page_poison=1
[ 0.000000] Disabled fast string operations
[ 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: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009d7ff] usable
You can’t perform that action at this time.