Skip to content

Instantly share code, notes, and snippets.


Aurelio De Rosa AurelioDeRosa

View GitHub Profile
AurelioDeRosa /
Last active Jul 9, 2018
CPU-minable coins

CPU-minable coins

This file records the cpu-minable coins that I've experimented with. My goal is to keep a list of those that can be mined with a normal machine, like a home laptop, and are profitable. My definition of profitable is a coin that you can mine while using the machine for normal activities, like browsing the web, obtaining at least 1-2 coins per hour.

Last update: 06/01/2018


AurelioDeRosa / cloudSettings
Last active Apr 22, 2019
Visual Studio Code Sync Settings GIST
View cloudSettings
AurelioDeRosa / main.js
Last active Jun 20, 2016
Test if the options parameter of addEventListener() is supported and which options are available
View main.js
function getOptionsAvailable() {
var optionsAvailable = {
capture: false,
passive: false,
once: false
try {
var eventListenerOptions = {};
AurelioDeRosa / sum-strings.js
Created Jan 17, 2016
Sum stings representing numbers
View sum-strings.js
* Exercise:
* Given the string representations of a variable number of integers,
* write a function that returns the string representation of the sum of
* those integers. The function must return the correct result even
* if the sum of the numbers exceeds the maximum number allowed
* (Number.MAX_VALUE). In addition, it must work with negative integers.
AurelioDeRosa / dataset-api-shim.js
Created Nov 2, 2015
Simple shim for the Dataset API
View dataset-api-shim.js
// Shim for the Dataset API to set and get data
var data = (function() {
var supported = 'dataset' in document.createElement('div');
return function(element, property, value) {
if (arguments.length === 2) {
return supported ? element.dataset[property] : element.getAttribute('data-' + property);
} else if (arguments.length === 3) {
return supported ? element.dataset[property] = value : element.setAttribute('data-' + property, value);
AurelioDeRosa / cherry-pick.txt
Created Jun 8, 2015
Git commands to cherry pick commits
View cherry-pick.txt
git checkout -b otherrepo-master master
git pull master
git checkout master
git cherry-pick --strategy=recursive -X theirs <commit-hash>
git log
git branch -D otherrepo-master
git push origin master
AurelioDeRosa / .csslintrc
Created May 6, 2015
.csslintrc by Aurelio De Rosa
View .csslintrc
"adjoining-classes": true,
"box-model": false,
"box-sizing": false,
"bulletproof-font-face": 2,
"compatible-vendor-prefixes": false,
"display-property-grouping": true,
"duplicate-background-images": 2,
"duplicate-properties": 2,
"empty-rules": 2,
AurelioDeRosa /
Created Apr 18, 2015
Script to restart MySQL if it goes down
ps auxw | grep mysql | grep -v grep
if [ $? != 0 ]
sudo service mysql start