Skip to content

Instantly share code, notes, and snippets.

@0x2a94b5
0x2a94b5 / .gitignore
Created November 7, 2020 10:42
Terminal Services session event monitor for http://superuser.com/q/264935
__pycache__
events.py
@0x2a94b5
0x2a94b5 / caddy.service
Last active August 29, 2020 06:42 — forked from mosquito/README.md
Add caddy doker-compose as a systemd unit
[Unit]
Description=Caddy
Documentation=https://caddyserver.com/docs/
After=network.target
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/usr/local/bin/docker-compose -f /home/user/caddy/docker-compose.yml up -d
ExecStop=/usr/local/bin/docker-compose -f /home/user/caddy/docker-compose.yml down
@0x2a94b5
0x2a94b5 / TeamViewer-15-id-changer-for-mac.py
Last active September 11, 2024 02:03 — forked from zhenhappy/tv-changer-for-mac.py
Teamviewer 15 id changer for Mac OS X
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# System: macOS Mojave 10.14.6
# Version: TeamViewer v15.2.2756
# Python: 2.7.10
# Command: sudo python TeamViewer-15-id-changer-for-mac.py
#
import os
@0x2a94b5
0x2a94b5 / tomcat_script.sh
Last active February 28, 2019 16:44 — forked from miglen/Apache Tomcat 8 Start stop script init.d script
use non-root user: useradd -r -d /usr/local/tomcat tomcat ; non-root restart: sudo service tomcat restart
#!/bin/bash
#
# Tomcat 8 start/stop/status init.d script
# Initially forked from: https://gist.github.com/valotas/1000094
# @author: Miglen Evlogiev <bash@miglen.com>
#
# Release updates:
# Updated method for gathering pid of the current proccess
# Added usage of CATALINA_BASE
# Added coloring and additional status