Skip to content

Instantly share code, notes, and snippets.

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

Balázs Orbán orbanbalage

🏠
Working from home
View GitHub Profile
@MooreDerek
MooreDerek / WSL-KALI-APT-UPDATE-ERROR.md
Last active October 21, 2023 18:22
Installing Kali on WSL getting apt update error

Installing Kali

wsl --install -d kali-linux

When terminal starts up try running

sudo apt upgrade and get the following error:

Get:1 http://wlglam.fsmg.org.nz/kali kali-rolling InRelease [30.6 kB]
Err:1 http://wlglam.fsmg.org.nz/kali kali-rolling InRelease
 The following signatures were invalid: EXPKEYSIG ED444FF07D8D0BF6 Kali Linux Repository 
@pferreirafabricio
pferreirafabricio / png-to-base64.ps1
Last active July 14, 2024 03:41
🖼 Convert an image to a Base64 string with PowerShell
<#
OBS:
The AsByteStream parameter was introduced in Windows PowerShell 6.0
If your PowerShell version (run `(Get-Host).Version` to find out) is lower than 6 then use the version for Powershell 5.1:
#>
$pathToImage = "/home/user/development/image.png"
# For Powershell 5.1
[String]$base64 = [convert]::ToBase64String((Get-Content $pathToImage -Raw -Encoding Byte))
@qoomon
qoomon / youtube_clean_watch_later_videos.js
Last active April 15, 2024 07:25
Clean YouTube Watch Later Videos
// Version 2.0.1
// This script will remove all videos from watch later list
//
// Usage
//
// #1 go to https://www.youtube.com/playlist?list=WL
// #2 run following script in your browser console
(async function() {
const playlistName = document.querySelector('.metadata-wrapper #container #text')?.textContent || document.querySelector('#text')?.textContent
@lizkes
lizkes / go-os-arch.md
Created January 10, 2021 17:05 — forked from asukakenji/0-go-os-arch.md
Go (Golang) GOOS and GOARCH

Go (Golang) GOOS and GOARCH

All of the following information is based on go version go1.14.7 darwin/amd64.

A list of valid GOOS values

(Bold = supported by go out of the box, ie. without the help of a C compiler, etc.)

  • aix
  • android
@manciuszz
manciuszz / Install-Hyper-V.bat
Last active September 14, 2024 06:45
Windows 10 Home | Hyper-V Management scripts
@echo off
pushd "%~dp0"
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i"
del hyper-v.txt
Dism /online /enable-feature /featurename:Microsoft-Hyper-V -All /LimitAccess /ALL
@dwettstein
dwettstein / media_shortcuts.ahk
Last active December 22, 2022 11:28
AutoHotkey Media Control Shortcuts
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#!Left::Send {Media_Prev} ; Win + Alt + Left
#!Down::Send {Media_Play_Pause} ; Win + Alt + Down
#!Right::Send {Media_Next} ; Win + Alt + Right
#!Up::Send {Volume_Mute} ; Win + Alt + Up
#!PgUp::Send {Volume_Up} ; Win + Alt + PageUp
@remlapmot
remlapmot / install-mate-desktop.sh
Last active December 21, 2023 19:51
Install MATE desktop on WSL 2
sudo apt update && sudo apt upgrade -y
sudo apt install ubuntu-mate-desktop --no-install-recommends -y
sudo apt-get install mate-desktop-environment-extras
sudo dpkg-reconfigure dbus && sudo service dbus restart
# install missing icons
sudo apt install ubuntu-mate-icon-themes
# install fira code font
sudo apt install fonts-firacode
@Ircama
Ircama / LgMagicRemoteKeys.md
Last active May 27, 2024 13:28
Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

Replacing Netflix and Amazon keys of the webOS LG TV LG Magic Remote with other apps

This procedure allows substituting one or both Netflix and Amazon keys of the Magic Remote Control Unit with other apps or TV control menus of the webOS LG TV.

Netflix and Amazon keys can be found just over the Red-Green-Yellow-Blue color buttons of such remote.

Assumption for this procedure is that you accept to uninstall the apps related to the keys to be substituted. Example: if you want to replace the Netflix key, you need to uninstall Netflix (possibly, you are not using Netflix if you do not need such key).

To uninstall Netflix or Amazon Prime, press the Home key of the Magic Remote, select the "LG Content Store" app, press "APP" at the top of the screen, press "My Apps", press the "Rem

@parsa
parsa / ssh-key-to-fingerprint.md
Last active July 18, 2023 05:26
Generate MD5 and SHA256 fingerprint of an OpenSSH host

Generate MD5 and SHA256 fingerprint of an OpenSSH host

MD5

# ssh-keyscan -p 8000 -t rsa rostam.cct.lsu.edu 2>/dev/null | awk '{ print $3 }' | base64 -d | md5sum | awk '{ print $1 }' | fold -w2 | paste -sd':' -
71:5a:1d:bb:1f:1e:fa:e6:34:98:3d:48:f5:ce:9d:68
# ssh-keygen -l -E md5 -f <(ssh-keyscan -p 8000 -t rsa rostam.cct.lsu.edu 2>/dev/null)
2048 MD5:71:5a:1d:bb:1f:1e:fa:e6:34:98:3d:48:f5:ce:9d:68 [rostam.cct.lsu.edu]:8000 (RSA)
@maxfunke
maxfunke / Boilerpalte.ps1
Created July 3, 2018 10:05
Boilerplate for powershell scripts
#Requires -Version 3
<#
.SYNOPSIS
<Overview of script>
.DESCRIPTION
<Brief description of script>
.PARAMETER <Parameter_Name>
<Brief description of parameter input required. Repeat this attribute if required>
.INPUTS
<Inputs if any, otherwise state None>