Skip to content

Instantly share code, notes, and snippets.

View royingantaginting's full-sized avatar

Roy Inganta Ginting royingantaginting

View GitHub Profile
@royingantaginting
royingantaginting / brew.rb
Last active November 13, 2015 09:06
Brew formula to install oclint version 0.8.1 or 0.9.dev.02251e4
require 'formula'
class Oclint < Formula
homepage 'http://oclint.org'
url 'http://archives.oclint.org/releases/0.8/oclint-0.8.1-x86_64-darwin-14.0.0.tar.gz'
version '0.8.1'
sha1 'c96d712c5b73e04eebb57c3a97dec2b4ecbb9ed4'
devel do
url 'http://archives.oclint.org/nightly/oclint-0.9.dev.02251e4-x86_64-darwin-14.0.0.tar.gz'
{
"title": "Nginx Web",
"services": {
"query": {
"list": {
"0": {
"query": "type:nginx_access AND response:[200 TO 299]",
"alias": "OK",
"color": "#7EB26D",
"id": 0,
@royingantaginting
royingantaginting / mysql-dump-ds.sql
Last active March 19, 2023 16:49
Safely dump database with mysqldump. Explanation for each options are the --hex-blob option to convert binary into hexadecimal, the --single-transaction option to lock database during the process, the --triggers option to dump triggers, the
mysqldump -u[user] -p --hex-blob --single-transaction --triggers --routines [database name] > [database-name]-`date +%y%m%d-%H%M%S`.sql
#!/bin/bash
wget -nc http://localhost:8080/jnlpJars/jenkins-cli.jar
wget -nc -O default.js http://updates.jenkins-ci.org/update-center.json
sed '1d;$d' default.js > default.json
curl -X POST -H "Accept: application/json" -d @default.json http://localhost:8080/updateCenter/byId/default/postBack --verbose
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin analysis-collector
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin checkstyle
java -jar jenkins-cli.jar -s http://localhost:8080 install-plugin dry
@royingantaginting
royingantaginting / debian-chris_fordham-ami-da2d5488
Created January 30, 2013 05:50
Default packages installed inside debian on aws
ii adduser 3.112+nmu2 add and remove users and groups
ii alien 8.81 convert and install rpm and other packages
ii anthy-common 9100h-6 input method for Japanese - common files and dictionary
ii apt 0.8.10.3 Advanced front-end for dpkg
ii apt-listchanges 2.85.7 package change history notification tool
ii apt-utils 0.8.10.3 APT utility programs
ii aptitude 0.6.3-3.2 terminal-based package manager (terminal interface only)
ii at 3.1.12-1 Delayed job execution and batch processing
ii autopoint 0.18.1.1-3 The autopoint program from GNU gettext
ii bas
@royingantaginting
royingantaginting / amazon.txt
Created January 10, 2013 05:22
Pre-installed packages inside Amazon Linux AMI. The list is taken from AMI version amzn-ami-pv-2012.09.0.x86_64-ebs (ami-a6a7e7f4). Command used to retrieve the packages is rpm -qa | sort > amazon.txt. This list is taken at Thu Jan 10, 11.15 AM.
acl-2.2.49-6.9.amzn1.x86_64
acpid-1.0.10-2.1.6.amzn1.x86_64
alsa-lib-1.0.22-3.9.amzn1.x86_64
at-3.1.10-43.8.amzn1.x86_64
attr-2.4.44-7.9.amzn1.x86_64
audit-2.2-2.17.amzn1.x86_64
audit-libs-2.2-2.17.amzn1.i686
audit-libs-2.2-2.17.amzn1.x86_64
authconfig-6.1.12-10.15.amzn1.x86_64
aws-amitools-ec2-1.4.0.7-1.4.amzn1.noarch