Skip to content

Instantly share code, notes, and snippets.

Avatar

Tony Lambiris tonylambiris

  • Boston, MA
View GitHub Profile
@tonylambiris
tonylambiris / fix_corsair.sh
Last active Nov 19, 2020
Fix Corsair iCUE software by renaming all cpuid related files
View fix_corsair.sh
#!/bin/sh
CORSAIR_DIR='C:\Program Files (x86)\Corsair\CORSAIR iCUE Software'
function isadmin() {
net session &>/dev/null
return $?
}
if ! $(isadmin); then
@tonylambiris
tonylambiris / crappy-csgo-walls.cs
Created Mar 5, 2020 — forked from mephux/crappy-csgo-walls.cs
csgo wall hack - using VAMemory so it will get VAC for sure
View crappy-csgo-walls.cs
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 / crappy-csgo-walls.cs
Created Mar 5, 2020 — forked from mephux/crappy-csgo-walls.cs
csgo wall hack - using VAMemory so it will get VAC for sure
View crappy-csgo-walls.cs
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 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')