sudo apt update -y
sudo apt upgrade -y
git config --global user.name bryan
git config --global user.email [email protected]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ******************************************************************************************* | |
* REACT.JS CHEATSHEET | |
* DOCUMENTATION: https://reactjs.org/docs/ | |
* FILE STRUCTURE: https://reactjs.org/docs/faq-structure.html | |
* ******************************************************************************************* */ | |
``` | |
npm install --save react // declarative and flexible JavaScript library for building UI | |
npm install --save react-dom // serves as the entry point of the DOM-related rendering paths |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Single-line comments start with two slashes. | |
/* Multiline comments start with slash-star, | |
and end with star-slash */ | |
// Statements can be terminated by ; | |
doStuff(); | |
// ... but they don't have to be, as semicolons are automatically inserted | |
// wherever there's a newline, except in certain cases. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# A simple Arch Linux backup script. | |
# | |
# Example config that targets external mount, keeping backups for a week and | |
# mirror the backups to local and external disks: | |
# | |
# $ cat /etc/backuprc | |
# backup_target=/mnt/data01/myhost | |
# backup_days_kept=7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1. Open the browser developper console on the network tab | |
// 2. Start the video | |
// 3. In the dev tab, locate the load of the "master.json" file, copy its full URL | |
// 4. Run: node vimeo-downloader.js "<URL>" | |
// (done automatically now) 5. Combine the m4v and m4a files with mkvmerge | |
const fs = require('fs'); | |
const url = require('url'); | |
const https = require('https'); | |
const { exec } = require('child_process'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>True Trello Printer</title> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
body { | |
margin: 15%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Archives | |
* A compressed collection of data. | |
*/ | |
a[href$=".7z"], | |
a[href$=".cab"], | |
a[href$=".gz"], | |
a[href$=".lzh"], | |
a[href$=".rar"], | |
a[href$=".tar"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set software sources to server for united states | |
# | |
# For other software: | |
## VLC from software center | |
## virtual box from software center | |
## PDF Mod from software center | |
## shutter from software center | |
## kazam from software center | |
## install unity tweak tool from software center | |
## install rebar: pull from github (for building erlang applications) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |