Skip to content

Instantly share code, notes, and snippets.

View filipelenfers's full-sized avatar

Filipe Pais Lenfers filipelenfers

View GitHub Profile
@filipelenfers
filipelenfers / installJmeter.sh
Last active August 29, 2015 14:16
JMeter Server on CentOS
#Download
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jdk-7u75-linux-x64.rpm"
#Install
sudo rpm -Uvh jdk-7u75-linux-x64.rpm
#if you already had the openjdk installed before, you need to add the alternatives to this version of java.
#Check
#java -version
@filipelenfers
filipelenfers / redis-server
Created March 11, 2015 18:20 — forked from tahajahangir/redis-server
init.d file for redis-server
#!/bin/sh
#
# redis - this script starts and stops the redis-server daemon
#
# chkconfig: - 85 15
# description: Redis is a persistent key-value database
# processname: redis-server
# config: /etc/redis/redis.conf
# config: /etc/sysconfig/redis
# pidfile: /var/run/redis/redis.pid
@filipelenfers
filipelenfers / installJdkTarGzUbuntu.sh
Last active April 29, 2025 13:08
Install JDK from tar.gz Ubuntu
#Login as root
sudo su
#create jdk directory
mkdir /opt/jdk
#uncompress, change to your file name
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk
#check if files are there
@filipelenfers
filipelenfers / userSettings.json
Created January 5, 2018 13:02
Visual Studo Code / vscode - use bash and run zsh
//I like to use oh-my-zsh so I added it as default terminal on vs code
//First define your default distro for wsl
//run this on cmd.exe
//wslconfig /l
//wslconfig /s Ubuntu
//On user Settings add:
{
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe",
@filipelenfers
filipelenfers / .hyper.js
Created January 5, 2018 13:05
Hyper.js using Zsh on Windows with WSL
//I like to use zsh(with oh-my-zsh) as my default shell.
//First define your default distro for wsl
//run this on cmd.exe
//wslconfig /l
//wslconfig /s Ubuntu
//use this options on preferences of Hyper.js termina to use it as default.
{
shell: 'C:\\Windows\\System32\\bash.exe',
@filipelenfers
filipelenfers / Vagrantfile.rb
Created August 23, 2019 12:54
Vagrantfile with docker
-*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@filipelenfers
filipelenfers / Vagrantfile-scala-dev.rb
Last active September 17, 2019 14:26
Vagrantfile - scala dev
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
@filipelenfers
filipelenfers / airflow-webserver.service
Last active September 17, 2019 18:43
airflow-webserver.service for Ubuntu - see #CHANGE in the file
# Apache Airflow Service file for Ubuntu 18
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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
#
@filipelenfers
filipelenfers / airflow-scheduler.service
Last active September 17, 2019 18:43
airflow-scheduler.service for Ubuntu - see #CHANGE in the file
# Apache Airflow Scheduler Service file for Ubuntu 18
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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
#
@filipelenfers
filipelenfers / VagrantFile.rb
Created September 26, 2019 23:22
VagrantFile Zepellin/Glue - article - step 1
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/bionic64"
config.vm.network "forwarded_port", guest: 8080, host: 8080
config.vm.provider "virtualbox" do |vb|