Skip to content

Instantly share code, notes, and snippets.

View nurrony's full-sized avatar

Nur Rony nurrony

View GitHub Profile
@nurrony
nurrony / phabricator-aphlict.service
Created August 4, 2017 06:32 — forked from wienczny/phabricator-aphlict.service
Phabricator Systemd Units
[Unit]
Description=Phabricator Aphlict
After=syslog.target network.target mysql.service
[Service]
Type=forking
User=phabricator
Group=phabricator
ExecStart=/srv/http/phabricator/bin/aphlict start
ExecStop=/srv/http/phabricator/bin/aphlict stop
@nurrony
nurrony / phabricator-aphlict.service
Last active December 10, 2021 16:45 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide
[Unit]
Description=Phabricator Aphlict
After=syslog.target network.target mysql.service
[Service]
Type=forking
User=phabricator
Group=phabricator
ExecStart=/home/phd/phabricator/bin/aphlict start
ExecStop=/home/phd/phabricator/bin/aphlict stop
@nurrony
nurrony / local-registry.yml
Created May 6, 2017 11:01 — forked from mtpereira/local-registry.yml
Local development with Kubernetes
apiVersion: v1
kind: ReplicationController
metadata:
name: kube-registry-v0
namespace: kube-system
labels:
k8s-app: kube-registry
version: v0
spec:
replicas: 1
stage "CI"
node {
/**git branch: 'jenkins2-course',
url: 'https://github.com/nmrony/solitaire-systemjs-course.git'*/
checkout scm
nodejs(nodeJSInstallationName: 'node') {
sh 'npm install --verbose'
stash excludes: 'test-results/**', includes: '**', name: 'everything'
}
}
@nurrony
nurrony / logstash.conf
Created March 29, 2017 09:14 — forked from mallim/logstash.conf
Logstash config for Spring Boot's default logging
input {
file {
type => "java"
tags => [ "fornax-data-share-eureka" ]
# Logstash insists on absolute paths...
path => "D:/fornax-data-share-runtime/eureka/fornax-data-share-eureka.log"
codec => multiline {
pattern => "^%{YEAR}-%{MONTHNUM}-%{MONTHDAY} %{TIME}.*"
negate => "true"
what => "previous"
@nurrony
nurrony / AWS-CSA-A-Notes.md
Created March 28, 2017 12:33 — forked from agussman/AWS-CSA-A-Notes.md
Notes from studying for the AWS Certified Solutions Architect Exam. I felt well-prepared for the exam and passed with a 94%. Please reach out with any corrections or questions.

External Resources

@nurrony
nurrony / aws-facebook-php.template
Created March 28, 2017 12:31 — forked from sjoonk/aws-facebook-php.template
AWS Facebook PHP template
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "Launch your Facebook applications within minutes. This template will create a Facebook Stack and configure a social file sharing sample application that upload files to Amazon S3 and notifies your friends by posting it on your wall. **WARNING** This template takes advantage of the AWS Free Usage Tier and if you are eligible since it creates one or more Amazon EC2 instances and a Elastic Load balancer. You will be billed for the AWS resources used.",
"Parameters": {
"AppURL": {
"Default": "http://aws-facebook.s3.amazonaws.com/aws-facebook-php-v2.tar.gz",
"Description": "URL of the application to be deployed",
"Type": "String"

Quick Steps to Configure Amazon AutoScaling

Setup Environment and Credentials

aptitude install openjdk-6-jre-headless
cat <<-ACCESS > <PATH_TO_CREDENTIAL_FILE>
AWSAccessKeyId=<YOUR_KEY_ID>

AWSSecretKey=

@nurrony
nurrony / handler.js
Created March 28, 2017 12:10 — forked from jonascheng/handler.js
AWS Lambda blueprint cloudwatch-alarm-to-slack
'use strict';
/**
* Follow these steps to configure the webhook in Slack:
*
* 1. Navigate to https://<your-team-domain>.slack.com/services/new
*
* 2. Search for and select "Incoming WebHooks".
*
* 3. Choose the default channel where messages will be sent and click "Add Incoming WebHooks Integration".
@nurrony
nurrony / change-referrer.demo.phantom.js
Created February 9, 2017 10:10 — forked from papoms/change-referrer.demo.phantom.js
Try to overwrite window.document.referrer from within phantomjs / onInitialized
var page = require('webpage').create();
page.onConsoleMessage = function (msg) {
console.log('From Page Console: '+msg);
};
page.onInitialized = function() {
page.evaluate(function () {
"use strict";
//The Referrer we want to set