Skip to content

Instantly share code, notes, and snippets.

View zendz's full-sized avatar

zendz zendz

  • Bangkok, Thailand
  • 01:58 (UTC +07:00)
  • X @zendz
View GitHub Profile
@zendz
zendz / jMeter-4.0
Last active June 4, 2018 04:31
aws-ec2-userdata_jMeter4.0_ubuntu
#!/bin/bash
apt-get update
apt-get upgrade -y
# Install Oracle JDK 8
apt-get install -y default-jdk software-properties-common curl wget unzip
add-apt-repository ppa:webupd8team/java
apt-get update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
apt-get install -y oracle-java8-installer
echo 'JAVA_HOME="/usr/lib/jvm/java-8-oracle"' >> /etc/environment
@zendz
zendz / alfresco.service
Created March 7, 2018 12:33 — forked from flox1an/alfresco.service
Alfresco systemd service sample configuration file /etc/systemd/system/alfresco.service
[Unit]
Description=Alfresco ECM Repository
After=network.target mysql.service
[Service]
Type=forking
ExecStart=/opt/alfresco/alfresco.sh start
ExecReload=/opt/alfresco/alfresco.sh restart
ExecStop=/opt/alfresco/alfresco.sh stop
User=alfresco
@zendz
zendz / hosts
Created October 17, 2017 07:05 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost