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 / 0422-Add-PCI-device-entries-for-Killer-Wireless-AC-1550.patch
Created April 23, 2018 16:15
Patch for Linux 4.16.x to detect Killer Wireless-AC 1550
--- ./drivers/net/wireless/intel/iwlwifi/pcie/drv.c.orig 2018-04-22 21:57:31.940998832 -0400
+++ ./drivers/net/wireless/intel/iwlwifi/pcie/drv.c 2018-04-22 21:59:11.777822534 -0400
@@ -546,6 +546,8 @@
{IWL_PCI_DEVICE(0x2526, 0x1410, iwl9270_2ac_cfg)},
{IWL_PCI_DEVICE(0x2526, 0x1420, iwl9460_2ac_cfg_soc)},
{IWL_PCI_DEVICE(0x2526, 0x1610, iwl9270_2ac_cfg)},
+ {IWL_PCI_DEVICE(0x2526, 0x1a56, iwl9260_2ac_cfg)},
+ {IWL_PCI_DEVICE(0x2526, 0x1550, iwl9260_2ac_cfg)},
{IWL_PCI_DEVICE(0x2526, 0x2030, iwl9560_2ac_cfg_soc)},
{IWL_PCI_DEVICE(0x2526, 0x2034, iwl9560_2ac_cfg_soc)},
@tonylambiris
tonylambiris / chrome-remote-desktop.py
Created December 10, 2017 00:49
/opt/google/chrome-remote-desktop/chrome-remote-desktop
#!/usr/bin/python2
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Virtual Me2Me implementation. This script runs and manages the processes
# required for a Virtual Me2Me desktop, which are: X server, X desktop
# session, and Host process.
# This script is intended to run continuously as a background daemon
# process, running under an ordinary (non-root) user account.
@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 / 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 / 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 / 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 / authors.py
Created August 9, 2018 19:09
Parse authors from git log
#!/usr/bin/env python2
# script to extract commit author's name from standard input. The
# input should be <AUTHOR>:<EMAIL>, one per line.
# This script expects the input is created by git-log command:
#
# git log --format=%aN:%aE
#
# This script removes duplicates based on email address, breaking a
# tie with longer author name. Among the all author names extract the