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
| alias cdd='cd ~/Dev/' | |
| alias app='ap -i inventories/perso_inventory' | |
| alias pw="pwgen -yBn 16" | |
| alias python-build="python3 setup.py sdist bdist_wheel" | |
| alias gis="git status" | |
| alias gico="git checkout" | |
| alias gicm="git commit -s" | |
| alias giap="git add -ip" | |
| alias gm="git checkout main" | |
| function giclean() { |
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
| const wrap = fn => (...args) => fn(...args).catch(args[2]); |
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
| user www-data; | |
| worker_processes auto; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 768; | |
| # multi_accept on; | |
| } | |
| http { |
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
| for event in events.copy(): | |
| if countTweets(event) > 20: | |
| hashtags = getFields(event, "hashtags.raw")["aggregations"]["fields"]["buckets"] | |
| if hashtags != [] and hashtags[0]['doc_count'] > 10: | |
| text = " ".join([n['doc_count']*(n['key']+" ") for n in hashtags ]) | |
| collection.append(text) | |
| else: | |
| events.remove(event) | |
| else: events.remove(event) | |
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
| // Cache object | |
| var cache = {}; | |
| var getInCache = (name, date) => { | |
| var noDate = (typeof date === 'undefined'); | |
| if (cache[name] && (noDate || cache[name].date.getTime() > date.getTime())) { | |
| //debug('Hit ' + name + ' in cache.'); | |
| return cache[name].data; | |
| } |
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
| location ~ /.well-known { | |
| root /var/www/letsencrypt/; | |
| try_files $uri =404; | |
| allow all; | |
| } |
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
| # $Id: screenrc,v 1.15 2003/10/08 11:39:03 zal Exp $ | |
| # | |
| # /etc/screenrc | |
| # | |
| # This is the system wide screenrc. | |
| # | |
| # You can use this file to change the default behavior of screen system wide | |
| # or copy it to ~/.screenrc and use it as a starting point for your own | |
| # settings. | |
| # |
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
| this.loginUser = function(user, callback) { | |
| //plans for changing this to promises once i do error reporting | |
| // var q = Q.defer(); | |
| // if() { | |
| // q.resolve(num+1); | |
| // } else { | |
| // q.reject("error message"); | |
| // } | |
| // return q.promise; |