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 November 20, 2023 08:19
Copy Site Reference - Tampermonkey script
// ==UserScript==
// @name Copy Site Reference
// @namespace https://lalibi.org/
// @version 0.4.0
// @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 August 26, 2023 04:25 — forked from Nora-Ballard/Set-WindowState.ps1
Hide, Show, Minimize, Maximize, etc window from Powershell.
function Set-WindowState {
<#
.LINK
https://gist.github.com/Nora-Ballard/11240204
#>
[CmdletBinding(DefaultParameterSetName = 'InputObject')]
param(
[Parameter(Position = 0, Mandatory = $true, ValueFromPipeline = $true)]
[Object[]] $InputObject,
@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: