Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
I wonder what this button does…

Ben Peachey Potherca

🤔
I wonder what this button does…
View GitHub Profile
@Potherca
Potherca / README.md
Last active March 15, 2023 09:37
Bookmarklet for Pinguin Radio
View README.md

This gist contains JS code that can be used as a bookmarklet to change the new (awesome!) Pinguin Radio website to only display the audio player.

Before

Screenshot at 2023-03-15

After

Screenshot at 2023-03-15

@MadaraUchiha
MadaraUchiha / github-markdown-linkify.user.js
Created June 10, 2020 13:40
Add mentions to markdown in GitHub
View github-markdown-linkify.user.js
// ==UserScript==
// @name Linkify Markdown Mentions - github.com
// @namespace Violentmonkey Scripts
// @match https://github.com/*
// @grant none
// @version 1.0
// @author Madara Uchiha
// @description 6/10/2020, 4:29:55 PM
// ==/UserScript==
@Potherca
Potherca / pipeline-components-pulls.md
Last active February 9, 2023 12:06
Amount of pulls from docker hub for each of the gitlab pipeline-components.
View pipeline-components-pulls.md

This page shows the amount of pulls each one of the Gitlab Pipeline-Components have received thus far.

Total pulls: 9.70

(List sorting and total updated Februari 2023)

1M+

@mjrider
mjrider / releaser
Created January 27, 2019 18:58
quick'n'dirty tag next release script
View releaser
#!/bin/bash
# ==============================================================================
# MIT License
#
# Copyright (c) 2019 Robbert Müller
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@marulitua
marulitua / setup.sh
Last active October 22, 2021 16:08
Instal php5.6 with phpbrew on ubuntu 18.04
View setup.sh
#!/bin/bash
# Instal php5.6 with phpbrew on ubuntu 18.04
# Install all dependencies
sudo apt update
sudo apt install wget php build-essential libxml2-dev libxslt1-dev libbz2-dev libcurl4-openssl-dev libmcrypt-dev libreadline-dev libssl-dev autoconf
wget https://github.com/phpbrew/phpbrew/raw/master/phpbrew
chmod +x phpbrew
mv phpbrew /usr/local/bin
@KavenTheriault
KavenTheriault / clean_code.md
Last active August 21, 2018 07:24 — forked from wojteklu/clean_code.md
Summary of 'Clean code' by Robert C. Martin
View clean_code.md

What is Clean Code

  • elegant and efficient
  • does one thing well
  • can easily be read, and enhanced by a developer other than its original author
  • meaningful names
  • minimal dependencies
  • has unit and acceptance tests
  • clean code always looks like it was written by someone who cares
  • nothing obvious that you can do to make it better
  • no duplication
@dikiaap
dikiaap / git-io-custom-url.md
Last active August 7, 2022 11:14
git.io custom URL
View git-io-custom-url.md

Update: As of 11 January 2022, git.io no longer accepts new URLs.

Command:

curl https://git.io/ -i -F "url=https://github.com/YOUR_GITHUB_URL" -F "code=YOUR_CUSTOM_NAME"

URLs that can be created is from:

  • https://github.com/*
  • https://*.github.com
@oneilsh
oneilsh / OpenprocessingLinks.md
Last active July 21, 2022 21:16
Openprocessing Links
View OpenprocessingLinks.md
@mlinhard
mlinhard / docker_desc.sh
Last active July 2, 2022 06:50
Shell script to find docker image descendants
View docker_desc.sh
#!/bin/bash
parent_short_id=$1
parent_id=`docker inspect --format '{{.Id}}' $1`
get_kids() {
local parent_id=$1
docker inspect --format='ID {{.Id}} PAR {{.Parent}}' $(docker images -a -q) | grep "PAR ${parent_id}" | sed -E "s/ID ([^ ]*) PAR ([^ ]*)/\1/g"
}
print_kids() {
@hikari-no-yume
hikari-no-yume / example.php
Created March 20, 2017 20:02
function chaining for PHP 7
View example.php
<?php declare(strict_types=1);
require_once "✨.🐘";
✨($_)->strlen("foo")->var_dump($_);