Skip to content

Instantly share code, notes, and snippets.

View timmmmyboy's full-sized avatar

Tim Owens timmmmyboy

View GitHub Profile
<?php
// Configure Twitter
require_once "vendor/autoload.php";
use Abraham\TwitterOAuth\TwitterOAuth;
define('CONSUMER_KEY', 'INSERTCONSUMERKEY');
define('CONSUMER_SECRET', 'INSERTCONSUMERSECRET');
define('ACCESS_TOKEN', 'INSERTACCESSTOKEN');
define('ACCESS_TOKEN_SECRET', 'INSERTACCESSTOKENSECRET');
@timmmmyboy
timmmmyboy / manifest.jps
Created July 28, 2020 23:18
Docsify Auto-Install POC
type: install
id: docsify-github
name: Docsify Git Deploy
description:
text: Docsify is a magical documentation generator that converts markdown files in realtime. This installer is a proof of concept at deploying an environment automatically from URL (currently hard coded but could be a setting to take any repo URL).
categories:
- apps/content-management
- apps/education
type: install
id: fedwiki
name: Smallest Federated Wiki
homepage: http://fed.wiki.org/view/federated-wiki
logo: http://fed.wiki.org/favicon.png
description:
text: A Federated Wiki is a new type of distributed wiki. It's hosted, edited, administrated and operated in a part-decentralized way by it's users.
categories:
@timmmmyboy
timmmmyboy / install.php
Created July 3, 2020 00:57
Omeka S Silent Installer
<?php
$email = '#user_email';
$password = '#user_pass';
$name = 'Site Admin';
$sitetitle = '#site_title';
$timezone = 'America/New_York';
$locale = 'Default';
$siteurl = '#env_url';
use Omeka\Installation\Installer;
# More Details [DE]: http://cup.wpcoder.de/wordpress-xmlrpc-schutz/
<IfModule mod_setenvif.c>
<Files xmlrpc.php>
BrowserMatch "Poster" allowed
BrowserMatch "WordPress" allowed
BrowserMatch "Windows Live Writer" allowed
BrowserMatch "wp-iphone" allowed
BrowserMatch "wp-android" allowed
BrowserMatch "wp-windowsphone" allowed
@timmmmyboy
timmmmyboy / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@timmmmyboy
timmmmyboy / gist:ebadda5255e8a3711148
Created September 2, 2014 01:58
Replace Omeka Basic Search in Header with Advanced Search
<div id="search-container">
<form id="search-form" name="search-form" action="/omeka/items/browse" method="get">
<input type="text" name="search" id="query" value="" title="Search">
<button name="submit_search" id="submit_search" type="submit" value="Search">Search</button>
</form>
</div>
@timmmmyboy
timmmmyboy / github-push.sh
Created November 22, 2013 02:42
Script to sync all changes between DokuWiki and GitHub
cd /home/username/public_html/data/pages/
git pull
git add -A
git commit -m "Dokuwiki external edit"
git push origin master