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 / Linux pratical knowledge base.md
Last active May 28, 2017 03:52
The notes about linux command

Linux commands

curl

Curl is a tool to transfer data from or to a server.
curl -X POST "name=you&code=0" http://localhost:9999

man

man section <name>
Sections are well defined:

  • 1 is for shell commands
@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 / photoshop-design-basics.md
Last active March 28, 2017 13:00
photoshop design basics

Photoshop design basics

Create your first design

Get to know layers

Layers are the building blocks of any photoshop design.

Combine images using layer masks

Layer masks are the most flexible way to combine images.

@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