View arch-install.sh
# a instalacao e iniciada como sudo automaticamente
# define teclado abnt2
loadkeys br-abnt2
# aumenta fonte do terminal
setfont lat4-19
# altera lingua para instalacao
nano /etc/locale.gen
View manual
Somehow, I ended up without any xmodmap files on my Ubuntu install, so I had to find a different approach to this problem.
Take a look at the **xinput** command.
xinput list | grep -i mouse
which lists information about your mouse. It shows my mouse is "Dell Premium USB Optical Mouse" and also that I have "Macintosh mouse button emulation". Armed with that info, I can
xinput get-button-map "Dell Premium USB Optical Mouse"
View toImmutableProxy.js
function toImmutableProxy(any) {
switch(typeof any) {
case 'object':
case 'function':
case 'xml':
return new Proxy(any, {
set: function immutableProxySet() {
throw new Error('cannot set property, ' + any + ' is immutable.')
View manjaro-install.sh
# Prepare pacman
sudo mkdir -p /root/.gnupg
sudo pacman-key --init && sudo pacman-key --populate archlinux manjaro && sudo pacman-key --refresh-keys
# Remove packages
sudo pacman -R empathy accerciser gnome-chess gnome-sudoku gnome-tetravex polari five-or-more four-in-a-row steam-native ipython hitori gnome-klotski steam quadrapassel gnome-nibbles aisleriot lightsoff gnome-mahjongg gnome-mines iagno gnome-robots tali swell-foop
# Upgrade all
sudo pacman -Syyu
View plugins.js
function Modal(target, options) {
this.target = target ;
this.options = options;
}
Modal.prototype.show = function() {
}
$.fn.modal = function(options) {
... // instanciar e armazenar o plugin --> new Modal($(this), options)
View .fonts.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
View assets.md

Assets library

View pi-motd.sh
#!/bin/bash
echo "$(tput setaf 2)
.~~. .~~.
'. \ ' ' / .'$(tput setaf 1)
.~ .~~~..~.
: .~.'~'.~. :
~ ( ) ( ) ~
( : '~'.~.'~' : )
~ .~ ( ) ~. ~
( : '~' : ) $(tput sgr0)Raspberry Pi$(tput setaf 1)
View load-script.js
function loadScript(url, callback)
{
// Adding the script tag to the head as suggested before
var head = document.getElementsByTagName('head')[0];
var script = document.createElement('script');
script.type = 'text/javascript';
// Then bind the event to the callback function.
// There are several events for cross browser compatibility.
if (script.readyState){ //IE
View node-clustering.js
var cluster = require('cluster')
if (cluster.isMaster) {
console.log('Master cluster setting up ' + numWorkers + ' workers...')
cluster.on('online', worker => {
console.log('Worker ' + worker.process.pid + ' is online')
})