Skip to content

Instantly share code, notes, and snippets.

View Gdaimon's full-sized avatar
🏠
Working from home

Carlos Andrés Charris S Gdaimon

🏠
Working from home
View GitHub Profile
@Gdaimon
Gdaimon / .gitignore Java
Created August 16, 2019 03:58 — forked from dedunumax/.gitignore Java
A complete .gitignore file for Java
##########################
## Java
##########################
*.class
.mtj.tmp/
*.jar
*.war
*.ear
hs_err_pid*
@Gdaimon
Gdaimon / post-WSL.md Installing node via windows subsystem for linux

Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL)

Windows just released the windows subsystem for linux feature to the public with its latest windows fall creator update, if you are not familiar with this feature it allows you to run linux binaries natively on windows - F.A.Q.

Enabling WSL

The feature is not enabled by default and you need to activate it, you can do it via powershell (with admin rights):

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Or you can open: Control-Panel -> Programs -> Turn Windows feature on ro off, and click the "windows subsystem for linux (beta)" button.

@Gdaimon
Gdaimon / NPM INIT DEFAULTS.md
Created November 25, 2018 13:55 — forked from jamestalmage/NPM INIT DEFAULTS.md
Set up npm.init defaults

copied from iamsim

$ npm config set init.author.name "James Talmage"
$ npm config set init.author.email james@talmage.io
$ npm config set init.author.url http://iamsim.me/
$ npm config set init.license MIT
@Gdaimon
Gdaimon / postgres-brew.md
Created November 18, 2018 12:11 — forked from ibraheem4/postgres-brew.md
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@Gdaimon
Gdaimon / gist:1d55431ec0f7168c0dd3d3004b4a124e
Created November 4, 2018 01:48 — forked from tonymtz/gist:d75101d9bdf764c890ef
Uninstall nodejs from OSX Yosemite
# first:
lsbom -f -l -s -pf /var/db/receipts/org.nodejs.pkg.bom | while read f; do sudo rm /usr/local/${f}; done
sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.*
# To recap, the best way (I've found) to completely uninstall node + npm is to do the following:
# go to /usr/local/lib and delete any node and node_modules
cd /usr/local/lib
sudo rm -rf node*
@Gdaimon
Gdaimon / LICENCE SUBLIME TEXT
Created September 19, 2018 00:45
Sublime Text 3 Serial key build is 3176
## Sublime Text 3 Serial key build is 3176
> * Added these lines into /etc/hosts
127.0.0.1 www.sublimetext.com
127.0.0.1 license.sublimehq.com
> * Used the license key
----- BEGIN LICENSE -----
@Gdaimon
Gdaimon / config.fish
Created September 2, 2018 18:16 — forked from jackgris/config.fish
Example of config for fish shell
## Lenguaje Go
set --export GOROOT /usr/local/go
set -gx PATH /usr/local/go/bin $PATH
#set -gx PATH GOROOT/bin $PATH
set --export GOPATH $HOME/GoProjects
set -gx PATH $GOPATH/bin $PATH
## AppEngine para GO
set -gx PATH $HOME/programs/go_appengine $PATH

Array<T>

Legend:

  • ✏️ method changes this.
  • 🔒 method does not change this.

Array<T>.prototype.*:

  • concat(...items: Array): T[] 🔒 ES3
@Gdaimon
Gdaimon / firesheetz.ts
Created December 12, 2017 20:07 — forked from CodingDoug/README.md
Copying data from Firebase Realtime Database to a Google Sheet in real time via Cloud Functions
// Copyright 2017 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@Gdaimon
Gdaimon / starUML.md
Created October 21, 2017 04:52 — forked from trandaison/starUML.md
Get full version of StarUML

StarUML

Download: StarUML.io

Crack

Source: jorgeancal

After installing StartUML successfully, modify LicenseManagerDomain.js as follow:

/**