Skip to content

Instantly share code, notes, and snippets.

View viniciusdiogo's full-sized avatar

Vinicius Diogo de Melo viniciusdiogo

View GitHub Profile
@jamzi
jamzi / gist:aff85aa192b8addab2b560db5d849a2a
Created January 19, 2019 16:02
Electron-builder - Building Windows app on Linux (Docker image)
docker run --rm -ti \
--env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS_TAG|TRAVIS|TRAVIS_REPO_|TRAVIS_BUILD_|TRAVIS_BRANCH|TRAVIS_PULL_REQUEST_|APPVEYOR_|CSC_|GH_|GITHUB_|BT_|AWS_|STRIP|BUILD_') \
--env ELECTRON_CACHE="/root/.cache/electron" \
--env ELECTRON_BUILDER_CACHE="/root/.cache/electron-builder" \
-v ${PWD}:/project \
-v ${PWD##*/}-node-modules:/project/node_modules \
-v ~/.cache/electron:/root/.cache/electron \
-v ~/.cache/electron-builder:/root/.cache/electron-builder \
electronuserland/builder:wine
@marylly
marylly / kubernetes.sh
Last active February 9, 2024 01:53
Bash commands for Kubernetes
# Instalação Kubernetes
# curl -fsSL https://get.docker.com | bash
# apt-get update && apt-get install apt-transport-https
# vim /etc/source.list.d/kubernetes.list
# deb http://apt.kubernetes.io/ kubernetes-xenial main
# apt-get update
# apt-get install -y kubelet kubectl kubeadm
# vim /etc/sysctl.conf
# net.bridge.bridge-nf-call-ip6tables = 1
# net.bridge.bridge-nf-call-iptables = 1
# API Codex #
## API Document URLs ##
- _BitBucket_
- https://developer.atlassian.com/bitbucket/api/2/reference/resource/
- https://confluence.atlassian.com/bitbucket/use-the-bitbucket-rest-apis-222724129.html
- _GitHub_
- https://developer.github.com/v3/
- _GitLab_
- http://docs.gitlab.com/ce/api/README.html
@jgrodziski
jgrodziski / docker-aliases.sh
Last active February 8, 2026 16:30
Useful Docker Aliases
############################################################################
# #
# ------- Useful Docker Aliases -------- #
# #
# # Installation : #
# copy/paste these lines into your .bashrc or .zshrc file or just #
# type the following in your current shell to try it out: #
# wget -O - https://gist.githubusercontent.com/jgrodziski/9ed4a17709baad10dbcd4530b60dfcbb/raw/d84ef1741c59e7ab07fb055a70df1830584c6c18/docker-aliases.sh | bash
# #
# # Usage: #
@sampaiodiego
sampaiodiego / Install Lets Encrypt.md
Last active June 18, 2024 22:49
Steps to install Letsencrypt
" Make IE Better Compatible "
<!--[if IE]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
======================================================
IE6 Only
==================
_selector {...}
var Crawler = require("simplecrawler");
var querystring = require('querystring');
var myCrawler = new Crawler("www.geocaching.com", "/login/");
myCrawler.initialProtocol = "https";
myCrawler.acceptCookies = true;
myCrawler.on("addcookie", function (cookie) {
console.log("Cookie");
});
@michaelcontento
michaelcontento / bitbucket.sh
Created January 7, 2014 16:49
clone all github and bitbucket repositories
curl --user 'USER:PASS' -s https://bitbucket.org/api/2.0/repositories/michaelcontento | ruby -rjson -e 'JSON.load(STDIN.read)["values"].each {|repo| %x[git clone #{repo["links"]["clone"][1]["href"]} ]}'
@nickrussler
nickrussler / gist:7527851
Created November 18, 2013 13:39
Convert Date String to/from ISO 8601 respecting UTC in Java
public static String toISO8601UTC(Date date) {
TimeZone tz = TimeZone.getTimeZone("UTC");
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");
df.setTimeZone(tz);
return df.format(date);
}
public static Date fromISO8601UTC(String dateStr) {
TimeZone tz = TimeZone.getTimeZone("UTC");
DateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");
@hofmannsven
hofmannsven / README.md
Last active February 24, 2026 02:03
Git CLI Cheatsheet