Skip to content

Instantly share code, notes, and snippets.

Creating cool stuff at @meowphp

May MayMeow

Creating cool stuff at @meowphp
View GitHub Profile
MayMeow / shades-of-purple-terminal.json
Created Nov 30, 2022
Shades of purple inspired theme
View shades-of-purple-terminal.json
"background": "#15152B",
"black": "#000000",
"blue": "#6943FF",
"brightBlack": "#5C5C61",
"brightBlue": "#6871FF",
"brightCyan": "#79E8FB",
"brightGreen": "#43D426",
"brightPurple": "#FF628C",
"brightRed": "#F92A1C",
MayMeow / run-script.ps1
Created Oct 27, 2022
Execute script over API on Mikrotik router
View run-script.ps1
add-type @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
MayMeow / termina.json
Created Jun 28, 2022
View termina.json
"background": "#2D2A2E",
"black": "#1A181A",
"blue": "#1080D0",
"brightBlack": "#707070",
"brightBlue": "#22D5FF",
"brightCyan": "#7ACCD7",
"brightGreen": "#A4CD7C",
"brightPurple": "#AB9DF2",
"brightRed": "#F882A5",
MayMeow / .gitlab-ci.yml
Created Apr 15, 2022 — forked from hhoechtl/.gitlab-ci.yml
Deploying with docker-compose via SSH tunnel in Gitlab CI
View .gitlab-ci.yml
image: 1drop/docker:git
stage: deploy
when: manual
name: production
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
MayMeow / send-file.php
Last active Jan 15, 2022
Cakephp Send string as file
View send-file.php
public function sendIcs()
$icsString = $this->Calendars->generateIcs();
$response = $this->response;
// Inject string content into response body
$response = $response->withStringBody($icsString);
MayMeow / add-vpn.ps1
Created Jan 15, 2022
Add VPN connection with Powershell
View add-vpn.ps1
# add-l2tp.ps1
param($name, $server, $psk)
Add-VpnConnection -Name $name -ServerAddress $server -TunnelType "L2tp" -AuthenticationMethod Chap,MSChapv2,Pap -L2tpPsk $psk
MayMeow /
Created Aug 17, 2021 — forked from matusnovak/
Matrix (Synapse + Riot) in Docker with Traefik and federation

Matrix chat is split into two parts, the server and the client. The server we are going to use is called Synapse and the client is The Synapse will also need Postgres database and Redis for caching.

0. Folders

Make sure your folder structure looks like this.

MayMeow / rebind.rsc
Last active Jan 15, 2022
Try to get new IP address when no internet on Gateway interface in Mikrotik
View rebind.rsc
# Ping 6 times to some address (google free DNS here) and if no response try to get new IP address
:if ([/ping interface=ethernet-gateway count=6] = 0) do={/ip dhcp-client release numbers=0}
MayMeow / VPNConfigurationProfiles.mobileconfig
Created Apr 4, 2021 — forked from thomaswitt/VPNConfigurationProfiles.mobileconfig
An OnDemand VPN iOS profile for iPad and iPhone that automatically connects you to different VPNs (e.g. Meraki, FRITZ!Box and Streisand) | Blog-Entry:
View VPNConfigurationProfiles.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<!-- Home: Manual -->