Skip to content

Instantly share code, notes, and snippets.

View iskandarsaleh's full-sized avatar

iskandarsaleh iskandarsaleh

View GitHub Profile
@iskandarsaleh
iskandarsaleh / OAuth1AuthorizationUtil.groovy
Created February 15, 2019 03:24 — forked from andyjduncan/OAuth1AuthorizationUtil.groovy
Generating an OAuth1 Authorization header with HMAC-SHA1 in Groovy
import org.apache.commons.lang.RandomStringUtils
import javax.crypto.Mac
import javax.crypto.spec.SecretKeySpec
class OAuth1AuthorizationUtil {
public static String generateOAuthAuthorizationHeader(String method, String url, String consumerKey, String consumerSecret) {
generateOAuthAuthorizationHeader(method, url, consumerKey, consumerSecret, [:])
@iskandarsaleh
iskandarsaleh / docker_wordpress.md
Created February 18, 2019 10:31 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@iskandarsaleh
iskandarsaleh / kafka.sh
Created July 28, 2020 19:48 — forked from rmzamora/kafka.sh
kafka start/stop script
#! /bin/sh
### BEGIN INIT INFO
# Provides: kafka
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: a distributed commit log.
# Description: Apache Kafka is publish-subscribe messaging rethought
# as a distributed commit log.
@iskandarsaleh
iskandarsaleh / pipenv_cheat_sheet.md
Created December 30, 2018 04:17 — forked from bradtraversy/pipenv_cheat_sheet.md
Pipenv cheat sheet for common commands

Pipenv Cheat Sheet

Install pipenv

pip3 install pipenv

Activate

pipenv shell
@iskandarsaleh
iskandarsaleh / Dockerfile
Created December 30, 2018 04:31 — forked from gustavomcarmo/Dockerfile
Example of Ansible playbook for building a custom Jenkins Docker image and running it in a remote host.
FROM jenkins/jenkins:lts
LABEL maintainer "Gustavo Muniz do Carmo <gustavo@esign.com.br>"
ENV JAVA_OPTS="-Djenkins.install.runSetupWizard=false"
COPY config-maven.groovy /usr/share/jenkins/ref/init.groovy.d/
COPY config-sonarqube.groovy /usr/share/jenkins/ref/init.groovy.d/
COPY harden-jenkins.groovy /usr/share/jenkins/ref/init.groovy.d/
COPY default-user.groovy /usr/share/jenkins/ref/init.groovy.d/
@iskandarsaleh
iskandarsaleh / add maven config
Last active March 20, 2023 06:50
Jenkins Integration with Git Maven And SonarQube
manage jenkins
global tools configuration
maven
name "project maven"
maven home "path maven project"
back to jenkins
build
add maven version
goal clean package