Skip to content

Instantly share code, notes, and snippets.

@mkjsix
mkjsix / git-all.sh
Last active August 8, 2025 08:57
Apply a git command recursively in all folders
#!/bin/bash
# git-all.sh - Execute git commands on all repositories recursively
# Usage: ./git-all.sh "pull --rebase"
# ./git-all.sh "status"
# ./git-all.sh "fetch"
if [ $# -eq 0 ]; then
echo "Usage: $0 \"git-command\""
echo "Examples:"
@mkjsix
mkjsix / JSONizable.java
Created October 20, 2016 13:09
JSONizable is a Java interface which uses Gson to serialize Java objects to JSON and viceversa
package com.softinstigate.util;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
/**
*
* @author mturatti
*/
public interface JSONizable {
@mkjsix
mkjsix / 0_reuse_code.js
Created December 28, 2015 10:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@mkjsix
mkjsix / pom.xml
Created September 3, 2015 14:38
POM file for Sparkjava using the Maven Shade plugin
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.softinstigate</groupId>
<artifactId>meteo</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>meteo</name>
<properties>