Skip to content

Instantly share code, notes, and snippets.

View broilogabriel's full-sized avatar
:shipit:

Gabriel Broilo Luz broilogabriel

:shipit:
View GitHub Profile
@broilogabriel
broilogabriel / wsl2.md
Created July 7, 2020 12:27 — forked from rfaita/wsl2.md
Installing WSL2 on Windows 10

Install and configure WSL2 on windows 10

Install WSL2

Using the following link here install the WSL 2 on your windows 10.

Install X-Server

VcXsrv seems to the best choice for X-Server in Windows

@broilogabriel
broilogabriel / netExtender.md
Last active March 12, 2020 18:51 — forked from youribonnaffe/netExtender Ubuntu install and service
netExtender Ubuntu 14.04 Install and run as a service
@broilogabriel
broilogabriel / netextender
Created March 12, 2020 17:32
upstart init.d script for running Dell SonicWALL NetExtender as a service. Script should be in /etc/init.d/netextender Configuration goes in /etc/default/netextender Than run: sudo update-rc.d netextender defaults
#!/bin/sh
# defaults for NetExtender Dell VPN Client
# sourced by /etc/init.d/netextender
# should be placed in /etc/default/netextender
# Enable or disable the daemon
ENABLE_DAEMON=1
# Path to daemon
DAEMON=/usr/sbin/netExtender
@broilogabriel
broilogabriel / windowing.scala
Created September 22, 2017 09:41 — forked from adamw/windowing.scala
Windowing data in Akka
package com.softwaremill.akka
import java.time._
import akka.actor.ActorSystem
import akka.stream.ActorMaterializer
import akka.stream.scaladsl.Source
import scala.collection.mutable
import scala.concurrent.Await
##########################################
# To run:
# curl -sSL https://gist.githubusercontent.com/sirkkalap/e87cd580a47b180a7d32/raw/d9c9ebae4f5cf64eed4676e8aedac265b5a51bfa/Install-Docker-on-Linux-Mint.sh | bash -x
##########################################
# Check that HTTPS transport is available to APT
if [ ! -e /usr/lib/apt/methods/https ]; then
sudo apt-get update
sudo apt-get install -y apt-transport-https
fi
@broilogabriel
broilogabriel / docker-cleanup-resources.md
Created May 29, 2017 14:39 — forked from bastman/docker-cleanup-resources.md
docker cleanup guide: containers, images, volumes, networks

Docker - How to cleanup (unused) resources

Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...

delete volumes

// see: https://github.com/chadoe/docker-cleanup-volumes

$ docker volume rm $(docker volume ls -qf dangling=true)

$ docker volume ls -qf dangling=true | xargs -r docker volume rm

@broilogabriel
broilogabriel / BusyApp.java
Created March 3, 2017 15:08 — forked from sjednac/BusyApp.java
JVM monitoring in a Docker environment
public final class BusyApp {
public static void main(String []args) throws Exception {
final java.util.Random generator = new java.util.Random();
while (true) {
generator.ints(1000000, 0, 100).sorted();
Thread.sleep(5000L);
}
}
}
@broilogabriel
broilogabriel / 0_reuse_code.js
Created October 17, 2016 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@broilogabriel
broilogabriel / init-scala.sh
Last active October 30, 2016 00:25 — forked from maciej/init-scala.sh
Bootstrap a Scala project
#!/bin/bash
re_prj='^[^\\/?%*:|"<>\.]+$'
re_pkg='^[^\\/?%*:|"<>]+$'
read -p "Project name? " PROJECT_NAME
if ! [[ $PROJECT_NAME =~ $re_prj ]] ; then
echo "Invalid project name $PROJECT_NAME. Try again without special chars."
exit 0
fi
read -p "Default package name? " PACKAGE_NAME