This file contains hidden or 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
module.exports = function(grunt) { | |
grunt.loadNpmTasks('grunt-recess'); | |
grunt.loadNpmTasks('grunt-shell'); | |
grunt.loadNpmTasks('grunt-contrib-less'); | |
grunt.loadNpmTasks('grunt-contrib-coffee'); | |
grunt.loadNpmTasks('grunt-coffeelint'); | |
var recessOptions = function(bool) { | |
bool = ((typeof bool === 'undefined')? false : bool); | |
var config = { |
This file contains hidden or 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/env python | |
import transmissionrpc | |
import logging | |
import logging.handlers | |
LOG_FILE = '/root/logs/seedstop.log' | |
logger = logging.getLogger('Seedstop') | |
logger.setLevel(logging.INFO) |
This file contains hidden or 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 | |
# Logging helper for bash scripts. | |
# Written by Raj Perera <[email protected]> | |
# This code is MIT Licensed. (http://opensource.org/licenses/MIT) | |
# Usage | |
# * Include this script at the header of your primary script. | |
# $ source "inc.logger.sh" | |
# * Use log, log_info, log_warn, log_fatal functions to perform your logging. |
This file contains hidden or 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 * ! -user admin ! -user root -user nobody -type d -maxdepth 1 -exec chown -R DOMAIN\\{}:DOMAIN\\domain\ users {} \; -exec chmod -R 640 {} \; -exec echo "[" `date -Iseconds` "]: PERMISSIONS UPDATED FOR " {} \; |
This file contains hidden or 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
//Execute the following javascript at the Award selection page of SFP and wait for the message 'success! :)' | |
var script = document.createElement("script"); | |
script.src = "https://code.jquery.com/jquery-2.1.1.min.js"; | |
script.type = "text/javascript"; | |
document.getElementsByTagName("head")[0].appendChild(script); | |
var interval = setInterval(function() { | |
if (typeof jQuery === "function") { | |
clearInterval(interval); | |
jQuery(function($) { | |
var $dom = $('a[target="awardDescription"]') |
This file contains hidden or 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 | |
#mongod on terminal with logging to stdout (so dirty it smells) | |
#alias to 'mongod' for extra points | |
tail -f /usr/local/var/log/mongodb/mongo.log &;mongod --config /usr/local/etc/mongod.conf;kill $(ps | grep 'tail -f /usr/local/var/log/mongodb/mongo.log' | head -1 | awk '{ print $1 }') |
This file contains hidden or 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 | |
#Get sudo | |
sudo echo | |
switch_version() | |
{ | |
select version | |
do | |
echo |
This file contains hidden or 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 | |
# http://stackoverflow.com/questions/3878624/how-do-i-programmatically-determine-if-there-are-uncommited-changes | |
require_clean_work_tree () { | |
# Update the index | |
git update-index -q --ignore-submodules --refresh | |
err=0 | |
# Disallow unstaged changes in the working tree | |
if ! git diff-files --quiet --ignore-submodules --; then |
This file contains hidden or 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 | |
# usage: script.name <url_to_ping> | |
url=$1 | |
while true | |
do | |
curl -iI $url | |
sleep 60 | |
done |
This file contains hidden or 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
INSERT INTO ew_events ( | |
id, | |
name, | |
CONTENT, | |
url, | |
img, | |
LOCATION, | |
lat, | |
lng, | |
date_start, |
OlderNewer