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
| <?php | |
| //$showNotes = true slows down fetching list a lot | |
| function getList($id, $showNotes) { | |
| $tasks = makeCall("tasks?list_id=".$id); | |
| $sanitizedTasks = array(); | |
| foreach($tasks as $task){ | |
| $comment = $showNotes ? getNotes($task['id']) : null; | |
| $sanitizedTasks[] = array(title=> $task['title'], id => $task['id'], note => $comment[0]['content']); | |
| } |
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 | |
| # Created Fri Mar 21 2014 | |
| # This is a fork of https://gist.github.com/SeonghoonKim/4378896 | |
| # This script will download, install and start | |
| # the following items on CentOS 6.5: | |
| # MongoDB | |
| # OpenJDK 1.7.0 | |
| # ElasticSearch 0.90.1 | |
| # Graylog2 server 0.20.1 | |
| # Graylog2 web interface 0.20.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/bash | |
| usage() { | |
| cat << EOF | |
| Usage: $0 [OPTION]... COMMAND | |
| Execute the given command in a way that works safely with cron. This should | |
| typically be used inside of a cron job definition like so: | |
| * * * * * $(which "$0") [OPTION]... COMMAND | |
| Arguments: |
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
| <!-- | |
| custom "Google Map" source for Mobile Atlas Creator 1.9.8 | |
| save in *.xml and move to /mapsources | |
| --> | |
| <customMapSource> | |
| <name>Google Map</name> | |
| <minZoom>0</minZoom> | |
| <maxZoom>20</maxZoom> | |
| <tileType>PNG</tileType> |
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
| <?php | |
| header('Content-type: text/plain'); | |
| $username = "[user]"; | |
| $password = "[password]"; | |
| $hostname = "localhost"; | |
| $database = "[database]"; | |
| // Opens a connection to a mySQL server | |
| $connection=mysql_connect ($hostname, $username, $password); |
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
| // How to use this: | |
| // 1. Go to the desired profile page on coderwall, like http://coderwall.com/marcinbunsch | |
| // 2. Paste this gist in the JS console | |
| // | |
| // You can also probably use this in greasemonkey and dot.js | |
| // | |
| // Also, it was tested in Chrome, Firefox and Safari, it probably will | |
| // not work in IE, but I just don't care about it ;) | |
| // | |
| // UPDATE: Coderwall made changes to the site and I cannot retrieve the achievements, so they are hardcoded, taken from a cached version of the achievements page |