Skip to content

Instantly share code, notes, and snippets.

View RealDyllon's full-sized avatar
🎯
Focusing

Dyllon Gunawardhana RealDyllon

🎯
Focusing
View GitHub Profile
const https = require('https');
const querystring = require('querystring');
exports.handler = async(event) => {
let dataString = '';
const httpOrigin = event.headers.origin
const allowedOrigins = [
"https://supermarkets.dyllon.dev"
const https = require('https');
const querystring = require('querystring');
exports.handler = async(event) => {
let dataString = '';
const httpOrigin = event.headers.origin
const allowedOrigins = [
"https://supermarkets.dyllon.dev"
const https = require('https');
const querystring = require('querystring');
exports.handler = async(event) => {
let dataString = '';
const httpOrigin = event.headers.origin
const allowedOrigins = [
"https://supermarkets.dyllon.dev"
@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
-->
@RealDyllon
RealDyllon / express_app.js
Last active October 14, 2020 10:14
server.js
const express = require("express");
const app = express();
app.listen(3000, () => {
console.log("Server running on port 3000");
});
app.all("/", (req, res) => {
res.set({
"Content-Type": "application/json",
@RealDyllon
RealDyllon / print_c_support.c
Last active November 14, 2020 09:41
Print C Version Compiler Support
#if defined(__STDC__)
printf("Supports C89\n");
# if defined(__STDC_VERSION__)
printf("Supports C90\n");
# if (__STDC_VERSION__ >= 199409L)
printf("Supports C94\n");
# endif
# if (__STDC_VERSION__ >= 199901L)
printf("Supports C99\n");
# endif
#!/usr/bin/env bash
apt update
apt upgrade
apt install build-essentials
dpkg --add-architecture i386
apt install wine64 wine32
apt install dpkg fakeroot rpm
@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
@RealDyllon
RealDyllon / AppDelegate.m
Created January 10, 2021 05:43
react-native-firebase iOS Configuration with Expo Bare
#import <Firebase.h> // see: https://rnfirebase.io/#configure-firebase-with-ios-credentials
#import "RNFBMessagingModule.h"
#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import <UMCore/UMModuleRegistry.h>
#import <UMReactNativeAdapter/UMNativeModulesProxy.h>

CZ1115 Code Snippets and Samples

Made with ♥️ by Dyllon