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
# | |
# The package, named "httpd" is installed | |
# | |
# @see https://docs.chef.io/resource_package.html | |
# | |
package 'apache2' | |
# | |
# The template, named "/var/www/html/index.html" is created |
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
# | |
# The package, named "httpd" is installed | |
# | |
# @see https://docs.chef.io/resource_package.html | |
# | |
package 'apache2' | |
# | |
# The template, named "/var/www/html/index.html" is created |
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
# If you just change the port or add more ports here, you will likely also | |
# have to change the VirtualHost statement in | |
# /etc/apache2/sites-enabled/000-default.conf | |
Listen <%= node['apache']['port'] %> | |
<IfModule ssl_module> | |
Listen 443 | |
</IfModule> |
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
import tweepy | |
import json | |
screen_name = "$TWITTERNAME" | |
auth = tweepy.OAuthHandler("$CONSUMER_KEY", "$CONSUMER_SECRET_KEY") | |
auth.set_access_token('ACCESS_TOKEN', 'ACCESS_TOKEN_SECRET') | |
api = tweepy.API(auth) | |
historical_tweets = api.user_timeline(screen_name = screen_name,count=200) | |
for tweet in historical_tweets: | |
print tweet.text |