Skip to content

Instantly share code, notes, and snippets.

Tony Lambiris tonylambiris

Block or report user

Report or block tonylambiris

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
@tonylambiris
tonylambiris / switcher.ahk
Created Sep 23, 2019 — forked from snmishra/switcher.ahk
Switch windows by process name using Alt+` and S
View switcher.ahk
; Based on https://superuser.com/a/768060/542406
!`:: ; Next window
WinGet, ActiveProcessName, ProcessName, A
WinGet, WinClassCount, Count, ahk_exe %ActiveProcessName%
IF WinClassCount = 1
Return
Else
WinSet, Bottom,, A
WinActivate, ahk_exe %ActiveProcessName%
return
@tonylambiris
tonylambiris / disable_tracker.sh
Created Sep 11, 2019
Disable Tracker in GNOME
View disable_tracker.sh
#!/bin/sh
for i in /etc/xdg/autostart/tracker-*.desktop; do
echo -e "Hidden=true" | sudo tee --append "$i" >/dev/null
done
gsettings set org.freedesktop.Tracker.Miner.Files crawling-interval -2
gsettings set org.freedesktop.Tracker.Miner.Files enable-monitors false
tracker reset --hard
@tonylambiris
tonylambiris / wine_gaming.sh
Last active Aug 8, 2019
Wine setup script for creating a minimalist gaming environment
View wine_gaming.sh
#!/bin/bash
# run this script with environmental variables like so:
# env WINEARCH=win64 WINEPREFIX=$HOME/Documents/Wine/Overwatch ~/wine_gaming.sh
#
# the above will create a new wine prefix, removing it if it already exists
# you will be prompted to hit enter before continuing or aborting with a ctrl-c
#
# it will also download/run the latest Battle.net client but this is optional
# ensure wine-staging, winetricks, wineasio and dxvk are installed prior to running
@tonylambiris
tonylambiris / disk.go
Created May 13, 2019
Gets a list of disk devices and IO utilization
View disk.go
package main
import (
"github.com/davecgh/go-spew/spew"
psDisk "github.com/shirou/gopsutil/disk"
"github.com/sirupsen/logrus"
)
func main() {
partitions, err := psDisk.Partitions(false)
View wine_setup.sh
#!/bin/bash
TRICKS=()
TRICKS+=(corefonts)
TRICKS+=(dotnet462)
TRICKS+=(vcrun2005)
TRICKS+=(vcrun2008)
TRICKS+=(vcrun2015)
test -z "$WINEPREFIX" && WINEPREFIX="${1:-$HOME/.wine}"
@tonylambiris
tonylambiris / PKGBUILD
Created May 11, 2019
Updated PKGBUILD for lib32-capstone
View PKGBUILD
# Maintainer: Tony Lambiris <tony@criticalstack.com>
pkgbase=capstone
pkgname=lib32-capstone
pkgver=4.0.1
pkgrel=1
pkgdesc='Lightweight multi-platform, multi-architecture disassembly framework (32-bit)'
url='https://www.capstone-engine.org/index.html'
arch=('x86_64')
license=('BSD')
@tonylambiris
tonylambiris / PKGBUILD
Last active May 11, 2019
Updated PKGBUILD for libui-git
View PKGBUILD
# Contributor: Yauheni Kirylau <yawghen-gmail-dot-com>
pkgname=libui-git
pkgver=alpha4.1.r314.g17486fd1
pkgrel=1
pkgdesc='A portable GUI library for C'
arch=('i686' 'x86_64')
url='https://github.com/andlabs/libui'
license=('MIT')
depends=('gtk3' 'libx11' 'libxcb' 'libffi')
@tonylambiris
tonylambiris / .nvidia-xinitrc
Created May 10, 2019
Fix-up for keychain when running GNOME with nvidia-xrun
View .nvidia-xinitrc
if [ $# -gt 0 ]; then
$*
else
dbus-update-activation-environment --systemd DISPLAY
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
exec gnome-session
fi
@tonylambiris
tonylambiris / instructions.txt
Last active Apr 23, 2019
Switch SATA controller driver from RAID to AHCI
View instructions.txt
Run MSCONFIG
Enable Safe Boot (minimal)
Reboot into UEFI/BIOS and change to AHCI
Boot up into safe mode
Run MSCONFIG and disable Safe Boot.
Reboot
@tonylambiris
tonylambiris / wine_gaming.sh
Created Mar 16, 2019
Setup wine-staging for gaming support
View wine_gaming.sh
#!/bin/bash
TRICKS=()
TRICKS+=(corefonts)
TRICKS+=(dotnet462)
TRICKS+=(vcrun2005)
TRICKS+=(vcrun2008)
TRICKS+=(vcrun2015)
test -z $WINEPREFIX && WINEPREFIX="${1:-$HOME/.wine}"
You can’t perform that action at this time.