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 | |
// we need memory and time | |
ini set( 'memory limit', -1); | |
set_time_limit( 0 ); | |
// WordPress environment | |
include( 'wp-load.php' ); |
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 | |
GREP="grep" | |
GREP_E="not found" | |
CURDIR=`pwd` | |
TITLEINFO_1="beet info " | |
TITLEINFO_2=" | grep \"\ title:\" | awk -F':' '{print \$2 }' | sed 's/^ //g'" | |
TIMEINFO_1="mp3info -p \"\%S\"" | |
TIMEINFO_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
Sub CopyAllH() | |
Dim wrk As Workbook 'Workbook object | |
Dim sht As Worksheet 'Object for handling worksheets in loop | |
Dim trg As Worksheet 'Master Worksheet as a target | |
Dim col As Integer 'Column count | |
Dim i As Integer 'Some index | |
Dim rng As Range 'Range object | |
Dim rng1 As Range 'Range object | |
Dim rng2 As Range 'Range object |
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
""" | |
Python script to generate SolidWorks BOM lists into a database-usable parent | |
child relationship. | |
CSV data of the first column: | |
"<parent>.<child>.<subchild>.<subsubchild>" | |
Usage: |
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 | |
# | |
# Counts the number of lines each citation appears on a tex file. | |
# | |
# Usage: | |
# | |
# ./countbib texfile.tex | |
# | |
TEXFILE=$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
#!/bin/bash | |
# | |
# Arquivo de ambiente para o Totvs Microsiga Protheus. Serve como suporte para | |
# um arquivo principal de execução disponível em: | |
# https://gist.github.com/vmassuchetto/d43886fa0726feb73b73 | |
# | |
# Definição do ambiente | |
if [ -z "$PROTHEUS_ENV" ]; then |
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 | |
class GlotPress_Router { | |
/** | |
* Set rewrite rules | |
* | |
* @since 0.1 | |
* @return New set of rewrite rules | |
* |
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/python | |
FILES_READ_PATH = '/path/to/txt/files' | |
FILES_WRITE_PATH = '/where/to/save/images' | |
FROM_USER = 'you_username' | |
FROM_FLICKR_API_KEY = 'some_key' | |
FROM_FLICKR_API_SECRET = 'some_secret' | |
TO_USER = 'your_username' |
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 | |
for FILE in `rgrep -il "youtube.com" * | grep -v iframe` ; do | |
perl -p -i -e 's/(<p>)?.*youtube\.com\/watch.*v=([A-Za-z0-9]*).*(<\/p>)?/<iframe width="560" height="315" frameborder="0" src="\/\/www\.youtube\.com\/embed\/\2\" allowfullscreen><\/iframe>/g' $FILE ; | |
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 | |
/** | |
* This scripts is intended to be triggered by Git hooks. For deployment you'll | |
* probably want to use `post-update`: | |
* http://schacon.github.io/git/githooks.html#post-update | |
* | |
* First, set the `PASS` constant to limit access to this script and use it as | |
* a `pass` GET variable. | |
* |
OlderNewer