Skip to content

Instantly share code, notes, and snippets.

@ffan0811
ffan0811 / countries.json
Created July 6, 2023 15:08 — forked from keeguon/countries.json
A list of countries in JSON
[
{name: 'Afghanistan', code: 'AF'},
{name: 'Åland Islands', code: 'AX'},
{name: 'Albania', code: 'AL'},
{name: 'Algeria', code: 'DZ'},
{name: 'American Samoa', code: 'AS'},
{name: 'AndorrA', code: 'AD'},
{name: 'Angola', code: 'AO'},
{name: 'Anguilla', code: 'AI'},
{name: 'Antarctica', code: 'AQ'},
@ffan0811
ffan0811 / gitcommands.md
Created September 2, 2020 15:33
Git commands

How to remember your username before you push on terminal

git config --global credential.https://github.com.username <your_username>

  • Check history git config --global --edit
  • Delete cache every an hour git config --global credential.helper 'cache --timeout=3600'
@ffan0811
ffan0811 / gist:ae034c0dafe024d79805d544aa862fec
Created June 3, 2020 01:08 — forked from JarenGlover/gist:d7ffab312ea756834218
Nginx - Reverse Proxy | Backend & Front End Example
upstream fuel {
# Defines a group of servers. Servers can listen on different ports.
server IP:PORT fail_timeout=0;
}
upstream frontend {
server IP:PORT fail_timeout=0;
}
.border-gradient-with-radius {
border: 1px solid transparent;
border-radius: 3px;
background-image: linear-gradient(white, white), radial-gradient(circle at top left, #0099CC, #154CF3);
background-origin: border-box;
background-clip: content-box, border-box;
}