Skip to content

Instantly share code, notes, and snippets.

View franciskim's full-sized avatar

Francis Kim franciskim

View GitHub Profile
gabrielbarros / all-emojis.sql
Last active May 19, 2022 22:36
All emojis - full list (Emoji 14.0 / 2021)
-- MariaDB dump 10.19 Distrib 10.5.13-MariaDB, for debian-linux-gnu (x86_64)
-- Host: localhost Database: emoji
-- ------------------------------------------------------
-- Server version 10.5.13-MariaDB-1:10.5.13+maria~focal-log
/*!40101 SET NAMES utf8mb4 */;
nanspro /
Last active July 5, 2023 21:00
Create an end to end tutorial for building app on ENS

Getting started with ENS

Task Url:

What is ENS

ENS (Ethereum Name Service) is analogous to DNS (Domain Name System) for IP addresses, in that it maps a memorable shortcut to an address. ENS is a distributed, decentralized, open, and extensible naming system based on the Ethereum blockchain and a useful tool for developers to create more memorable names for their dapps.

An ENS name can be a subdomain of the root .eth domain, like "example.eth" or any subdomain of a subdomain, like "sub.example.eth", or "wallet.username.example.eth"

Using ENS we can map a friendly ENS name, e.g., "ethereum.eth", to an unfriendly Ethereum address, e.g., 0xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359. Users can then use the friendly name instead of the address, making it easier to remember, and reducing the chance of errors.

jsoverson / reddit-signup.js
Created December 3, 2018 17:46
Reddit signup script w/Puppeteer and 2Captcha
const puppeteer = require('puppeteer');
const request = require('request-promise-native');
const poll = require('promise-poller').default;
const siteDetails = {
sitekey: '6LeTnxkTAAAAAN9QEuDZRpn90WwKk_R1TRW_g-JC',
pageurl: ''
const getUsername = require('./get-username');
silvae86 / gist:bc2aef529b0cc7da827aee05225c9f26
Created November 13, 2017 17:26
Solving Spawn ENOMEM Error in Ubuntu + NodeJS
sudo fallocate -l 4G /swapfile #Create a 4 gigabyte swapfile
sudo chmod 600 /swapfile #Secure the swapfile by restricting access to root
sudo mkswap /swapfile #Mark the file as a swap space
sudo swapon /swapfile #Enable the swap
echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab #Persist swapfile over reboots (thanks for the tip, bman!)
import hashlib as hasher
import datetime as date
# Define what a Snakecoin block is
class Block:
def __init__(self, index, timestamp, data, previous_hash):
self.index = index
self.timestamp = timestamp = data
self.previous_hash = previous_hash
iaincollins / Google Spreadsheet.js
Last active May 30, 2021 16:03
Example Node.js code to append to a Google Spreadsheet every hour
* Append data to a Google Spreadsheet
* You will need a file called '.env' with the following values:
* - GOOGLE_ID (Google oAuth Client ID)
* - GOOGLE_SECRET (Google oAuth Client Secret)
* - GOOGLE_REFRESH_TOKEN (Google oAuth Refresh Token)
* - GOOGLE_SPREADSHEET_ID (Google Spreadsheet ID)
erickpatrick /
Last active April 30, 2020 01:16
Install php7.3-magento-ngnix
# ondrej best php apt-repository for php to be able to
# update and install PHP as needed
javilobo8 / download-file.js
Last active April 9, 2024 12:01
Download files with AJAX (axios)
url: 'http://localhost:5000/static/example.pdf',
method: 'GET',
responseType: 'blob', // important
}).then((response) => {
const url = window.URL.createObjectURL(new Blob([]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'file.pdf');
magnetikonline /
Last active September 21, 2022 05:34
Node.js HTTP receiving request dump server.

Node.js HTTP receiving request dump server

HTTP server which receives requests and dumps them to a flat file.


Start HTTP server:

$ nodejs ./httprequestdump.js
dtomasi / default
Last active December 8, 2023 04:20
Brew Nginx PHP7
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;