Skip to content

Instantly share code, notes, and snippets.

View longseespace's full-sized avatar
🎯
Focusing

Daniel Nguyen longseespace

🎯
Focusing
View GitHub Profile
@longseespace
longseespace / send-critical-update-email.js
Created September 22, 2022 05:28
Send bulk email to users using MailerSend
const Recipient = require('mailersend').Recipient;
const EmailParams = require('mailersend').EmailParams;
const BulkEmails = require('mailersend').BulkEmails;
const MailerSend = require('mailersend');
const users = require('./users');
const MAILERSEND_API_KEY = process.env.MAILERSEND_API_KEY;
if (!MAILERSEND_API_KEY) {
console.error('MAILERSEND_API_KEY is required');
@longseespace
longseespace / SignInForm.js
Created January 13, 2022 08:16
Debug Component Mount Lifecycle
import { useMountDebug } from './useMountDebug';
function SignInForm(props) {
useMountDebug('SignInForm');
return (<div></div>)
}
@longseespace
longseespace / README.md
Created September 8, 2021 05:46 — forked from andreasonny83/README.md
Readme template

npm version code style: prettier

Project Name

Write a project description

Prerequisites

This project requires NodeJS (version 8 or later) and NPM.

@longseespace
longseespace / 2019-https-localhost.md
Created September 6, 2021 11:13 — forked from cecilemuller/2019-https-localhost.md
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

Verifying my Blockstack ID is secured with the address 192WVK6hX8xVsFZQrB3bDU7YnR1z3VVr4i https://explorer.blockstack.org/address/192WVK6hX8xVsFZQrB3bDU7YnR1z3VVr4i
@longseespace
longseespace / install.sh
Last active February 14, 2017 10:57
install eh script
#!/usr/bin/env bash
set -e
if [[ ! -d "${HOME}/.eh" ]]; then
git clone --recursive -j4 git@github.com:Thinkei/dev-env.git ${HOME}/.eh
else
(cd ${HOME}/.eh && git fetch --all && git reset --hard origin/master)
fi
@longseespace
longseespace / gist:3937606
Created October 23, 2012 08:19
wp_rewrite hook
We couldn’t find that file to show.
@longseespace
longseespace / script.js
Created November 16, 2010 14:58
Zing Audio Player
var baseurl = 'http://mp3.zing.vn';
var token = 'fb01753add840692df1029d5508a8ee6';
var params = document.querySelectorAll('param[value*="mp3.zing.vn"]');
if (params.length > 0) {
for (var i=0; i < params.length; i++)
{
var zingPlaylist = new Array();
var object = params[i].parentNode;
var xmlurl = baseurl + object.querySelector('param[name=flashvars]').value.replace('xmlURL=', '');
var xmlhttp = new XMLHttpRequest();
Wed Oct 6 00:13:15 unknown UIKitApplication:com.quanganhdo.cyberspace[0xfbb9][488] <Notice>: dyld: Symbol not found: _OBJC_CLASS_$_UIMenuItem
Wed Oct 6 00:13:15 unknown UIKitApplication:com.quanganhdo.cyberspace[0xfbb9][488] <Notice>: Referenced from: /Applications/Cyberspace.app/Cyberspace
Wed Oct 6 00:13:15 unknown UIKitApplication:com.quanganhdo.cyberspace[0xfbb9][488] <Notice>: Expected in: /System/Library/Frameworks/UIKit.framework/UIKit
Wed Oct 6 00:13:15 unknown UIKitApplication:com.quanganhdo.cyberspace[0xfbb9][488] <Notice>: in /Applications/Cyberspace.app/Cyberspace
Wed Oct 6 00:13:17 unknown ReportCrash[489] <Notice>: Formulating crash report for process Cyberspace[488]
Wed Oct 6 00:13:18 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.quanganhdo.cyberspace[0xfbb9]) Job appears to have crashed: Trace/BPT trap
Wed Oct 6 00:13:18 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.quanganhdo.cyberspace[0xfbb9]) Throttling respawn: Will start in 2147483645 seconds
W
From 279e53c3abe39970f6cf946baec95a36f99d95d2 Mon Sep 17 00:00:00 2001
From: Chih-Wei Lee <dlackty@gmail.com>
Date: Thu, 10 Jun 2010 14:39:35 -0700
Subject: [UI|UICommon] remove the 3.2 keyboard APIs due to dyld errors on older OS versions
---
src/Three20UI/Sources/UIViewAdditions.m | 38 ++++++--------------
src/Three20UICommon/Sources/TTBaseViewController.m | 30 +++++-----------
2 files changed, 20 insertions(+), 48 deletions(-)