Skip to content

Instantly share code, notes, and snippets.

View prog110's full-sized avatar

prog110 prog110

View GitHub Profile
@prog110
prog110 / vladmihalcea_cleaner.user.js
Created December 24, 2016 09:42
Vladmihalcea Cleaner
// ==UserScript==
// @name Vladmihalcea Cleaner
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://vladmihalcea.com/*
// @grant none
// ==/UserScript==
@prog110
prog110 / remove_email_prompt_eggHead.user.js
Created December 24, 2016 09:43
Remove email prompt for EggHead.io
// ==UserScript==
// @name Remove email prompt for EggHead.io
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://egghead.io/lessons/*
// @grant none
// ==/UserScript==
@prog110
prog110 / extract_material_icons_for_balsmiq.sh
Last active January 12, 2017 16:30
Generate latest material icons for balsmiq 3
#!/bin/sh
# set -x;
# Download zip from https://github.com/google/material-design-icons/releases
# Extract and place this file in the extracted folder & run this script
here=`pwd`
# recreate material_balsmiq folder
rm -r material_balsmiq 2>/dev/null; mkdir material_balsmiq
echo "Started copying to material_balsmiq folder"
imageCount=0
targetFolderName=""
@prog110
prog110 / README.md
Created January 23, 2017 13:09 — forked from boennemann/README.md
Pushing new releases of a legacy version with semantic-release

If you have a package where a lot of people are still using a legacy version of it you might want to keep pushing (security-)fixes to that "branch".

Let's say the "latest" version of your package is "5.4.0", but there is as significant amount of people still using "4.7.4" – the last version you released before doing "5.0.0".

You found a critical bug in "5.4.0" and push it as out as "5.4.1", but it applies to "4.7.4" as well and so you want to do "4.7.5".

Assuming you have semantic-release already set up, you can follow these steps to get that "4.7.5" legacy support release out.

  1. Go to the relevant commit: git checkout v4.7.4
  2. Create a new branch from it: git checkout -b 4.x (You can choose any branch name, just make sure to use the same in step 3)
@prog110
prog110 / google_art_project.rb
Created March 6, 2017 08:00 — forked from ionas/google_art_project.rb
Google Art Project fullsize image downloader. Specify the page URL and the tiles are downloaded, stitched and trimmed.
# Google Art Project fullsize image downloader.
# By Henrik Nyh <http://henrik.nyh.se> 2011-02-05 under the MIT license.
# Requires Ruby and ImageMagick.
#
# Usage e.g.:
# ruby google_art_project.rb http://www.googleartproject.com/museums/tate/portrait-of-william-style-of-langley-174
#
# You can specify multiple URLs on the command line, separated by space.
# Or you can specify no URLs on the command line and instead list them at the end of this file, one on each line,
# with "__END__" before the list.
@prog110
prog110 / kubernetes_documentation_fat_cleanup.user.js
Last active March 25, 2017 15:07
Kubernetes documentation, fat cleanup
// ==UserScript==
// @name Kubernetes documentation, fat cleanup
// @namespace http://tampermonkey.net/
// @version 0.1
// @description
// @author You
// @match https://kubernetes.io/docs/*
// @grant none
// ==/UserScript==
@prog110
prog110 / google_cloud_documentation_fat_cleanup.user.js
Last active March 27, 2017 08:23
Google cloud documentation, fat cleanup
// ==UserScript==
// @name Google cloud documentation, fat cleanup
// @namespace http://tampermonkey.net/
// @version 0.1
// @description
// @author You
// @match https://cloud.google.com/*
// @grant none
// ==/UserScript==
@prog110
prog110 / libre-office-uno-python-setup.md
Last active June 15, 2025 16:16
Setup python environment for writing macros with pyenv, virtualenv, visual studio code, libre office uno

Libre office python development environment setup guide

Setup

  1. Install Visual studio code
  2. Install Python plugin for visual studio
  3. Install pyenv that helps you manage multiple versions of python side by side
  4. Install pyenv-virtualenv helps you utilize python virtualenvs inside pyenv

git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv

@prog110
prog110 / .zshrc
Last active November 30, 2017 11:05
custom shell functions
# Unzips & launches idea for the given zip
# usage `unzipidea demo.zip`
unzipidea() {
zip=$1
unzip $zip && idea "`unzip -Z -1 $zip | head -1`" > /dev/null 2>&1 & disown
}
@prog110
prog110 / custom.postfixTemplates
Last active January 17, 2022 08:21
IntelliJ Custom Postfix Templates for Mocktio & AssertJ. Compatible only with this plugin https://plugins.jetbrains.com/plugin/9862-custom-postfix-templates
## Assert J ##
.assertThat : Assertions.assertThat
NON_VOID [org.assertj.core.api.Assertions] → [USE_STATIC_IMPORTS]org.assertj.core.api.Assertions.assertThat($expr$).$END$;
## Mockito ##
.thenReturn : Mockito.when().thenReturn
NON_VOID [org.mockito.Mockito] → [USE_STATIC_IMPORTS]org.mockito.Mockito.when($expr$).thenReturn($END$);