Skip to content

Instantly share code, notes, and snippets.

View mihailgolban's full-sized avatar
😉

Mihail Golban mihailgolban

😉
View GitHub Profile
@mihailgolban
mihailgolban / postgres-brew.md
Created October 16, 2021 19:33 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@mihailgolban
mihailgolban / index.js
Last active February 21, 2021 12:47
How to use npx to run gist based scripts
#!/usr/bin/env node
console.log("Hi Michael! I was executed from gist");
@mihailgolban
mihailgolban / plink-plonk.js
Created February 17, 2020 13:56 — forked from tomhicks/plink-plonk.js
Listen to your web pages
@mihailgolban
mihailgolban / deployment_guide.md
Created February 9, 2020 10:31 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel
@mihailgolban
mihailgolban / Remove all git tags
Created November 21, 2019 11:16 — forked from okunishinishi/Remove all git tags
Delete all git remote tags
#Delete local tags.
git tag -l | xargs git tag -d
#Fetch remote tags.
git fetch
#Delete remote tags.
git tag -l | xargs -n 1 git push --delete origin
#Delete local tasg.
git tag -l | xargs git tag -d
.confirm-wrapper {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: gray;
opacity: 0;
visibility: hidden;
transform: scale(1.1);
@mihailgolban
mihailgolban / 1zsh
Last active August 24, 2019 09:46
Creating a React and TypeScript project
npm init
npm install typescript --save-dev
@mihailgolban
mihailgolban / create-react-app
Last active August 24, 2019 09:06
Create react app using typescript
npx create-react-app my-react-ts-app --typescript
cd my-react-ts-app
npm install tslint tslint-react tslint-config-prettier --save-dev
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
function getAjax(url, success) {
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.onreadystatechange = function () {
if (xhr.readyState > 3 && xhr.status == 200) success(xhr.responseText);
};
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
xhr.send();
return xhr;
}