Skip to content

Instantly share code, notes, and snippets.

View RealDyllon's full-sized avatar
🎯
Focusing

Dyllon Gunawardhana RealDyllon

🎯
Focusing
View GitHub Profile
# Fastfile
#
# Author: Ronaldo Lima <ronal2do@gmail.com>
#
# -----------------------------------------------------------
#
# Version bumping, the default type is `patch`
# Run:
# `fastlane ios bump`
# `fastlane ios beta [type:major|minor|patch]`
@RealDyllon
RealDyllon / web.config
Last active October 14, 2020 10:15 — forked from davidebbo/web.config
Default web.config used for node.js apps on Azure Web Apps
<?xml version="1.0" encoding="utf-8"?>
<!--
AZURE APP SERVICE - WEB CONFIG FOR EXPRESS APP HOSTED ON WINDOWS WEB APP
-->
<!--
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->

CZ1115 Code Snippets and Samples

Made with ♥️ by Dyllon

@jacobsoo
jacobsoo / pyDeliveryTimeslots.py
Created April 18, 2020 06:52
This is just a simple script for Covid-19 to check if there are any delivery timeslots based on your postal code.
import os, sys, re
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
def _log(szString):
print(szString)
def main(PostalCode):
'''
@RealDyllon
RealDyllon / pandora-enhancer-chrome.js
Last active December 21, 2021 23:16
Enhance Pandora via Tampermonkey / Greasemonkey
// ==UserScript==
// @name Pandora Enhancer
// @namespace https://www.pandora.com/
// @version 1.0
// @description hides perma-sidebar for ads
// @author www.github.com/RealDyllon
// @match https://www.pandora.com/*
// @icon https://www.google.com/s2/favicons?domain=pandora.com
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
@maoueh
maoueh / gist:8260199
Last active March 31, 2022 12:30
OpenELEC (4.0.1) WIFI connection details using `connman`

Even though there is a nice XBMC add-on to configure your WIFI settings, sometimes, you may still want to setup the WIFI connection for many reasons or just for fur.

OpenELEC use connman for managing connection to the various available network.

Setuping connman to connect to your protected WIFI network is an easy requiring you only to create a config file and enter some commands in a shell.

@tyhawkins
tyhawkins / zoom-mute-status.scpt
Last active May 27, 2022 20:51
Get Zoom Mute/Unmute Status
property btnTitle : "Mute audio"
if application "zoom.us" is running then
tell application "System Events"
tell application process "zoom.us"
if exists (menu item btnTitle of menu 1 of menu bar item "Meeting" of menu bar 1) then
set returnValue to "Unmuted"
else
set returnValue to "Muted"
end if
@szaydel
szaydel / afp-krb5.conf
Last active July 8, 2022 15:41 — forked from oscarcck/afp.conf
AFP Configuration File Examples
; Copyright 2009-2015 RackTop Systems Inc. and/or its affiliates.
; http://www.racktopsystems.com
;
; The methods and techniques utilized herein are considered TRADE SECRETS
; and/or CONFIDENTIAL unless otherwise noted. REPRODUCTION or DISTRIBUTION
; is FORBIDDEN, in whole and/or in part, except by express written permission
; of RackTop Systems.
;
; @@DESCRIPTION@@ Configuration file for Netatalk -- Apple Filing Protocol.
; @@NAME@@ afp.conf
@davidebbo
davidebbo / web.config
Created January 16, 2016 20:52
Default web.config used for node.js apps on Azure Web Apps
<?xml version="1.0" encoding="utf-8"?>
<!--
This configuration file is required if iisnode is used to run node processes behind
IIS or IIS Express. For more information, visit:
https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->
<configuration>
<system.webServer>
@Atinux
Atinux / async-foreach.js
Last active October 10, 2023 03:04
JavaScript: async/await with forEach()
const waitFor = (ms) => new Promise(r => setTimeout(r, ms))
const asyncForEach = async (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
}
}
const start = async () => {
await asyncForEach([1, 2, 3], async (num) => {
await waitFor(50)