Skip to content

Instantly share code, notes, and snippets.

View maikosoft's full-sized avatar

Miguel Martínez maikosoft

View GitHub Profile
# remove specific file from git cache
git rm --cached filename
# remove all files from git cache
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"
--
-- PostgreSQL database dump
--
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
@maikosoft
maikosoft / setup-server.sh
Last active November 8, 2018 20:51
setup-server
#!/usr/bin/env bash
echo "Switch to root user"
printf 'EX7Yfrq5\n' | su - root
echo "Installing git"
# root user
apt-get install -y git