Skip to content

Instantly share code, notes, and snippets.

View julianxhokaxhiu's full-sized avatar
🚀
Impossible Is Nothing.

Julian Xhokaxhiu julianxhokaxhiu

🚀
Impossible Is Nothing.
View GitHub Profile
@julianxhokaxhiu
julianxhokaxhiu / purge-facebook-activity.js
Last active October 11, 2021 21:18
Purge all your Facebook Activity automatically, from your own Browser, using the new Facebook UI
/*
The MIT License (MIT)
Copyright (c) 2020 Julian Xhokaxhiu
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,
@julianxhokaxhiu
julianxhokaxhiu / stadia.js
Last active May 8, 2021 22:08
Force Google Stadia VP9 codec on each session
// ==UserScript==
// @name Stadia
// @namespace Stadia
// @version 0.1.1
// @description Will force and vp9 on any Stadia URL.
// @author JulianXhokaxhiu
// @include https://stadia.google.com/*
// @grant none
// ==/UserScript==
@julianxhokaxhiu
julianxhokaxhiu / ff7_native_opengl.reg
Created February 9, 2020 14:31
Run Final Fantasy VII on top of original OpenGL layer ( may lead to visual artifacts ) - Works only on Intel GPU as of today!
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Square Soft, Inc.\Final Fantasy VII\1.00\Graphics]
"DriverPath"=""
"Driver"=dword:00000002
"Mode"=dword:00000002
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Square Soft, Inc.\Final Fantasy VII\1.00\Graphics]
"DriverPath"=""
"Driver"=dword:00000002
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Last active March 25, 2024 16:15
Simple bash script to create a Bootable ISO from macOS Catalina Install Image from Mac App Store
#!/usr/bin/env bash
#===========================================================================
# Works only with the official image available in the Mac App Store.
# Make sure you download the official installer before running this script.
#===========================================================================
hdiutil create -o /tmp/Catalina.cdr -size 9000m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Catalina.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo /Applications/Install\ macOS\ Catalina.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build --nointeraction
hdiutil detach "/Volumes/Install macOS Catalina"
@julianxhokaxhiu
julianxhokaxhiu / java.sh
Last active July 21, 2021 20:08
How to pass system properties with spaces in Java within your Bash scripts
#!/usr/bin/env bash
######################################################################################################################
# This script is a solution of when you want to pass Java options when they do come to the script as environment
# variable, or when you declare them inside a variable, using quotes. When you do so, you may obtain from the Java
# process an error that looks like this:
#
# $ ./java.sh
# Error: Could not find or load main class ...
#
@julianxhokaxhiu
julianxhokaxhiu / snippet.js
Created July 24, 2019 09:36
Print a list of values out of a selector contaning multiple matches
/**
* This will print in your Console window a list of values out of a selector contaning multiple matches.
*
* How to install: Copy the whole line and drag it into your browser.
**/
javascript:var selector = prompt('Insert your CSS selector'); var tmpbuf = ''; document.querySelectorAll(selector).forEach( el => tmpbuf += (el.innerText||el.textContent)+'\n' ); console.log(tmpbuf)
@julianxhokaxhiu
julianxhokaxhiu / README.md
Last active December 5, 2023 07:52
Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )

Step 1

Install required dependencies

$ pacman -S avahi pulseaudio-zeroconf

Step 2

@julianxhokaxhiu
julianxhokaxhiu / motion-start-recording.service
Created March 21, 2019 21:37
Configure motion to record at a specific time without motion detection and 24/7 live streaming
# Create this file under /etc/systemd/system/
[Unit]
Description=Start motion recording
[Service]
Type=oneshot
ExecStart=/usr/bin/curl http://localhost:8080/0/action/eventstart
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Created October 3, 2018 12:04
Simple bash script to create a Bootable ISO from macOS Mojave Install Image from Mac App Store
#!/bin/bash
#
# How to use:
# 1. copy this shell file somewhere in your Mac
# 2. chmod +x create-iso.sh
# 3. $ sudo ./create-iso.sh
#
# The ISO file will be located in your Desktop when the script will be complete
hdiutil create -o /tmp/Mojave.cdr -size 6000m -layout SPUD -fs HFS+J
@julianxhokaxhiu
julianxhokaxhiu / prepare_sdcard.sh
Last active April 19, 2022 20:08
Easy bash script to install ArchLinuxARM for RPi3 on an SD Card
#!/bin/bash
#
# Pre-requisite: move this script next to the .tar.gz image file
# you can download at http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-3-latest.tar.gz
#
# Usage: ./prepare_sdcard.sh /dev/sdb
#
#####################################
DRIVE_PATH=$1