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/bash | |
# | |
# post.sh | |
# | |
# Originally created by: | |
# Hilton Lipschitz (http://www.hiltmon.com) @hiltmon | |
# Use and modify freely, attribution appreciated | |
# | |
# Create a new Octopress post, isolate it, generate the site and leave me with a |
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/bash | |
# | |
# publish.sh | |
# | |
# Mario Lopez (http://techsym.com) @cubanresourceful | |
# Use and modify freely, attribution appreciated | |
# | |
# Generates and deploys an Octopress instance for you. | |
# |
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/bash | |
# | |
# push.sh | |
# | |
# Mario Lopez (http://techsym.com) @cubanresourceful | |
# Use and modify freely, attribution appreciated | |
# | |
# Generates and deploys an Octopress instance for you. | |
# |
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/bash | |
# | |
# Alternative to `tree`, lists directories/files in current directory | |
# Original credit to jweyrich from Stack Overflow: http://superuser.com/a/409654 | |
# Edited by Mario Lopez | |
# | |
find $1 -print 2>/dev/null | awk '!/\.$/ { \ | |
for (i=1; i<NF; i++) { \ |
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
// | |
// Form Filler | |
// Please remember to replace default values below with the actual username/password/db/etc. | |
// Based upon Chris Coyier's Implementation: https://css-tricks.com/prefilling-forms-custom-bookmarklet/ | |
// Only supports Joomla! Installation form | |
// TODO: Figure a better way to have the script "wait" for Joomla! install | |
// | |
(function(win, doc, $) { | |
'use strict'; |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
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
#!/usr/bin/expect -f | |
# | |
# Author: Mario Lopez | |
# Based upon: http://blogs.oracle.com/SanthoshK/entry/automate_linux_scp_command, modified for my own use | |
# Ex: autoscp "user@example.com:/source/dir/" "/target/dir" "PASSWORD" | |
# | |
# connect via scp | |
spawn scp $1 $2 |
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
/* | |
* Drop all tables with specific prefix | |
* Based on: http://stackoverflow.com/a/24668848 | |
* Modified for my needs | |
* | |
*/ | |
SET @database_name = 'database'; | |
SET @table_prefix = 'prefix%'; | |
SET FOREIGN_KEY_CHECKS = 0; | |
SET GROUP_CONCAT_MAX_LEN = 100000; |
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 // This PHP opening tag can be discarded, only exists for syntax coloring :) | |
/* | |
* | |
* Author: Mario Lopez (iibits.com) | |
* License: MIT | |
* | |
* Instructions to implement will follow | |
* | |
*/ |
OlderNewer