Skip to content

Instantly share code, notes, and snippets.

@gravitytrope
gravitytrope / translations.string
Created September 2, 2019 20:11 — forked from briansuda/translations.string
Triagemail Translations
Close = Loka
Settings = Stillingar
Your Information = Upplýsingar þínar
Email: = Tölvupóstur:
Name: = Nafn:
IMAP Settings = IMAP Stillingar
SMTP Settings = SMTP Stillingar
Username: = Notendanafn:
Password: = Lykilorð:
@gravitytrope
gravitytrope / gist:98604dd3f614bebfcf7bc361c9f7d74c
Created November 12, 2018 02:40 — forked from andphe/gist:3232343
Export your links from Safari reading list
/usr/bin/plutil -convert xml1 -o - ~/Library/Safari/Bookmarks.plist | grep -E -o '<string>http[s]{0,1}://.*</string>' | grep -v icloud | sed -E 's/<\/{0,1}string>//g'
<?php
/*
Plugin Name: Social Debugger
Description: Plugin to print debugging information by appending ?social_debug=true to the url within the admin
Version: 0.1
Author: Crowd Favorite
Author URI: http://crowdfavorite.com/
*/
<?php
/*
Plugin Name: Social Debugger
Description: Plugin to print debugging information by appending ?social_debug=true to the url within the admin
Version: 0.1
Author: Crowd Favorite
Author URI: http://crowdfavorite.com/
*/
<?php
foreach (file('/tweet-ids.txt') as $tweet_id) {
$tweet_id = trim($tweet_id);
$url = home_url('index.php').'?'.http_build_query(array(
'aktt_action' => 'import_tweet',
'tweet_id' => $tweet_id,
'social_api_key' => Social::option('system_cron_api_key')
), null, '&');
// error_log('Importing tweet '.$tweet_id.' '.$url);