Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Creating cool stuff at @meowphp

May MayMeow

😎
Creating cool stuff at @meowphp
View GitHub Profile
@MayMeow
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
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;
}
}
View openpgp.md
@MayMeow
MayMeow / termina.json
Created Jun 28, 2022
terminal-theme.json
View termina.json
{
"background": "#2D2A2E",
"black": "#1A181A",
"blue": "#1080D0",
"brightBlack": "#707070",
"brightBlue": "#22D5FF",
"brightCyan": "#7ACCD7",
"brightGreen": "#A4CD7C",
"brightPurple": "#AB9DF2",
"brightRed": "#F882A5",
@MayMeow
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
deploy:live:
image: 1drop/docker:git
stage: deploy
when: manual
environment:
name: production
url: https://www.somecustomer.de
before_script:
- eval $(ssh-agent -s)
- ssh-add <(echo "$SSH_PRIVATE_KEY")
@MayMeow
MayMeow / send-file.php
Last active Jan 15, 2022
Cakephp Send string as file
View send-file.php
<?php
public function sendIcs()
{
$icsString = $this->Calendars->generateIcs();
$response = $this->response;
// Inject string content into response body
$response = $response->withStringBody($icsString);
@MayMeow
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
MayMeow / README.md
Created Aug 17, 2021 — forked from matusnovak/README.md
Matrix (Synapse + Riot) in Docker with Traefik and federation
View README.md

Matrix

matrix.org 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 Riot.im. The Synapse will also need Postgres database and Redis for caching.

0. Folders

Make sure your folder structure looks like this.

example/
@MayMeow
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 8.8.8.8 interface=ethernet-gateway count=6] = 0) do={/ip dhcp-client release numbers=0}
@MayMeow
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: https://thomas-witt.com/auto-connect-your-ios-device-to-a-vpn-when-joining-an-unknown-wifi-d1df8100c4ba
View VPNConfigurationProfiles.mobileconfig
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PayloadContent</key>
<array>
<!-- Home: Manual -->
<dict>
<key>UserDefinedName</key>