Skip to content

Instantly share code, notes, and snippets.

View tonylambiris's full-sized avatar

Tony Lambiris tonylambiris

  • Boston, MA
View GitHub Profile
@tonylambiris
tonylambiris / crappy-csgo-walls.cs
Created March 5, 2020 08:54 — forked from djcas9/crappy-csgo-walls.cs
csgo wall hack - using VAMemory so it will get VAC for sure
using System;
using System.Threading;
using System.Diagnostics;
namespace csgo_walls {
public class Glow {
public static int Client;
public static string process = "csgo";
@tonylambiris
tonylambiris / switcher.ahk
Created September 23, 2019 14:24 — forked from snmishra/switcher.ahk
Switch windows by process name using Alt+` and S
; 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 September 11, 2019 22:28
Disable Tracker in GNOME
#!/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 August 8, 2019 10:55
Wine setup script for creating a minimalist gaming environment
#!/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 20:13
Gets a list of disk devices and IO utilization
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)
@tonylambiris
tonylambiris / wine_setup.sh
Created May 13, 2019 12:00
Wine setup script
#!/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 23:04
Updated PKGBUILD for lib32-capstone
# 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 10:07
Updated PKGBUILD for libui-git
# 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 22:50
Fix-up for keychain when running GNOME with nvidia-xrun
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 April 23, 2019 19:12
Switch SATA controller driver from RAID to AHCI
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