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 / 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
@julianxhokaxhiu
julianxhokaxhiu / helm-rbac.md
Created November 6, 2017 18:33 — forked from mgoodness/helm-rbac.md
Helm RBAC setup for K8s v1.6+ (tested on minikube)
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
@julianxhokaxhiu
julianxhokaxhiu / json.sh
Created August 29, 2017 07:57
Example for a nicer JSON typing with ENV vars, in a Bash script
#!/bin/bash
FOO="bar"
JSON=$(cat <<EOF
{
"foo": "$FOO"
}
EOF
)
@julianxhokaxhiu
julianxhokaxhiu / Readme.md
Created August 20, 2017 14:17
Fix Resonic Player and Logitech SetPoints MediaKeys events ( Windows )
  1. Open C:\Program Files\Logitech\SetPointP\players.ini
  2. Add these lines to their respective sections
[Players]
Resonic=wac,Resonic.exe,ResonicWnd,xxx,xxx,xxx,xxx,xxx,xxx,xxx,0,1,Resonic

[Players.Display]
Resonic=Resonic
  1. Restart your PC - OR - Kill 'Logitech SetPoint Event Manager' via Task manager and reopen the Logitech Setpoint software settings from Start menu or Control Panel
@julianxhokaxhiu
julianxhokaxhiu / build.sh
Last active June 18, 2024 23:11
How to build minimal AARCH64 QEMU Static from sources with EXECVE
#!/bin/bash
#
# IMPORTANT!
# At the moment this script is forged only for Debian ( tested on 8.x release ).
# Although my efforts were put on building this also on Arch Linux or Alpine, at the moment only Debian seems to be able to build it.
# Also, not sure why these instructions where nowhere on the internet, therefore I leave them here for whoever need them.
#
###########
# Add Backports repo support
@julianxhokaxhiu
julianxhokaxhiu / build.sh
Last active May 2, 2025 17:52
How to build minimal ARM QEMU Static from sources with EXECVE
#!/bin/bash
#
# IMPORTANT!
# At the moment this script is forged only for Debian ( tested on 8.x release ).
# Although my efforts were put on building this also on Arch Linux or Alpine, at the moment only Debian seems to be able to build it.
# Also, not sure why these instructions where nowhere on the internet, therefore I leave them here for whoever need them.
#
###########
# Add Backports repo support
@julianxhokaxhiu
julianxhokaxhiu / gist:d4d8da6a0240de1de2cf3fea2308f871
Created February 3, 2017 10:27 — forked from Manu343726/gist:ca0ceb224ea789415387
Running ARM docker image with QEMU on x86_64 Arch Linux host
# Install quemu, docker, etc
yaourt -S qemu qemu-user-static binfmt-support
# The quemu-user-static AUR package is outdated and broken. The .deb package they pull is no longer in the ubuntu repository.
# Edit the PKGBUILD and use qemu-user-static_2.4+dfsg-3_amd64.deb (With SHA1 sum "84d83a16c60c82b6c579f2f750b04a3ac26c249b")
# Enable ARM emulation
update-binfmts --enable qemu-arm
@julianxhokaxhiu
julianxhokaxhiu / create-iso.sh
Created September 24, 2016 21:46
Simple bash script to create a Bootable ISO from macOS Sierra Install Image from Mac App Store
#!/bin/bash
#
# Credits to fuckbecauseican5 from https://www.reddit.com/r/hackintosh/comments/4s561a/macos_sierra_16a238m_install_success_and_guide/
# Adapted to work with the official image available into Mac App Store
#
# Enjoy!
hdiutil attach /Applications/Install\ macOS\ Sierra.app/Contents/SharedSupport/InstallESD.dmg -noverify -nobrowse -mountpoint /Volumes/install_app
hdiutil create -o /tmp/Sierra.cdr -size 7316m -layout SPUD -fs HFS+J
hdiutil attach /tmp/Sierra.cdr.dmg -noverify -nobrowse -mountpoint /Volumes/install_build
@julianxhokaxhiu
julianxhokaxhiu / README.md
Last active August 28, 2020 13:03
Push IP machine on boot over PowerDNS via REST API

To make it work:

  1. systemctl enable systemd-networkd-wait-online.service

  2. Copy update-dns-record.service into /etc/systemd/system and run chmod 0755 /etc/systemd/system/update-dns-record.service

  3. Copy update-dns-via-api.sh into /root/.systemd/ and run chmod 0755 /root/.systemd/update-dns-via-api.sh

  4. Finally adjust update-dns-via-api.sh wth the right APIKEY value