SSH into Root
$ ssh [email protected]
Change Root Password
(function (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
FROM node | |
ENV PORT 80 | |
EXPOSE 80 | |
ENV NODE_ENV production | |
RUN git clone https://github.com/DemocracyOS/democracyos.git /opt/app | |
WORKDIR /opt/app | |
RUN npm install |
/* bling.js */ | |
window.$ = document.querySelector.bind(document); | |
window.$$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
NodeList.prototype.__proto__ = Array.prototype; | |
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |
SSH into Root
$ ssh [email protected]
Change Root Password
# lib/capistrano/tasks/assets.rake | |
Rake::Task['deploy:assets:precompile'].clear | |
namespace :deploy do | |
namespace :assets do | |
desc 'Precompile assets locally and then rsync to remote servers' | |
task :precompile do | |
local_manifest_path = %x{ls public/assets/manifest*}.strip |
I know this document seems long, but it shouldn't be too difficult to follow. This guide is based on Windows, but every program here has Linux/Mac equivalents, and in most cases they're built-in. So, take a deep breath and go step by step.
The steps below are for GitHub, but the steps are almost idential for Bitbucket, Heroku, etc.
You'll probably want to make sure Chocolatey is installed, since it streamlines installing this stuff later. If you install via Chocolatey, you don't need to run the installers from the products' respective sites.
This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!
A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.
Here are the steps:
/* Justify inline block elements for a percentage grid without specifying margins: LESS mixin. See http://www.barrelny.com/blog/text-align-justify-and-rwd/ */ | |
.jgroup { | |
text-align: justify; | |
font-size: .01px; | |
&:after{ | |
content: ''; | |
display: inline-block; | |
width: 100%; |
# | |
# "<cmd>" <retry times> <retry wait> | |
# | |
do_retry() | |
{ | |
cmd="$1" | |
retry_times=$2 | |
retry_wait=$3 | |
c=0 |