Skip to content

Instantly share code, notes, and snippets.

View MayMeow's full-sized avatar
❄️
😏📚🐈🧐💬👑🌙💼🌸😑

May Meow MayMeow

❄️
😏📚🐈🧐💬👑🌙💼🌸😑
View GitHub Profile
@MayMeow
MayMeow / domains.txt.asc
Created October 5, 2024 19:30
Domains I own and Manage
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
[Domains I own and manage]
- - maymeow.com
- - maymeow.de
- - maymeow.dev
- - maymeow.lol
- - maymeow.me
@MayMeow
MayMeow / ExportOffice365user.ps1
Created October 12, 2023 14:34 — forked from CCOSTAN/ExportOffice365user.ps1
Powershell commands for export Azure AD and import into local AD
#import office 365 session
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
#connect Azure AD
Connect-MsolService -Credential $UserCredential
#Random password generator
Function random-password ($length = 8)
@MayMeow
MayMeow / shades-of-purple-terminal.json
Created November 30, 2022 14:06
Shades of purple inspired theme
{
"background": "#15152B",
"black": "#000000",
"blue": "#6943FF",
"brightBlack": "#5C5C61",
"brightBlue": "#6871FF",
"brightCyan": "#79E8FB",
"brightGreen": "#43D426",
"brightPurple": "#FF628C",
"brightRed": "#F92A1C",
@MayMeow
MayMeow / run-script.ps1
Created October 27, 2022 13:45
Execute script over API on Mikrotik router
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
MayMeow / termina.json
Created June 28, 2022 11:26
terminal-theme.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 April 15, 2022 08:09 — forked from htuscher/.gitlab-ci.yml
Deploying with docker-compose via SSH tunnel in Gitlab CI
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 January 15, 2022 08:34
Cakephp Send string as file
<?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 January 15, 2022 08:29
Add VPN connection with Powershell
# 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 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/