Skip to content

Instantly share code, notes, and snippets.

View JacobWay's full-sized avatar

Jacob Way JacobWay

View GitHub Profile
@JacobWay
JacobWay / scrape_ftx.py
Created November 10, 2022 17:17 — forked from sbarratt/scrape_ftx.py
A script to export all FTX history
import pandas as pd
import time
import requests
import time
import hmac
from requests import Request
import sys
import json
api_key = input("Enter api key:")
@JacobWay
JacobWay / git-overwrite-branch.sh
Created May 3, 2018 04:17 — forked from ummahusla/git-overwrite-branch.sh
Git overwrite branch with another branch
# overwrite master with contents of seotweaks branch (seotweaks > master)
git checkout seotweaks # source name
git merge -s ours master # target name
git checkout master # target name
git merge seotweaks # source name
@JacobWay
JacobWay / es6 develop environment
Created March 23, 2018 09:58
es6 develop environment
install global babel-cli
`npm install --global babel-cli`
create .babelrc configuration file
run the babel command
@JacobWay
JacobWay / http_status_codes
Last active September 6, 2017 01:56
HTTP status codes
# HTTP Status Codes
* 1xx Informational responses
** 100 Continue
* 2xx Success
* 3xx Redirection
* 4xx Client errors
* 5xx Server errors
@JacobWay
JacobWay / moving git repository to a new repository.md
Created April 20, 2017 03:32
moving git repository to a new repository
  1. Add old remote server to the existing repository
git remote add <old-remote-server-name> <old-remote-server-address>
  1. Pull the branch of old remote server to the local
git pull <old-remote-server-name> <remote-branch-name>
  1. Push the branch to the new remote server
@JacobWay
JacobWay / multiple applications on front end project.md
Created April 9, 2017 01:18
multiple applications on one front end project, webpack, html-webpack-plugin

webpack

module.exports = {
  entry: {
    'app1': 'path/to/app1',
    'app2': 'path/to/app2'
  },
  output: {
    path: 'your/local/file/path',
 filename: 'subdirectory/[name].js'
@JacobWay
JacobWay / iterm terminal.md
Last active March 28, 2017 02:25
iterm terminal

iterm

Adjusting font size in one tab, when open a new tab, get the new size

cmd-i and then click Copy Preferences to Profile.
reference link

@JacobWay
JacobWay / git.md
Last active March 26, 2017 03:59
about git

Git

Git configuration

  • Change your editor git config --global core.editor vim

  • Change your merge tool git config --global merge.tool vimdiff git config --global merge.conflictstyle diff3

@JacobWay
JacobWay / ssh.md
Created March 26, 2017 02:38
About ssh

SSH

Generate passphrase

dd if=/dev/urandom bs=16 count=1 2&gt;/dev/null | base64 | sed 's/=//g'

@JacobWay
JacobWay / node version manager nvm.md
Last active March 25, 2017 05:08
node version manager nvm

NVM

Installation

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

The script clones the nvm repository to ~/.nvm and adds the source line to your profile (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).

export NVM_DIR="$HOME/.nvm"