Skip to content

Instantly share code, notes, and snippets.

View ugurerkan's full-sized avatar
💭
🧙🏻‍♂️

Uğur Erkan ugurerkan

💭
🧙🏻‍♂️
View GitHub Profile
@nekator
nekator / xcode-install-instructions.md
Last active August 25, 2023 14:24
install Xcode from terminal

1. Download Xcode from https://developer.apple.com/download/more/ (this requeires to Login in with an Apple Developer Account)

At the moment id don´t know how to authenticate so i have no clue to download the xip via curl/wget.
In my case i downloaded the file and copied it via scp to my mac.

eg. for Xcode 9.2 https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_9.2/Xcode_9.2.xip

2. Verify Signature of xip file

pkgutil --verbose --check-signature path/to/xip
@v0lkan
v0lkan / silence.sh
Last active October 28, 2025 12:23
How to Have a Silent and High-Performing Western Digital MyCloud Mirror
# Update 2025-10-28:
# From chat:
# It can easily be stopped through SSH with this command:
#
# /usr/sbin/restsdk.sh stop
# and restarted with
# /usr/sbin/restsdk.sh start
#
# To stop the offending services:
#
@weaver
weaver / x-forwarded-host.php
Created April 30, 2011 17:27
Honor the `X-Forwarded-Host` header for the duration of a single request in WordPress.
<?php
/*
# X-Forwarded-Host #
Honor the `X-Forwarded-Host` header for the duration of a single
request in WordPress.
## Read Me First ##