Skip to content

Instantly share code, notes, and snippets.

View loperd's full-sized avatar
🌴

Roman loperd

🌴
View GitHub Profile
@loperd
loperd / index.js
Created October 5, 2018 11:33 — forked from tuwukee/index.js
// todos-vue/src/backend/axios/index.js
import axios from 'axios'
const API_URL = 'http://localhost:3000'
const securedAxiosInstance = axios.create({
baseURL: API_URL,
withCredentials: true,
headers: {
@loperd
loperd / parse_dotenv.bash
Created August 4, 2019 08:36 — forked from judy2k/parse_dotenv.bash
Parse a .env (dotenv) file directly using BASH
# Pass the env-vars to MYCOMMAND
eval $(egrep -v '^#' .env | xargs) MYCOMMAND
# … or ...
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
@loperd
loperd / tmux-cheatsheet.markdown
Created January 29, 2020 10:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@loperd
loperd / iptables.rule
Created February 19, 2023 11:42 — forked from Maxopoly/iptables.rule
IP tables for Minecraft
#You probably want to do this in root to reduce the amount of sudos required
su -
#Install iptables if you haven't already
#Alternatively use packet manager of your choice
apt-get install iptables
#Allow all incoming traffic to begin with
iptables -P INPUT ACCEPT
#Clean out any existing input rules. You may also remove the "INPUT" argument and run only "iptables -F" to clear all chains. When doing so, make sure there are no rules in other chains that you still need (list via "iptables -L"), for example Oracle cloud servers will have preset rules, which should not be removed.