Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name arm_infocenter_ultrawide
// @namespace aiu
// @description make ARM infocenter view for ultrawide monitor better.
// @include http://infocenter.arm.com/*
// @version 1
// @grant none
// ==/UserScript==
$(body).css('max-width','9999px');
// ==UserScript==
// @name UltraWideFix
// @namespace uwf
// @description Fix aspect ratio for youtube.
// @include https://www.youtube.com/watch=*
// @version 1
// @grant none
// ==/UserScript==
document.addEventListener("keydown", OnKeyDownHandler, false);
//
@alastorid
alastorid / gist:24344701fc8cebaf4f7d298247eae845
Created August 3, 2017 06:35
Dell XPS13 l322x Cypress Touchpad Fix
The cypress touchpad firmware is smarter than normal touchpad, but linux snyaptics driver treats it as a normal one.
So one will have hard time clicking a cypress touchpad. To fix this problem, add a file like this
/etc/X11/xorg.conf.d/99-clickpad.conf
Section "InputClass"
Identifier "Disable clickpad for touchpad"
MatchDriver "synaptics"
Option "ClickPad" "off"
Option "HorizTwoFingerScroll" "on"
Option "TapButton1" "on"
@alastorid
alastorid / rhel_scl
Created August 3, 2017 07:35
rhel scl devtoolset-6
sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
sudo yum install devtoolset-6
@alastorid
alastorid / obs_studio
Created August 3, 2017 07:55
Install OBS in Centos7 or rhel
# first of all, you must nux repo enabled
# and nux needs epel repo
sudo yum -y install epel-release && rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
#then
sudo yum install libX11-devel mesa-libGL-devel libv4l-devel \
pulseaudio-libs-devel x264-devel freetype-devel \
fontconfig-devel libXcomposite-devel libXinerama-devel \
qt5-qtbase-devel qt5-qtx11extras-devel libcurl-devel \
systemd-devel ffmpeg ffmpeg-devel
@alastorid
alastorid / updatedb
Created August 3, 2017 08:51
updatedb skip junk
#updatedb run so long?
#it's a good idea to skip .cache and .mozilla folders
sudo sed -i '/PRUNENAMES/ s/"\(.*\)"/".cache .mozilla .git .hg .svn"/' /etc/updatedb.conf
/etc/NetworkManager/conf.d/00_mac_randomization.conf
[device-mac-randomization]
# "yes" is already the default for scanning
wifi.scan-rand-mac-address=yes
[connection-mac-randomization]
# Randomize MAC for every ethernet connection
ethernet.cloned-mac-address=random
# Generate a random MAC for each WiFi and associate the two permanently.
0.2994x 0.291y
UUID=221c5a9d-a605-4a8c-780b-33aaa65a1649 / ext4 defaults,noatime,commit=15,data=ordered,discard 1 1
tmpfs /tmp tmpfs defaults,mode=01777 0 0
tmpfs /var/spool tmpfs defaults,mode=01777 0 0
tmpfs /home/alastorid/.cache tmpfs defaults,mode=01777 0 0
# defaults,noatime,commit=15,data=ordered,discard
# noatime = no access time
# commit = 15 , jbd (ext4 journaling commits every 15 seconds)(default=5 sec)
# data=ordered,discard (trim)
@alastorid
alastorid / wx
Last active October 3, 2017 15:11
sudo yum install libtool gcc-c++ wxGTK-devel
svn checkout svn://svn.code.sf.net/p/wxhexeditor/code/trunk wxHexEditor
cd wxHexEditor
make OPTFLAGS=”-fopenmp”