Skip to content

Instantly share code, notes, and snippets.

View erkanerbay's full-sized avatar
💭
I may be slow to respond.

ekotan erkanerbay

💭
I may be slow to respond.
View GitHub Profile
@Geczy
Geczy / auto-updater.sh
Last active February 11, 2025 14:47
supabase
#!/bin/bash
# This just provides you with a new docker-compose.yaml file.
# 1. You then have to edit your Supabase stack's docker compose and paste it in
# 2. Then you have to re-deploy to get the new versions installed
# TODO: Be able to run this script on your VPS and have it auto-update your compose yaml
# Local Docker Compose file
LOCAL_FILE="docker-compose.yaml"
@dhoeric
dhoeric / 0_README.md
Last active June 9, 2025 14:29
Google Calendar - Public Holiday Calendars
#!/bin/bash
# Compile and install (or install via Apt) FFmpeg Codecs
# Compile and install FFmpeg suite
echo "Begining Installation of FFmpeg Suite"
#Update APT Repository
echo "Updating the APT repository information"
apt update
@dustyf
dustyf / gist:b6e72a7a7fd05de9598e
Last active January 31, 2025 18:00
Example WordPress Simple JSON Endpoint Plugin
<?php
/**
* Plugin Name: WDS GIF API
* Plugin URI: http://webdevstudios.com
* Description: Adds a Custom Post Type to store GIFs and an API JSON Endpoint to access GIFs by a tag.
* Author: WebDevStudios
* Author URI: http://webdevstudios.com
* Version: 1.0.0
* License: GPLv2
*/
@spiralx
spiralx / object-assign.js
Created July 6, 2015 17:31
Object.assign() browser polyfill
if (!Object.assign) {
Object.defineProperty(Object, 'assign', {
enumerable: false,
configurable: true,
writable: true,
value: function(target) {
'use strict';
if (target === undefined || target === null) {
throw new TypeError('Cannot convert first argument to object');
}
/*
* Knowing where you are
*/
is_multisite()
http://codex.wordpress.org/Function_Reference/is_multisite
is_main_site()
http://codex.wordpress.org/Function_Reference/is_main_site