Skip to content

Instantly share code, notes, and snippets.

@jcppkkk
jcppkkk / pipenvdiff.py
Created February 22, 2020 23:29 — forked from ddahan/pipenvdiff.py
Compare two Pipfile.lock files
# Python 3.6 min
import json
import re
import argparse
# CONSTS
DEFAULT = 'default'
VERSION = 'version'
@jcppkkk
jcppkkk / cuckoo-api
Last active June 14, 2018 07:44
cuckoo supervisord.conf (cuckoo-service, process, rooter, web, api)
upstream _uwsgi_cuckoo_api {
server unix:/home/ubuntu/.cuckoo/cuckoo-api.socket;
}
server {
listen 8090;
# REST API app
location / {
client_max_body_size 1G;
@jcppkkk
jcppkkk / # node - 2018-04-17_15-53-52.txt
Created April 17, 2018 08:54
node on macOS 10.12.6 - Homebrew build logs
Homebrew build logs for node on macOS 10.12.6
Build date: 2018-04-17 15:53:52
@jcppkkk
jcppkkk / .block
Last active December 13, 2017 07:50 — forked from mbostock/.block
Nested Treemap
license: gpl-3.0
height: 720
#!/bin/bash
id
if [ `id -u` -ne 0 ]; then
echo Need sudo
exit 1
fi
set -v
#!/bin/bash
old=`hostname`
new="$1"
read -p "Change hostname from \"$old\" to \"$new\"? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
sudo true
set -v
@jcppkkk
jcppkkk / README.md
Created February 21, 2017 08:18 — forked from trinitronx/README.md
A shell script to install latest Ansible via pip + dependencies

omnibus-ansible

Install latest Ansible via pip + dependencies via a shell script

This file is used to install ansible in test kitchen when you set in the kitchen.yaml file

require_ansible_omnibus: true

By default test kitchen will always download and use the latest version of this install file.

WARNING: AS SOON AS YOU MERGE CODE HERE IT IS INSTANTLY AVAILABLE TO EVERYONE DOING OMNIBUS KITCHEN ANSIBLE INSTALLS:

@jcppkkk
jcppkkk / gist:f09b508b65943bdca00c
Last active February 21, 2016 18:01
Setting up a Jenkins slave on Linux
# On slave
adduser --system --group --home=/var/lib/jenkins --no-create-home --disabled-password --quiet --shell /bin/bash jenkins
install -d -o jenkins -g jenkins /var/lib/jenkins
install -d -m 700 -o jenkins -g jenkins /var/lib/jenkins/.ssh
apt-get install -y openjdk-7-jre-headless git-core nfs-common
cat > /etc/cron.hourly/ntpdate <<EOF
#!/bin/bash
ntpdate 172.16.11.254
EOF
@jcppkkk
jcppkkk / OpenWithSublime.bat
Last active June 25, 2023 22:07 — forked from FoxColdMetal/OpenWithSublimeText.bat
[[[ Move to https://github.com/jcppkkk/OpenWithSublime !!! ]]] Add context menu to allow user open file or folder with Sublime as User (or as Admin).
@echo off
:: Path to Sublime Text installation dir.
SET stPath=%~dp0sublime_text.exe
SET stPathOnly=%~dp0
:: Key name for the registry entries.
SET UserEntry=Sublime Text
SET AdminEntry=Sublime Text As Admin
:: Context menu texts.
SET "UserMenuText=Open with Sublime(&-)"
SET "AdminMenuText=Open with Sublime As Admin(&+)"
@jcppkkk
jcppkkk / install.bat
Created January 8, 2014 12:32
robotframework/robotframework-ride installer for windows 64bit
@echo off
call :check_Permissions
pushd %temp%
@echo.===================================================================
@echo.install python-2.7.6.amd64
call :download "http://www.python.org/ftp/python/2.7.6/python-2.7.6.amd64.msi" "python-2.7.6.amd64.msi"
python-2.7.6.amd64.msi /passive
call :download "http://www.rapidee.com/download/RapidEE_setup.exe" "RapidEE_setup.exe"
RapidEE_setup.exe /SILENT