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 / 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 / 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 / colortrans.py
Created October 21, 2018 15:21 — forked from hoov/colortrans.py
Convert values between RGB hex codes and xterm-256 color codes.
#! /usr/bin/env python
""" Convert values between RGB hex codes and xterm-256 color codes.
Nice long listing of all 256 colors and their codes. Useful for
developing console color themes, or even script output schemes.
Resources:
* http://en.wikipedia.org/wiki/8-bit_color
* http://en.wikipedia.org/wiki/ANSI_escape_code
@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 / 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 / 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 / arch.md
Last active June 19, 2019 19:26 — forked from Razz/arch.md
install arch

Write USB install key (OSX specific)

# diskutil list
# disutil unmount /dev/diskX
// Dont forget the r in rdisk
# sudo dd if=/path/to/arch.iso of=/dev/rdiskX bs=4M status=progress

Connect to wifi after booting USB

@tonylambiris
tonylambiris / nes.py
Created January 1, 2019 20:10 — forked from fuzyll/nes.py
Updated version of Binary Ninja's NES plugin (tries to handle more mappers).
# Copyright (c) 2015-2016 Vector 35 LLC
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
# sell copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
@tonylambiris
tonylambiris / spotify.preload.c
Created September 5, 2018 16:39 — forked from mdierolf/spotify.preload.c
An LD_PRELOAD fix for a really stupid spotify problem
// Save this file somewhere as spotify.preload.c
// Then build the library:
// gcc -fPIC -shared -o ~/spotify.preload.so spotify.preload.c -ldl
// When you execute spotify, you need to preload this library, which wraps the "setsockopt" function call with another function that gives spotify the results it expects:
// LD_PRELOAD=~/spotify.preload.so spotify
// To make the desktop icon work, edit: /usr/share/applications/spotify.desktop
// Change Exec=... to: