Skip to content

Instantly share code, notes, and snippets.

@mjtworks
mjtworks / docker_wordpress.md
Created November 20, 2023 04:19 — forked from bradtraversy/docker_wordpress.md
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes
@mjtworks
mjtworks / byzanz_window.py
Created September 1, 2021 19:22 — forked from noamraph/byzanz_window.py
byzanz_window: Use byzanz to create a GIF screencast of a specific window
#!/usr/bin/env python
"""
Use byzanz to create a GIF screencast of a specific window.
Required tools:
sudo apt-get install byzanz x11-utils xdotool
A tip: use an extra-long duration (-d 100), record your shot, and use
gimp to shorten the duration of the last frame. You need to rename the layer
from "Frame 123 (100000 ms) (combine)" to "Frame 123 (1000 ms) (combine)".
@mjtworks
mjtworks / PatchExtract125.ps1
Created June 12, 2021 05:24 — forked from anonymous/PatchExtract125.ps1
Patch Extract v1.25 by Greg Linares (@Laughing_Mantis)
<#
================
PATCHEXTRACT.PS1
=================
Version 1.25 Microsoft MSU Patch Extraction and Patch Organization Utility by Greg Linares (@Laughing_Mantis)
This Powershell script will extract a Microsoft MSU update file and then organize the output of extracted files and folders.
Organization of the output files is based on the patch's files and will organize them based on their archicture (x86, x64, or wow64)
as well as their content-type, ie: resource and catalog files will be moved to a JUNK subfolder and patch binaries and index files will
@mjtworks
mjtworks / .block
Created November 5, 2020 00:52 — forked from d3indepth/.block
D3 geo lines, circles and graticule
license: gpl-3.0
height: 420
border: no
@mjtworks
mjtworks / Connect to OpenVPN.xml
Created July 6, 2020 10:46 — forked from carlin-q-scott/Connect to OpenVPN.xml
OpenVPN Connection Management
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2018-12-20T17:30:53.9213074</Date>
<Author>Carlin Scott</Author>
<URI>https://gist.github.com/carlin-q-scott</URI>
</RegistrationInfo>
<Triggers>
<EventTrigger>
<Enabled>true</Enabled>
@mjtworks
mjtworks / BoostRegex.cpp
Created May 17, 2020 02:38 — forked from komasaru/BoostRegex.cpp
C++ source code to match regular expressions by boost.
/*
* Matching regular expressions by boost.
*/
#include <iostream>
#include <string>
#include <boost/regex.hpp> // require "boost-regex-dev"
using namespace std;
/*
@mjtworks
mjtworks / curl.md
Created March 20, 2020 11:35 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@mjtworks
mjtworks / .eslintrc.js
Created November 23, 2019 06:59 — forked from adrianhall/.eslintrc.js
A sample .eslintrc file
var OFF = 0, WARN = 1, ERROR = 2;
module.exports = exports = {
"env": {
"es6": true
},
"ecmaFeatures": {
// env=es6 doesn't include modules, which we are using
"modules": true
@mjtworks
mjtworks / .block
Created November 22, 2019 18:47 — forked from mbostock/.block
Google Maps + D3
license: gpl-3.0