Skip to content

Instantly share code, notes, and snippets.

@bittner
bittner / 60-jetbrains.conf
Created Sep 25, 2015
Inotify configuration for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm). Create this file with e.g. `sudo vim /etc/sysctl.d/60-jetbrains.conf`
View 60-jetbrains.conf
# Set inotify watch limit high enough for IntelliJ IDEA (PhpStorm, PyCharm, RubyMine, WebStorm).
# Create this file as /etc/sysctl.d/60-jetbrains.conf (Debian, Ubuntu), and
# run `sudo service procps start` or reboot.
# Source: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
#
# More information resources:
# -$ man inotify # manpage
# -$ man sysctl.conf # manpage
# -$ cat /proc/sys/fs/inotify/max_user_watches # print current value in use
View _notes.md

A "node" is an element that looks like this:

{
    "type": "root|literal|argument",
    "parser": "", // only applicable if type is argument
    "properties": {}, // only applicable if type is argument, defaults to empty object
    "executable": true, // default if not specified is false, meaning it isn't a runnable command by itself
    "children": {}, // default if not specified is {}, meaning no children
    "redirect": [] // default if not specified is null, meaning no redirect
}
@MWHunter
MWHunter / gist:0d01482be355a73c6b76ff66901a4969
Created Oct 18, 2021
Quick java program to wrap a minecraft server and run it anywhere java can be compiled an ran, such as repl.it
View gist:0d01482be355a73c6b76ff66901a4969
import java.io.*;
import java.lang.ProcessBuilder.Redirect;
import java.net.URL;
import java.util.Scanner;
import java.util.zip.ZipEntry;
import java.util.zip.ZipInputStream;
public class Main {
public static void main(String[] args) throws IOException, InterruptedException {
Scanner userInput = new Scanner(System.in);
@tigerhawkvok
tigerhawkvok / restartAudio.bat
Created Mar 4, 2016
Restart Windows Audio Service (with admin permissions, if needed)
View restartAudio.bat
rem Written for buggy audio drivers that need to be restarted
rem In my case, the Claro 8.18 drivers bug out every once in a while on Windows 10, and need restarting to not sound poppy
@echo off
goto check_Permissions
:check_Permissions
echo Administrative permissions required to run this script. Checking...
net session >nul 2>&1
View hightlight-resonator-L8-count.user.js
// ==UserScript==
// @id iitc-plugin-highlight-resonator-L8-count@RTL
// @name IITC plugin: Highlight portals based on number of 8's
// @category Highlighter
// @version 1.0.0.20200705.1450
// @namespace https://github.com/
// @updateURL https://github.com/
// @downloadURL https://github.com/
// @description Highlight portals based on number of level 8 resonators.
// @include https://www.ingress.com/intel*
@isnot
isnot / adj-portalname-fontsize.user.js
Last active Jul 8, 2021
iitc-plugin-adj-portalname-fontsize
View adj-portalname-fontsize.user.js
// ==UserScript==
// @id iitc-plugin-adj-portalname-fontsize@isnot
// @name IITC plugin: adj-portalname-fontsize
// @category Tweak
// @version 0.2
// @namespace https://github.com/jonatkins/ingress-intel-total-conversion
// @author isnot
// @updateURL none
// @downloadURL none
// @description [iitc-plugins] adj portal name fontsize
@williewillus
williewillus / primer.md
Last active Dec 20, 2020
1.8.9 to 1.9 quick primer
View primer.md
@johnd0e
johnd0e / iitc-multi-draw.user.js
Last active Jul 4, 2020
IITC plugin: Draw multi links and fields (forked from https://github.com/kewwwa/iitc-plugin-multidraw)
View iitc-multi-draw.user.js
// ==UserScript==
// @id iitc-plugin-multidraw@jd
// @name IITC plugin: Multi draw
// @description Draw multiple links/fields
// *: Draw line between this and prev portal
// O: Draw field from selected portal to base portals
// (available after drawing a line)
// Close panel to draw new set
// @category Layer
// @version 0.1.7
@spiralray
spiralray / caputuremap.user.js
Last active Jul 2, 2020
Capture the IntelMap
View caputuremap.user.js
// ==UserScript==
// @id iitc-plugin-CaptureMap@spiralray
// @name IITC plugin: CaptureMap
// @category Info
// @version 0.0.2
// @namespace https://www.spiralray.net/iitc_plugin/
// @description [spiralray-2016-11-23-235400] Capture map
// @include https://www.ingress.com/intel*
// @include http://www.ingress.com/intel*
// @match https://www.ingress.com/intel*
@johnd0e
johnd0e / extra-zoom.meta.js
Last active Jul 2, 2020
IITC plugin: Extra zoom: Load portals/links from higher zoom levels (click statusbar) [https://gist.github.com/johnd0e/fcfd9d365a9a4714b8f93ac0afb81b25/raw/extra-zoom.user.js]
View extra-zoom.meta.js
// ==UserScript==
// @id iitc-plugin-extra-zoom
// @name IITC plugin: Extra zoom
// @description Load portals/links from higher zoom levels (click statusbar)
// Increases data zoom, in steps (limit: 4 levels)
// @category Info
// @version 0.3.3
// @author jd
// @namespace https://gist.github.com/johnd0e
// @homepageURL https://gist.github.com/johnd0e/fcfd9d365a9a4714b8f93ac0afb81b25