Skip to content

Instantly share code, notes, and snippets.

@mrjones-plip
mrjones-plip / synshop.share.html
Created April 19, 2016 06:03
Simple "share" links for SYN Shop
<style>
.share_img {width:50px;}
</style>
<div id="share_links">
<a href="" id="facebook_share"><img class="share_img"
src="/sites/default/files/images/share/facebook.svg"/></a>
<a href="" id="gplus_share"><img class="share_img"
src="/sites/default/files/images/share/gplus.svg"/></a>
<a href="https://www.instagram.com/synshoplv/" ><img class="share_img"
@mrjones-plip
mrjones-plip / old.share.html
Created April 19, 2016 06:05
Old Share code for SYN Shop
<!-- Start Shareaholic Sexy Bookmark HTML-->
<div class="shr_class shareaholic-show-on-load"></div>
<!-- End Shareaholic Sexy Bookmark HTML -->
<!-- Start Shareaholic Sexy Bookmark settings -->
<script type="text/javascript">
var SHRSB_Settings = {"shr_class":{"src":"/sites/default/files/images","link":"","service":"5,304,7","apikey":"0747414f47c2b684cf5480c36b2478689","localize":true,"shortener":"bitly","shortener_key":"synshop|R_08ec62d422725c279601cb450d0bfbf3","designer_toolTips":true,"tip_bg_color":"black","tip_text_color":"white","twitter_template":"${title} - ${short_link} via @synshop"}};
var SHRSB_Globals = {"perfoption":"1"};
</script>
<!-- End Shareaholic Sexy Bookmark settings -->
<!-- Start Shareaholic Sexy Bookmark script -->
@mrjones-plip
mrjones-plip / .block
Last active June 29, 2016 21:01 — forked from melalj/.block
Marker vs Fill Bug
license: MIT
height: 900
scrolling: yes
@mrjones-plip
mrjones-plip / _readme.md
Last active January 17, 2021 05:25 — forked from gka/_readme.md
PHP Endpoint for Github Webhook URLs

PHP Endpoint for Github Webhook URLs

If you love deploying websites using Github, but for some reason want to use your own server, this script might be exactly what you need.

  1. Put github.php somewhere on your PHP-enabled web server, and make it accessible for the outside world. Let's say for now the script lives on http://example.com/github.php
@mrjones-plip
mrjones-plip / 01-readme.md
Last active November 16, 2019 20:56
A simple Meetup PHP scraper class for getting a multi-dimensional array of events for a given group
@mrjones-plip
mrjones-plip / 01-readme.md
Last active November 6, 2019 18:55
Happy Hacker Halloween

SYN Shop Kiosk/Dashboard Glue

Files that power SYN Shop dashboard. See rtfm for more info

the terrible idea: php youtube-dl downloader with html5 autoplayer

what

a PHP script that wraps around youtube-dl which allows you to enter in a youtube ID. The script then downloads the entire video at the highest resolution and uses javascript to write an HTML5 video element to the page which in turn autoplays the video you just downloaded.

this is a terrible idea and most likely against youtube's TOS - don't use it! Further, after I wrote this I found alltube (github or alltubedownload.net), which is almost identical to this project, but WAY more fancy. Use that instead!

why

@mrjones-plip
mrjones-plip / lookup.py
Last active June 25, 2021 03:45
whois lookup python script
import time
import whois
import whois.parser
import argparse
import logging.handlers
import sys
my_logger = logging.getLogger('MyLogger')
my_logger.setLevel(logging.DEBUG)
handler = logging.handlers.SysLogHandler(address='/dev/log')
@mrjones-plip
mrjones-plip / cht-docker-compose-macos-11.6-intell.md
Last active October 22, 2021 21:48
Install CHT on clean install of macOS Big Sur 11.6 MacBook Pro (Intel)

CHT Install on clean install of macOS Big Sur 11.6 on MacBook Pro (Intel MacBook Pro 15-inch, Mid 2014)

  1. download docker desktop
  2. install docker desktop
  3. install homebrew (can do xcode too, but mabye homebrew is lighter weight? Oh...homebrew installs xcode?) which will in turn install git
  4. clone cht-core into ~/Documents/:
     cd ~/Documents&&git clone https://github.com/medic/cht-core.git
    
  5. create an env file for your first CHT instance in ~/Documents/