Skip to content

Instantly share code, notes, and snippets.

@worawatyao
worawatyao / bungee.xml
Last active July 9, 2023 06:02
Appcast bungee workout
<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:sparkle="http://www.andymatuschak.org/xml-namespaces/sparkle">
<channel>
<title>bungee workout - Appcast</title>
<item>
<title>Version 1.0.3</title>
<description>Minor updates and improvements.</description>
<pubDate>Fri, 07 Jul 2023 12:00:00 +0000</pubDate>
<enclosure url="https://play.google.com/store/apps/details?id=com.bungeeworkout" sparkle:version="1.15.1" sparkle:os="android" />
</item>
@worawatyao
worawatyao / GitHub-Forking.md
Created May 11, 2022 09:42 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

php7

  1. Install the Visual C++ Redistributable for Visual Studio 2019.
  2. Download PHP for Windows. Prefer 7.4 VC15 x64 Non Thread Safe .zip file
  3. Unzip to C:\PHP7.
  4. In the C:\PHP7 folder, rename the file php.ini-development to php.ini.
  5. Edit php.ini.
    • Change memory_limit from 128M to 1G.
    • Uncomment the line that reads ; extension_dir = "ext"
  • Uncomment the following lines: extension=...
@worawatyao
worawatyao / testserver.js
Last active March 24, 2020 07:32
Express nodejs handles form upload with multiple file fields
var express = require('express');
var app = express();
var multer = require('multer')
var cors = require('cors');
app.use(cors());
app.use(express.static('public'))
var storage = multer.diskStorage({
destination: function (req, file, cb) {
@worawatyao
worawatyao / sendMail.go
Created April 27, 2017 05:40 — forked from andelf/sendMail.go
golang send mail net/smtp SMTP
package main
import (
"log"
"net/mail"
"encoding/base64"
"net/smtp"
"fmt"
"strings"
@worawatyao
worawatyao / authentication.ts
Created March 28, 2017 05:04 — forked from btroncone/authentication.ts
Angular 2 application role access decorator, wrapping built in CanAccess functionality. Prevents view transitions when user roles are not appropriate.
import { Injectable } from 'angular2/core';
import { Storage } from './storage';
import { CurrentUser } from '../interfaces/common';
@Injectable()
export class Authentication{
private _storageService : Storage;
private _userKey : string = "CURRENT_USER";
constructor(storageService : Storage){
{"name": "apple", "color": "green"}