This file contains 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
# frozen_string_literal: true | |
# FORKED FROM: https://gist.github.com/amit/45e750edde94b70431f5d42caadee423 | |
# SEE ALSO: https://gist.github.com/hopsoft/56ba6f55fe48ad7f8b90 | |
# apt install postgresql-client | |
# apt-get -y install bash-completion wget | |
# wget --no-check-certificate --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - | |
# echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list | |
# apt-get update |
This file contains 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
var sys=require('sys'), http = require('http'); | |
var target = "jsconf"; | |
var connection = http.createClient(80, "search.twitter.com"); | |
var since = 0; | |
function getTweets() { | |
var request = connection.request('GET', "/search.json?q=" + target + "&since_id="+since, {"host": "search.twitter.com", "User-Agent": "NodeJS HTTP Client"}); | |
request.addListener("response", function(response) { | |
var responseBody = ""; | |
response.setEncoding("utf8"); |
This file contains 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
.mouse{ | |
position: absolute; | |
background-image: url('../images/cursor.png'); | |
width: 15px; | |
height: 22px; | |
z-index: 100; | |
} |
This file contains 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
require 'twitter' | |
# TwitterBackup.new(user,pass).backup! | |
# Will save tweets to files | |
# ~/.twitter_backup/tweets/tweet_id.yaml # Full yaml tweet | |
# ~/.twitter_backup/tweets/tweet_id.txt # Only tweet text | |
# Search locally in your tweets | |
# cat ~/.twitter_backup/tweets/*.txt | grep -i 'some text' |