Skip to content

Instantly share code, notes, and snippets.

@unapersona
unapersona / transfinish.sh
Created August 10, 2012 09:26
Pushover notification on Transmission file completed
#!/bin/sh
curl -s \
-F "token=APP_TOKEN" \
-F "user=USER_TOKEN" \
-F "title=Download Finished" \
-F "message=$TR_TORRENT_NAME: $TR_TIME_LOCALTIME" \
http://api.pushover.net/1/messages > /dev/null
@unapersona
unapersona / wp-domain-changer.php
Created August 10, 2012 09:28
Change Wordpress domain
<?php
/*
WP Domain Changer
(changing directly in the database)
http://codex.wordpress.org/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database
Usage:
browser: http://domainname/wp-domain-changer.php
commandline: php wp-domain-changer.php http://domainname [path-to-wp-config.php]
@unapersona
unapersona / dummyfile.sh
Last active August 29, 2015 13:56
Create dummy file
fallocate -l 1G dummy.img
@unapersona
unapersona / package.json
Last active July 31, 2018 16:08
puppeteer-loadtest FdC1
{
"name": "egfabrica",
"version": "1.0.0",
"description": "",
"main": "index.js",
"author": "",
"license": "ISC",
"dependencies": {
"faker": "^4.1.0",
"puppeteer": "^1.6.1"
@unapersona
unapersona / generate-badges.php
Created February 21, 2020 10:40
Generación de csv para consolidar acreditaciones
<?php
/*
* Generate a CSV for InDesign with attendee info and Gravatars
*
* See http://plan.wordcamp.org/helpful-documents-and-templates/create-wordcamp-badges-with-gravatars/ for instructions
*
* input is a CSV export of CampTix attendees. Format is: "First Name","Last Name","E-mail Address","Twitter Username"
* the script downloads the attendee's Gravatars, and adds a column to the CSV with the filename of the image
* the CSV can then be used by InDesign to generate wordcamp badges with the attendee's gravatar

Keybase proof

I hereby claim:

  • I am unapersona on github.
  • I am unapersona (https://keybase.io/unapersona) on keybase.
  • I have a public key whose fingerprint is 0D4D 3AEE C137 C55B BDB5 636D D363 7E6A E266 83D2

To claim this, I am signing this object:

@unapersona
unapersona / yt-oembed-nocookie.php
Created March 12, 2021 11:53
YT oEmbed to nocookie
<?php
/*
Plugin Name: YT oEmbed to nocookie
Plugin URI: http://wordpress.org/plugins/yt-nocookie/
Description: Modify the YouTube oEmbed to use the youtube-nocookie.com server
Author: Jorge González
Version: 1.0.0
Author URI: http://unapersona.com
*/
<?php
/*
Plugin Name: WordPress Multisite Cron CLI
Description: WPCLI command utilities for WPCron on Multisite
Author: Jorge González
Version: 1.0.0
Author URI: http://unapersona.com/
*/