Skip to content

Instantly share code, notes, and snippets.

@NeoTheFox
NeoTheFox / .conkyrc
Last active November 30, 2015 10:20
.conkyrc for X230 running archlinux
background yes
use_xft yes
font Arimo:size=7.5
text_buffer_size 2048
# Update interval in seconds
update_interval 5
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
@NeoTheFox
NeoTheFox / alias
Created April 28, 2015 19:46
Wine pulseaudio screeching sound fix
alias wine='PULSE_LATENCY_MSEC=60 wine'
@NeoTheFox
NeoTheFox / .zshrc
Last active November 29, 2015 23:08
Oh-my-zsh config
# Path to your oh-my-zsh installation.
export ZSH=/home/neothefox/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
Verifying that +neothefox is my blockchain ID. https://onename.com/neothefox
@NeoTheFox
NeoTheFox / xboxdrv.conf
Last active June 13, 2017 15:01
iPEGA PG-9017S xboxdv configuration
#iPEGA PG-9017S Config by NeoTheFox, 2015
#Launch with sudo xboxdrv --evdev /dev/input/event<your joystick> --config xboxdrv.conf
#To check what /dev/input event is yours try using evtest
#or create a udev rule with something like this:
#
# ACTION=="add", SUBSYSTEM=="input", ATTRS{name}=="Bluetooth Gamepad", ATTRS{uniq}=="00:17:02:01:ae:2a", SYMLINK+="ipega"
#
#replacing name and uniq with your values. This would make udev
#symlink the appropriate event device to /dev/ipega
#TLP
alias tlp-stat='sudo tlp-stat'
#Get rid of askpass
unset SSH_ASKPASS
#Powertop
alias powertop='sudo powertop'
#Ping
alias ntst='ping 8.8.8.8'
#Sync
alias syncp='sync && watch grep -e Dirty: -e Writeback: /proc/meminfo'
#!/usr/bin/env python2
a = 0
print 'G92 Z0'
while a<100:
a = a+1
print 'G1 Z0'
print 'G1 Z10'
#!/usr/bin/bash
xconfig="/etc/X11/xorg.conf"
if [ -e "$xconfig" ]
then
echo "Nvidia xconfig detected"
echo "Switching to mesa..."
sudo pacman -S lib32-mesa-libgl mesa-libgl
sudo rm $xconfig
else
#!/usr/bin/bash
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# You would have to create an xorg.conf file for your Nvidia setup #
# before using this script! It can be done by running: #
# #
# nvidia-xconfig -o /etc/X11/xorg.conf.nvidia #
# #
# Make sure your system has eGPU connected and a monitor plugged into the GPU. #
# The reason I've never automated this is that you have to have it all plugged #
[Unit]
Description=GPU Switcher
After=systemd-user-sessions.service plymouth-quit.service
Before=display-manager.service
[Service]
ExecStart=/usr/local/bin/autogpuswitch.sh
Restart=no
Type=oneshot
RemainAfterExit=yes