Skip to content

Instantly share code, notes, and snippets.

View herberthobregon's full-sized avatar
💻
Focusing

Herberth herberthobregon

💻
Focusing
View GitHub Profile
@steve981cr
steve981cr / How-to-Release-an-Electron-App-on-the-Microsoft-Store.md
Last active May 4, 2024 04:33
Step by step instructions on how to release an Electron app on the Microsoft Store. Uses Electron-builder to package the app.
@steve981cr
steve981cr / How-to-Release-an-Electron-App-on-the-Mac-App-Store.md
Last active May 4, 2024 04:33
Step by step instructions on how to release an Electron app on the Mac App Store. Uses Electron-builder to package the app.
@barbietunnie
barbietunnie / download-old-chrome-versions.md
Last active April 23, 2024 10:56
How to download old versions of Chrome

How to download old versions of Chrome

Click here to download old versions of Chrome for Linux, Mac and Windows.

The download_url field of the desired section houses the URL to the download.

Alternatively, for not too old versions, you can get it directly here.

@jherax
jherax / README.md
Last active February 12, 2024 14:53
Git Alias and Rebase

Git Alias and Git Rebase

WHEN TO DO REBASE

After each commit in our branch, in order to be up-to-date with the integration branch.

@WebReflection
WebReflection / hyper-lit.md
Last active November 8, 2022 03:55
lit-html is awesome, but it came afterwards

The history of hyperHTML followed by lit-html

While many remember the epic hyperHTML: A Virtual DOM Alternative post I've published the 5th of March 2017, the first official implementation of the library was working as hyperHTML.bind(node) function for tagged literals the day before, and it's been in my experiments folder already for a little while.

The hilarious reaction from the skeptical community

At first glance people couldn't believe performance of the DBMonster demo shown in that article,

@viecode09
viecode09 / Hadoop_install_osx.md
Created March 18, 2017 17:22
This is how to install hadoop on Mac OS

STEP 1: First Install HomeBrew, download it from http://brew.sh

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

STEP 2: Install Hadoop

$ brew search hadoop
$ brew install hadoop
@digitalprecision
digitalprecision / gist:735820df14f696fc2c6c8b251b2b05d6
Created October 11, 2016 16:26
Android Webview (default) with Runtime Permissions via k0shk0sh PermissionsHelper
package com.shouttag.mothership;
import android.app.Activity; // Need for constants
import android.content.DialogInterface; // Needed for building out dialog box
import android.content.Intent; // Needed for intent interaction (camera)
import android.graphics.Color; // Needed for alert dialog option coloring
import android.support.annotation.NonNull;
import java.io.File; // Needed for storing image in temp file on device
import java.io.IOException; // Needed for storing image in temp file on device
import java.text.SimpleDateFormat; // Needed for date formatting
@bag-man
bag-man / cpu.js
Last active May 5, 2024 22:16
How to calculate the current CPU load with Node.js; without using any external modules or OS specific calls.
var os = require("os");
//Create function to get CPU information
function cpuAverage() {
//Initialise sum of idle and time of cores and fetch CPU info
var totalIdle = 0, totalTick = 0;
var cpus = os.cpus();
//Loop through CPU cores
@lgueye
lgueye / validate-es-behaviour.sh
Created February 7, 2012 14:45
elasticsearch : dealing with case and accents
# delete index (will print an error if 'my_index' doesn't exist, you can safely ignore it)
curl -XDELETE 'http://localhost:9200/my_index'
# create index with its settings
curl -XPOST 'http://localhost:9200/my_index' -d '{
"index.analysis.analyzer.default.type":"custom",
"index.analysis.analyzer.default.tokenizer":"standard",
"index.analysis.analyzer.default.filter.0":"lowercase",
"index.analysis.analyzer.default.filter.1":"asciifolding"
}'