Skip to content

Instantly share code, notes, and snippets.

@platan
platan / keybase.md
Created April 20, 2020 15:55
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@platan
platan / top-projects-using-shields.py
Last active October 14, 2018 18:49
Shows usages of Shields.io in most starred projects hosted on GitHub
# Copyright (c) 2018 Marcin Mielnicki
# Licensed under the MIT License
#
# Shows usages of Shields.io in most starred projects hosted on GitHub
#
# Requirements:
# - requests (http://python-requests.org/)
#
import argparse
@platan
platan / 1114.json
Created June 5, 2018 17:23
PR 1114
{
"_links": {
"comments": {
"href": "https://api.github.com/repos/badges/shields/issues/1114/comments"
},
"commits": {
"href": "https://api.github.com/repos/badges/shields/pulls/1114/commits"
},
"html": {
"href": "https://github.com/badges/shields/pull/1114"
@platan
platan / .thymerc
Created May 12, 2018 19:05
thyme (hughbien) ubuntu configuration
after do
# requires sox: sudo apt install sox
`notify-send "Pomodoro ended"`
`play -q /usr/share/sounds/ubuntu/stereo/message.ogg`
end
@platan
platan / prepare_hound_config.py
Last active July 1, 2016 05:27
Script for creating Hound config based on public Stash repositories
# Copyright (c) 2015 Marcin Mielnicki
# Licensed under the MIT License
#
# Requirements:
# stashy (https://github.com/RisingOak/stashy): pip install stashy
#
# Creates Hound config (https://github.com/etsy/Hound) with public Stash
# repositories
#
# Code formatting:
@platan
platan / maximize_all.sh
Created January 12, 2015 16:10
Maximize all windows from command line in linux (via wmctrl)
#!/bin/bash
window_ids=$(wmctrl -l | cut -f1 -d " ")
for window_id in $window_ids
do
wmctrl -i -r "$window_id" -b add,maximized_vert,maximized_horz
done
@platan
platan / checkstyle.xml
Created October 28, 2014 12:20
Two Checkstyle Checks finds Spring @component and @Autowired and suggets using JSR-330 @nAmed and @Inject.
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<module name="RegexpMultiline">
<property name="format" value="@Component( |\n|\r|\r\n)"/>
<property name="message" value="JSR-330 @Named should be used instead of Spring @Component. "/>