This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout --orphan newbranch | |
git rm -rf . | |
rm -rf all-the-remaining-stuff-except-.git-directory | |
## should be a clean branch now |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="import" href="../topeka-elements/category-images.html"> | |
<link rel="import" href="../core-icon/core-icon.html"> | |
<link rel="import" href="../core-icons/core-icons.html"> | |
<link rel="import" href="../core-icons/av-icons.html"> | |
<link rel="import" href="../paper-fab/paper-fab.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Service Script | |
define(['angular'], function (angular) { | |
'use strict'; | |
angular.module('atlasApp.services.Drupal', ['restangular']) | |
.config(function(RestangularProvider){ | |
RestangularProvider.addResponseInterceptor(function(data, operation, what, url, response, deferred) { | |
var extractedData; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="awesome">Hammertime</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for b in `git branch -r | grep -v -- '->'`; do git branch --track ${b##origin/} $b; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: OSE Firewall | |
Plugin URI: http://wordpress.org/extend/plugins/ose-firewall/ | |
Description: OSE Firewall - A WordPress Firewall created by Open Source Excellence. It protects your WordPress-powered blog against attacks and hacking. The email alert / notification function is disabled by default, while it can be activated and configured in <strong>Settings -> OSE Firewall</strong>. Please go to your <a href="options-general.php?page=ose_wp_firewall">OSE Firewall configuration</a> page. | |
Author: Open Sourcce Excellence | |
Version: 1.0.2 | |
Author URI: http://www.opensource-excellence.com/ | |
*/ | |
define('DS', DIRECTORY_SEPARATOR); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Giving Editors Access to Gravity Forms | |
function add_grav_forms(){ | |
$role = get_role('editor'); | |
$role->add_cap('gform_full_access'); | |
} | |
add_action('admin_init','add_grav_forms'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//from the folder: | |
rm -rf `find . -type d -name .svn` | |
//to just find them all: | |
find . -type d -name .svn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# mpo2gif | |
# convert a .mpo file to a animation gif. | |
# this idea is from http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=16275 | |
# this script requires exiftool and imagemagick. | |
rjpg=/tmp/$$_r.jpg | |
ljpg=/tmp/$$_l.jpg | |
echo $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name '*' -exec grep -li 'text_to_search_for' {} \; | |
// ignore directories (won't show ".. is a directory") | |
find . -name '*' -exec grep -sli 'TEXT' {} \; | |
// exclude directories (like `node_modules`) | |
find . -name '*' -not -path './node_modules/*' -exec grep -sli 'TEXT' {} \; |