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 / screen-blank.cmd
Created February 23, 2022 03:55
Instantly blank your computer screen in a command prompt
powershell (Add-Type '[DllImport(\"user32.dll\")]^public static extern int PostMessage(int hWnd, int hMsg, int wParam, int lParam);' -Name a -Pas)::PostMessage(-1,0x0112,0xF170,2)
@tonylambiris
tonylambiris / quake2-aurpkg.diff
Created October 19, 2021 23:11
Fixes for aur/quake2 package
diff --git a/.SRCINFO b/.SRCINFO
index 9fb5f01..959cdaf 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,3 @@
-# Generated by mksrcinfo v8
-# Sat Feb 3 01:55:40 UTC 2018
pkgbase = quake2
pkgdesc = Quake 2 engine. You need the retail .pak files to play.
pkgver = r0.16.2
@tonylambiris
tonylambiris / retropie_setup.sh
Created June 15, 2018 20:31
RetroPie setup script (configure IO scheduler, install golang and grab ROM cover art)
#!/bin/bash
set -xe
GOVERSION=1.10.3
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin"
test -d $GOPATH && rm -rf $GOPATH
@tonylambiris
tonylambiris / fix-rvm-setup.txt
Last active September 4, 2021 01:03
Commands to fix a local install of rvm
rm -rf ~/.rvm
curl -sSL https://get.rvm.io | bash -s stable
rvm get stable --auto-dotfiles
source ~/.rvm/scripts/rvm
rvm reload
rvm cleanup all
rvm install "ruby-3.0.2"
@tonylambiris
tonylambiris / fix_corsair.sh
Last active November 19, 2020 09:21
Fix Corsair iCUE software by renaming all cpuid related files
#!/bin/sh
CORSAIR_DIR='C:\Program Files (x86)\Corsair\CORSAIR iCUE Software'
function isadmin() {
net session &>/dev/null
return $?
}
if ! $(isadmin); then
@tonylambiris
tonylambiris / alacritty-colors.yaml
Created June 3, 2018 12:08 — forked from pirey/alacritty-colors.yaml
alacritty theme collection
# Colors (Nord)
# colors:
# # Default colors
# primary:
# background: '0x2E3440'
# foreground: '0xD8DEE9'
#
# # Normal colors
# normal:
# black: '0x3B4252'
@tonylambiris
tonylambiris / enable_plugins.py
Last active April 28, 2020 19:21
Enable plugins for Binary Ninja
# vim: ft=python sw=4 ts=4 et
from pprint import pprint
mgr = RepositoryManager()
# add third-party plugins with the following:
# mgr.add_repository(url="https://github.com/GitMirar/BinaryNinjaYaraPlugin.git",
# repopath="plugins",
# localreference="master",
@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 / 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 / Arch_Linux_luks_LVM.md
Last active January 22, 2020 14:37
Full disk encryption using luks/LVM on Arch Linux

If you have a setup where your luks-encrypted device is a LVM partition which includes all mount points listed in /etc/fstab, you may be asked to enter your passphrase twice during boot: once by grub and again by systemd.

To have the system only prompt once, first get the correct device path and UUID with the following command:

$ eval $(lsblk -npfl | awk '$2 == "crypto_LUKS" {print "DEVPATH=" $1 " DEVUUID=" $3}')
$ sudo cryptsetup luksDump $DEVPATH

NOTE: If no output is returned, it's best to stop here and double-check your setup before continuing.