Skip to content

Instantly share code, notes, and snippets.

I have no idea how to code

Verdi Pratama verdipratama

I have no idea how to code
View GitHub Profile
verdipratama /
Created Feb 22, 2021 — forked from NigelEarle/
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

verdipratama /
Created Jan 11, 2021 — forked from brainlagid/
Setup Laravel with [Ubuntu 20.04]

Server Requirement

  • Redis sudo apt install redis-server
  • Composer here
  • npm sudo apt install nodejs npm
  • laravel-echo-server npm install -g laravel-echo-server

Laravel Dependencies Requirement

  • predis
  • laravel-echo
  • ^2.4.0 issue
verdipratama /
Created Oct 6, 2020
Microsoft Vista TrueType Fonts 2020
# Author: Maxwel Leite
# Website:
# Description: Script to install Microsoft Vista TrueType Fonts (TTF) aka Microsoft’s ClearType fonts on Ubuntu distros
# Microsoft added a group of new "ClearType Fonts" to Windows with Windows Vista and Office 2007.
# These fonts are named Constantia, Corbel, Calibri, Cambria (and Cambria Math), Candara, and Consolas.
# Calibri became the default font on Microsoft Word 2007, and it’s still the default font on Word 2016 today.
# Dependencies: wget, fontforge and cabextract
# Note: Microsoft no longer provides the PowerPoint Viewer 2007 (v12.0.4518.1014) or any version anymore for download
# Tested: Ubuntu Saucy/Trusty/Xenial/Bionic

VSCode - ESLint, Prettier & Airbnb Setup

1. Install ESLint & Prettier extensions for VSCode

Optional - Set format on save and any global prettier options

2. Install Packages

npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
import requests
import sys
import json
def waybackurls(host, with_subs):
if with_subs:
url = '*.%s/*&output=json&fl=original&collapse=urlkey' % host
url = '*&output=json&fl=original&collapse=urlkey' % host
verdipratama / .editorconfig
Created Mar 2, 2019
My editorconfig setup
View .editorconfig
# EditorConfig. Frontend. Default. Namics.
# @see:
# install a plugin to your editor:
# mark: not all plugins supports the same EditorConfig properties
# This is the top-most .editorconfig file (do not search in parent directories)
root = true
### All files