Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Impossible Is Nothing.

Julian Xhokaxhiu julianxhokaxhiu

🚀
Impossible Is Nothing.
View GitHub Profile
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Last active Nov 25, 2020
Simple bash script to create a Bootable ISO from macOS Big Sur Install Image from Mac App Store
View create-iso.sh
#!/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.
#===========================================================================
# Change this at your desire. Sometimes this works out of the box, sometimes not.
# Default size: ~21 GB
DISK_SIZE="20000m"
View PrintBootCampESDInfo.swift
#!/usr/bin/env swift
//
// REPL.swift
//
// Created by nuomi1 on 8/5/18.
// Copyright © 2018年 nuomi1. All rights reserved.
//
import Foundation
@julianxhokaxhiu
julianxhokaxhiu / purge-facebook-activity.js
Last active Sep 23, 2020
Purge all your Facebook Activity automatically, from your own Browser, using the new Facebook UI
View purge-facebook-activity.js
/*
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 Apr 10, 2020
Force Google Stadia VP9 codec on each session
View stadia.js
// ==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 Feb 9, 2020
Run Final Fantasy VII on top of original OpenGL layer ( may lead to visual artifacts ) - Works only on Intel GPU as of today!
View ff7_native_opengl.reg
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 Nov 17, 2020
Simple bash script to create a Bootable ISO from macOS Catalina Install Image from Mac App Store
View create-iso.sh
#!/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 Sep 3, 2019
How to pass system properties with spaces in Java within your Bash scripts
View java.sh
#!/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 Jul 24, 2019
Print a list of values out of a selector contaning multiple matches
View snippet.js
/**
* 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 Nov 6, 2020
Enable autodiscover AirPlay Client support on Arch Linux ( like on macOS )
View README.md

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 Mar 21, 2019
Configure motion to record at a specific time without motion detection and 24/7 live streaming
View motion-start-recording.service
# 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
You can’t perform that action at this time.