Skip to content

Instantly share code, notes, and snippets.

View Zeryther's full-sized avatar
🎯

Mehdi Baaboura Zeryther

🎯
View GitHub Profile
@Zeryther
Zeryther / lol
Created July 19, 2014 17:08
Test
lol
@Zeryther
Zeryther / ForceEnd.java
Last active October 8, 2015 15:18 — forked from aadnk/ForceEnd.java
Force the end credits on an unsuspecting player.
package com.comphenix.example;
import net.minecraft.server.v1_8_R3.EntityPlayer;
import net.minecraft.server.v1_8_R3.PacketPlayOutGameStateChange;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.craftbukkit.v1_4_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
@Zeryther
Zeryther / keybase.md
Created September 8, 2016 17:18
Keybase.io verification

Keybase proof

I hereby claim:

  • I am Zeryther on github.
  • I am zeryther (https://keybase.io/zeryther) on keybase.
  • I have a public key whose fingerprint is A0FC 34DE 072B 3860 2808 8DA9 0E64 E2F6 AF08 9433

To claim this, I am signing this object:

@Zeryther
Zeryther / wslgit.bat
Created June 17, 2019 19:32
Use this as a replacement for the git executable in JetBrains IDEs to run Git from WSL - modified version of https://stackoverflow.com/a/43878654/4117923
@echo off
setlocal enabledelayedexpansion
set command=%*
set find=C:\Users\%USERNAME%\AppData\Local\Temp\git-commit-msg-.txt
set replace=/mnt/c/Users/%USERNAME%/AppData/Local/Temp/git-commit-msg-.txt
call set command=%%command:!find!=!replace!%%
echo | C:\Windows\System32\wsl.exe cd "`wslpath '%cd%'`" && git %command%
@Zeryther
Zeryther / script.js
Created August 24, 2019 23:53
YouTube Disable Polymer Greasemonkey
// ==UserScript==
// @name YouTube Classic for 2018 (Polymer Disable)
// @namespace https://github.com/davidbailey95
// @version 0.2.0
// @description Redirect YouTube pages to the classic design
// @author /u/ndogw and davidbailey95
// @match *://www.youtube.com/*
// @exclude *://www.youtube.com/embed/*
// @run-at document-start
// @grant none
@Zeryther
Zeryther / remove-promoted-trends.js
Created September 28, 2019 07:57
Remove promoted trending topics on Twitter
@Zeryther
Zeryther / README.md
Created March 4, 2021 09:27
Docker for Desktop starting issue

error during connect: Get https://192.168.99.100:2376/v1.38/containers/json: dial tcp 192.168.99.100:2376: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

If you know this error and use the Docker for Desktop you may have previously used Docker Toolbox. I created this Gist in case I run into this issue again at some point so I don't have to look for the solution all over again.

Basically just clear the environment variables in Windows set by the previous Docker Toolbox installation, restart the termain and it should work.

Found the solution here.

@Zeryther
Zeryther / gist:6af1a548a73c55703a1f8527200a0562
Created March 20, 2021 20:14
Install Java 11 on Debian 9
echo 'deb http://ftp.debian.org/debian stretch-backports main' | tee /etc/apt/sources.list.d/stretch-backports.list
apt update
apt install -y openjdk-11-jdk
java -version
@Zeryther
Zeryther / gist:a5fb21d129dac45b4329f4d0fb15c92b
Created March 20, 2021 21:13
Uninstall all versions of Java on Debian
dpkg-query -W -f='${binary:Package}\n' | grep -E -e '^(ia32-)?(sun|oracle)-java' -e '^openjdk-' -e '^icedtea' -e '^(default|gcj)-j(re|dk)' -e '^gcj-(.*)-j(re|dk)' -e '^java-common' | xargs apt-get -y remove
apt-get -y autoremove
@Zeryther
Zeryther / buildtools.sh
Created June 4, 2021 04:09
Running BuildTools easily
wget -O BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
git config --global --unset core.autocrlf
java -jar BuildTools.jar