Skip to content

Instantly share code, notes, and snippets.

View MayMeow's full-sized avatar
🌸
Writing bugs, then patching them

MayMeow β˜€οΈ Nayeon MayMeow

🌸
Writing bugs, then patching them
View GitHub Profile
@MayMeow
MayMeow / README.md
Created August 17, 2021 20:20 — forked from matusnovak/README.md
Matrix (Synapse + Riot) in Docker with Traefik and federation

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 January 15, 2022 08:34
Try to get new IP address when no internet on Gateway interface in Mikrotik
# 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 April 4, 2021 08:26 — 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
<?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>
@MayMeow
MayMeow / Examples.md
Last active February 13, 2022 03:07
Selfsigned Certificates for Code signing in visual studio

Create CA file

$c = New-SelfSignedCertificate -DnsName SelfSignedCA -CertStoreLocation Cert:\CurrentUser\My -NotAfter (Get-Date).AddYears(10)

check certificate fingerprint

$c
@MayMeow
MayMeow / ApplicationUser.php
Last active September 6, 2019 12:11
Users -> Profiles
<?php
namespace PostBox\Model\Entity;
use Identity\Model\Entity\User;
/**
* Class ApplicationUser
* @package PostBox\Model\Entity
*
@MayMeow
MayMeow / CreateDefaultUser.php
Last active August 20, 2019 20:05
Creating default users and groups
<?php
use Migrations\AbstractMigration;
class CreateDefaultUser extends AbstractMigration
{
/**
* Change Method.
*
* More information on this method is available here:
* http://docs.phinx.org/en/latest/migrations.html#the-change-method
@MayMeow
MayMeow / keybase.md
Created April 2, 2019 07:33 — forked from webframp/keybase.md
Signing git commits on github using keybase.io gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: https://keybase.io/download and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

<?php
namespace MayMeow\Cake\Bl\Service;
use Cake\Core\ObjectRegistry;
trait ServiceAvareTrait
{
protected $serviceLocator;
@MayMeow
MayMeow / list.sh
Created April 11, 2018 12:54 — forked from rwjblue/list.sh
List account and distribution list details in Zimbra
sudo su - zimbra
# list all accounts and print out account name and aliases
for i in `zmprov -l gaa` ; do zmprov ga $i zimbraMailAlias ; done
# list all distribution lists and any members and/or aliases
for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done
@MayMeow
MayMeow / mattermost.json
Created February 6, 2018 19:39
Rainglow's Warlock high contrast inspired mattermost theme
{"sidebarBg":"#221934","sidebarText":"#ffffff","sidebarUnreadText":"#ffffff","sidebarTextHoverBg":"#291e3e","sidebarTextActiveBorder":"#f46036","sidebarTextActiveColor":"#ffffff","sidebarHeaderBg":"#221934","sidebarHeaderTextColor":"#ffffff","onlineIndicator":"#f9ac97","awayIndicator":"#9eb7cd","dndIndicator":"#cf433e","mentionBj":"#5b85aa","mentionColor":"#5867dd","centerChannelBg":"#171123","centerChannelColor":"#ffffff","newMessageSeparator":"#9816f4","linkColor":"#9559c6","buttonBg":"#9559c6","buttonColor":"#ffffff","errorTextColor":"#f4516c","mentionHighlightBg":"#ffb822","mentionHighlightLink":"#ffffff","codeTheme":"monokai","mentionBg":"#5b85aa"}