Skip to content

Instantly share code, notes, and snippets.

View thanhvuong's full-sized avatar
🏠
Working from home

Thanh Vuong thanhvuong

🏠
Working from home
View GitHub Profile
export { mergeServerSideProps } from './merge-server-side-props'
export { mergeStaticProps } from './merge-static-props'
@benjamincharity
benjamincharity / autonomous.txt
Last active January 16, 2025 15:09
Instructions on how to reset the autonomous desk. This fixes a problem where the desk will not lower (also reportedly fixes incorrectly reported heights).
> Thank you for reaching out to Autonomous! I am sorry to hear that you are having some trouble with your SmartDesk
> but I will be glad to assist. It sounds like your system needs a "hard reset" can I please have you follow these
> steps thoroughly.
Reset Steps:
1. Unplug the desk for 20 seconds. Plug it back in. Wait a full 20 seconds.
2. Press the up and down buttons until the desk lowers all the way and beeps or 20 seconds pass.
3. Release both buttons.
4. Press the down buttons until the desk beeps one more time or 20 seconds pass.
@mwickett
mwickett / formikApollo.js
Last active December 20, 2022 23:00
Formik + Apollo
import React from 'react'
import { withRouter, Link } from 'react-router-dom'
import { graphql, compose } from 'react-apollo'
import { Formik } from 'formik'
import Yup from 'yup'
import FormWideError from '../elements/form/FormWideError'
import TextInput from '../elements/form/TextInput'
import Button from '../elements/form/Button'
import { H2 } from '../elements/text/Headings'
@patpohler
patpohler / Big List of Real Estate APIs.md
Last active March 31, 2025 15:49
Evolving list of Real Estate APIs by Category

Big List of Real Estate APIs

Listings / Property Data

####Rets Rabbit http://www.retsrabbit.com

Rets Rabbit removes the nightmare of importing thousands of real estate listings and photos from RETS or ListHub and gives you an easy to use import and Web API server so you can focus on building your listing search powered website or app.

@sr229
sr229 / bot-es6.js
Last active March 25, 2018 08:32
A Discord bot written in ES6 JavaScript format.
/* Project Clementine
* this is an experimental ES6 implementation
* some features don't work
* use at your own risk.
* -Capuccino
*/
"use strict";
import {Discord} from "discord.js";
import {fs} from "fs";
import {util} from "util";
@ryzy
ryzy / haproxy.cfg
Created March 13, 2016 00:23
HAProxy - essentials for HTTP/2
frontend https-in
mode tcp
bind *:443 ssl crt /etc/ssl/dummy.pem alpn h2,http/1.1
use_backend nodes-http2 if { ssl_fc_alpn -i h2 }
default_backend nodes-http
backend nodes-http
server node1 web.server:80 check
backend nodes-http2
@ryzy
ryzy / haproxy.cfg
Created March 13, 2016 00:20
HAProxy conf with SSL termination and HTTP/2 support
global
#debug
chroot /var/lib/haproxy
user haproxy
group haproxy
pidfile /var/run/haproxy.pid
# Default SSL material locations
ca-base /etc/ssl/certs
crt-base /etc/ssl/private
@thisismitch
thisismitch / haproxy.cfg
Last active October 18, 2024 15:19
Let's Encrypt Auto-Renewal script for HAProxy
global
log /dev/log local0
log /dev/log local1 notice
chroot /var/lib/haproxy
stats socket /run/haproxy/admin.sock mode 660 level admin
stats timeout 30s
user haproxy
group haproxy
daemon
maxconn 2048
@sbstnmsch-zz
sbstnmsch-zz / lets-encrypt-to-support-http-2-on-nginx.md
Last active April 12, 2016 05:04
HTTP/2 is here. Now let's encrypt and use it with nginx!

HTTP/2 is here. Now let's encrypt and use it with nginx!

HTTP/2 has arrived in most recent browsers and is therefore ready to use (http://caniuse.com/#search=http2).

Generate lets-encrypt certificates

The Let's-Encrypt project allows you to generate SSL certificates for free. To start using it clone letsencrypt from github:

$ git clone https://github.com/letsencrypt/letsencrypt