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 / windows-search-index.txt
Created July 8, 2023 06:43
Remove Windows.edb search index
Run "services.msc" and find "Windows Search" then stop the service.
Delete the Windows.edb file. (C:\ProgramData\Microsoft\Search\Data\Applications\Windows\Windows.edb)
Click "Modify" in the Indexing Options panel and click "Delete and Rebuild" for the index.
@tonylambiris
tonylambiris / Guest-Commands.md
Created March 21, 2023 11:27 — forked from DManavi/Guest-Commands.md
How to compact virtualbox disks to save space on the host machine?

These commands should execute on your "GUEST" OS/Your virtual machine.

If the OS is a linux, run

dd if=/dev/zero of=/var/tmp/bigemptyfile bs=4096k ; rm /var/tmp/bigemptyfile

if the OS is windows

@tonylambiris
tonylambiris / windows10-command-tweaks
Last active February 19, 2024 09:38 — forked from djibe/windows10-command-tweaks.md
Windows10 Command Tweaks
## Windows 10+ optimizations
%windir%\system32\usoclient StartScan
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
Enable hibernation:
powercfg /h on
powercfg hibernate size 0
powercfg /h /type reduced
@tonylambiris
tonylambiris / twitter-media-downloader.js
Created June 19, 2022 14:51
Twitter Media Downloader for TamperMonkey
// ==UserScript==
// @name Twitter Media Downloader
// @name:ja Twitter Media Downloader
// @name:zh-cn Twitter 媒体下载
// @name:zh-tw Twitter 媒體下載
// @description Save Video/Photo by One-Click.
// @description:ja ワンクリックで動画・画像を保存する。
// @description:zh-cn 一键保存视频/图片
// @description:zh-tw 一鍵保存視頻/圖片
// @version 0.85
@tonylambiris
tonylambiris / disable-razer-rgms.txt
Created June 3, 2022 05:49
Disable "Razer Game Manager Service"
YSK how to disable "Razer Game Manager Service" as it causes daily problems for windows
Find out if it causes problems for you:
Hit windows-key and type in "security and maintenance".
Go into maintenance and then into reliability-monitor.
If RGMS (Razer Game Manager Service) causes problems you will see it under critical events.
Be sure to also check some days prior.
What does RGMS do?
Since I didn't make the service I can't be 100% sure.
@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 / 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 / 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";