Skip to content

Instantly share code, notes, and snippets.

View lalibi's full-sized avatar
🏠
Working from home

Nicholaos Bilalis lalibi

🏠
Working from home
View GitHub Profile
@lalibi
lalibi / Install-RustDesk.ps1
Last active February 2, 2024 07:11
Install-RustDesk.ps1
$ErrorActionPreference= 'SilentlyContinue'
# Ask for the server IP
$server_ip = Read-Host -Prompt 'Enter the server IP (<Enter> for none:)'
# Ask for password
$rustdesk_pw = Read-Host -Prompt 'Enter the password (<Enter> for random:)'
# Generate a random password if none is provided
if ($rustdesk_pw -eq '')
@lalibi
lalibi / copy-reference.js
Last active July 1, 2024 07:21
Copy Site Reference - Tampermonkey script
// ==UserScript==
// @name Copy Site Reference
// @namespace https://lalibi.org/
// @version 0.4.1
// @description Copy title and shorten URL from site
// @author lalibi
// @match *://*/*
// @updateURL https://gist.githubusercontent.com/lalibi/8069ba479069e1b2071b1fb779e4bfdc/raw/
// @downloadURL https://gist.githubusercontent.com/lalibi/8069ba479069e1b2071b1fb779e4bfdc/raw/
// @icon https://www.google.com/s2/favicons?sz=64&domain=tinyurl.com
# Working around the dreaded Dell XPS “Power Limit Throttling” problem | by Matthew Casperson | Medium - https://bit.ly/31Coh5d
# Problem with ending a loop on keypress - PowerShell General - Ask the Experts - IDERA Community - https://bit.ly/31DemvZ
# Automated Power Limit Script - Feedback : gpdwin - https://bit.ly/33RxeKJ
# windows 10 - Intel XTU Undervolt settings not working between reboots - Super User - https://bit.ly/2FbgUKp
# Apply an Intel XTU profile from PowerShell - https://bit.ly/2Fbw3eI
# **DISCLAIMER**: Use the script at your own risk. I've been running it successfully for several days now
# but I can't say that this is a safe practise and **I cannot guarantee that it won't damage your laptop**.
# Use it only if you understand what the script does, if you understand the risks involved,
# if you understand what those settings are and, finally, if you feel comfortable with tinkering those values.
@lalibi
lalibi / Set-WindowState.ps1
Last active June 13, 2024 09:51 — forked from Nora-Ballard/Set-WindowState.ps1
Hide, Show, Minimize, Maximize, etc window from Powershell.
function Set-WindowState {
<#
.SYNOPSIS
Set the state of a window.
.DESCRIPTION
Set the state of a window using the `ShowWindowAsync` function from `user32.dll`.
.PARAMETER InputObject
The process object(s) to set the state of. Can be piped from `Get-Process`.
@lalibi
lalibi / keybase.md
Last active December 15, 2017 09:25

Keybase proof

I hereby claim:

  • I am lalibi on github.
  • I am lalibi (https://keybase.io/lalibi) on keybase.
  • I have a public key ASDo0Wh9-TkZhYPtIXUzXX-WkN7XTkLCDGLmv4cvEUEKoAo

To claim this, I am signing this object: