Skip to content

Instantly share code, notes, and snippets.

Avatar

Tim Owens timmmmyboy

View GitHub Profile
View ds106twitter.php
<?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 Jul 28, 2020
Docsify Auto-Install POC
View manifest.jps
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
View manifest.jps
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 Jul 3, 2020
Omeka S Silent Installer
View install.php
<?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;
View .htaccess
# 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 Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// 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 Sep 2, 2014
Replace Omeka Basic Search in Header with Advanced Search
View gist:ebadda5255e8a3711148
<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 Nov 22, 2013
Script to sync all changes between DokuWiki and GitHub
View github-push.sh
cd /home/username/public_html/data/pages/
git pull
git add -A
git commit -m "Dokuwiki external edit"
git push origin master