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
Index: taskcoach/taskcoachlib/config/defaults.py | |
=================================================================== | |
--- taskcoach/taskcoachlib/config/defaults.py (revision 6433) | |
+++ taskcoach/taskcoachlib/config/defaults.py (working copy) | |
@@ -524,7 +524,8 @@ | |
'showsmwarning': 'True', | |
'sayreminder': 'False', | |
'sdtcspans': '60,120,1440,2880', | |
- 'sdtcspans_effort': '60,120,180,240' | |
+ 'sdtcspans_effort': '60,120,180,240', |
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 | |
// ensure this can only be called from the command line | |
PHP_SAPI === 'cli' or die('not allowed'); | |
// load Wordpress's guts so we can use the helpful functions | |
require( dirname(__FILE__) . '/wp-load.php' ); | |
// get all the posts from wordpress | |
$posts = get_posts(array('posts_per_page' => 5000) ); |
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 | |
/** | |
* On ubuntu in some cases, there is a bug that gzopen does not exist and one must use gzopen64 instead | |
* Credit goes to the piwik team for this. | |
*/ | |
if (!function_exists('gzopen') | |
&& function_exists('gzopen64')) { | |
function gzopen($filename , $mode = 'r', $use_include_path = 0 ) | |
{ |
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/local/bin/python | |
import sys | |
import xml.etree.ElementTree as ET | |
tree = ET.parse(sys.stdin) | |
root = tree.getroot() | |
ns = { 'ebay' : 'urn:ebay:apis:eBLBaseComponents'} | |
def get_tag_data(element, tag_name): |
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
FROM ruby:2.3.3 | |
EXPOSE 3000 | |
WORKDIR /app_root | |
COPY Gemfile /app_root | |
COPY Gemfile.lock /app_root | |
RUN bundle install | |
ENV RAILS_ENV=production | |
ENV RALIS_SERVE_STATIC_FILES=true | |
COPY . /app_root |
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
[Unit] | |
Description=Start the_app_name Docker Container | |
After=docker.service | |
Requires=docker.service | |
[Service] | |
TimeoutStartSec=0 | |
ExecStart=/usr/bin/docker start the_app_name | |
ExecStop=/usr/bin/docker stop the_app_name | |
Restart=always |
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
while True: | |
terminal_input = input("scan code:") | |
if (terminal_input == None): | |
break | |
t1begin = terminal_input.find('%') + 1 | |
t1end = terminal_input.find('?;', t1begin) | |
t2begin = terminal_input.find('?;') +2 | |
t2end = terminal_input.find('?;', t2begin) |