Skip to content

Instantly share code, notes, and snippets.

@revooms
revooms / compare_folders.bat
Created June 16, 2024 13:16
Compare two folders via CLI in Windows
robocopy "Folder1" "Folder2" /L /NJH /NJS /NP /NS
@revooms
revooms / UnPoint.user.css
Last active October 23, 2022 10:48
UnPoint - Remove useless virtual points from websites
/* ==UserStyle==
@name UnPoint
@namespace github.com/revooms
@version 0.0.1
@description Remove useless virtual points from websites
@author revooms
@homepageURL https://gist.github.com/revooms/faf0dcb2bdd766a137453445b3ae4869#file-unpoint-user-css
@updateURL https://gist.github.com/revooms/faf0dcb2bdd766a137453445b3ae4869/raw/UnPoint.user.css
==/UserStyle== */
@revooms
revooms / AskName.php
Created August 19, 2020 14:59
Botman Conversation Setup
<?php
use BotMan\BotMan\Messages\Conversations\Conversation;
use BotMan\BotMan\Messages\Incoming\Answer;
class AskName extends Conversation
{
protected $firstname;
public function askFirstname()
@revooms
revooms / brands.user.css
Last active June 12, 2024 17:43
Collection of my personal userstyles and userscripts
/* ==UserStyle==
@name brands.css - Color links to prominent sites
@description Highlight links to prominent sites with the sites main color
@namespace github.com/revooms
@version 0.9.3
@author revooms
@homepageURL https://gist.github.com/revooms/61a1d536ff6f1b9916a9f865f69e38cc#file-brands-user-css
@updateURL https://gist.github.com/revooms/61a1d536ff6f1b9916a9f865f69e38cc/raw/brands.user.css
==/UserStyle== */
@-moz-document url-prefix(http), url-prefix(https) {
@revooms
revooms / 1-README.md
Last active December 9, 2020 21:14
Things to do after installing a fresh Linux Mint VM

Things to do after installing a fresh Linux Mint VM

Linux Mint 19, based to Ubuntu 18.04

Install PHP and extensions

https://tecadmin.net/install-php-7-on-ubuntu/

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
@revooms
revooms / 1-README.md
Last active January 14, 2020 11:41
Bash scripts

Bash scripts

Place the files inside a folder in your %PATH%, e.g. ~/bin.

The scripts use ts for timestamping. If ts is not installed on your system please install the package moreutils

Installation

cd to an appropriate folder where you want the scripts to be installed, i.e. cd ~/bin. Run

@revooms
revooms / config.json
Last active August 13, 2019 12:52
Fonts downloader
{
"name": "brombeer",
"css_prefix_text": "icon-",
"css_use_suffix": false,
"hinting": true,
"units_per_em": 1000,
"ascent": 850,
"glyphs": [
{
"uid": "44e04715aecbca7f266a17d5a7863c68",
@revooms
revooms / game.txt
Created December 17, 2018 20:27
flickgame
{"gameLink":"www.flickgame.org","canvasses":[[5510,"0",4,"5",154,"0",8,"5",150,"0",16,"5",142,"0",22,"5",136,"0",26,"5",133,"0",29,"5",130,"0",10,"5",4,"0",19,"5",127,"0",8,"5",5,"0",8,"6",13,"5",125,"0",7,"5",3,"0",16,"6",10,"5",124,"0",6,"5",3,"0",19,"6",8,"5",124,"0",5,"5",2,"0",24,"6",6,"5",123,"0",5,"5",1,"0",26,"6",5,"5",122,"0",6,"5",28,"6",5,"5",121,"0",5,"5",30,"6",4,"5",121,"0",4,"5",32,"6",3,"5",121,"0",4,"5",33,"6",2,"5",121,"0",3,"5",34,"6",3,"5",119,"0",4,"5",35,"6",2,"5",119,"0",3,"5",36,"6",3,"5",118,"0",3,"5",36,"6",3,"5",118,"0",3,"5",37,"6",3,"5",117,"0",3,"5",37,"6",3,"5",117,"0",3,"5",37,"6",3,"5",117,"0",2,"5",38,"6",4,"5",117,"0",1,"5",38,"6",4,"5",117,"0",1,"5",38,"6",4,"5",117,"0",1,"5",38,"6",4,"5",117,"0",1,"5",38,"6",4,"5",118,"0",1,"5",37,"6",4,"5",118,"0",1,"5",37,"6",4,"5",119,"0",1,"5",36,"6",4,"5",119,"0",1,"5",36,"6",3,"5",121,"0",1,"5",35,"6",3,"5",121,"0",2,"5",34,"6",3,"5",122,"0",2,"5",33,"6",2,"5",124,"0",3,"5",31,"6",2,"5",125,"0",5,"5",28,"6",2,"5",127,"0",4,"5",26,"6"
@revooms
revooms / composer_cache_dir.sh
Created December 16, 2018 11:29
Find composers cache directory (to clear cache)
composer config cache-dir
@revooms
revooms / grep.sh
Created December 11, 2018 11:00
Sonderzeichen
grep -nr $'\u2028' *