Skip to content

Instantly share code, notes, and snippets.

@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 / .block
Last active December 13, 2017 07:50 — forked from mbostock/.block
Nested Treemap
license: gpl-3.0
height: 720
@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 / 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;
#!/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 / 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
@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 / 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 / gist:6409139
Last active September 30, 2023 15:49
Cookie clicker assistant (Bookmarklet) store the code as a bookmark, then click it when you are in Cookie clicker.
javascript: (function () {
function loadScript(b, c) {
var a = document.createElement("script");
a.type = "text/javascript";
if (a.readyState) {
a.onreadystatechange = function () {
if (a.readyState == "loaded" || a.readyState == "complete")
{a.onreadystatechange = null; c() } }
} else {a.onload = function () {c() } } a.src = b;
document.getElementsByTagName("head")[0].appendChild(a)
#!/bin/bash
id
if [ `id -u` -ne 0 ]; then
echo Need sudo
exit 1
fi
set -v