tree /etc/cron.d
and on ubuntu, by default there are nthousand cron and youDontKnowWhat they are executing
| from urlparse import urlparse | |
| import json, requests | |
| from bs4 import BeautifulSoup # sudo pip install beautifulsoup4 | |
| import codecs | |
| def parse_page(last_note_ts, pos_max): | |
| refresh_cursor = "&refresh_cursor=TWEET-463466102396583936-463468070993137664-BD1UO2FFu9QAAAAAAAAETAAAAAcAAAASAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" | |
| # https://twitter.com/i/search/timeline?q=#bitcoin since:2014-05-05 until:2014-05-06&src=savs&vertical=default&composed_count=0&include_available_features=1&include_entities=1&include_new_items_bar=true&interval=30000&last_note_ts=1434594375&latent_count=0&refresh_cursor=TWEET-463466102396583936-463468070993137664-BD1UO2FFu9QAAAAAAAAETAAAAAcAAAASAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
| require 'descriptive_statistics' | |
| Dir.glob("before/*") do |path| | |
| lines = File.readlines(path) | |
| lines = lines.map do |line| | |
| m = line.match(/took (\d+\.\d+). Status:/) | |
| m && m[1].to_f | |
| end |
| // purchase a product with a credit card | |
| purchase('productId') | |
| .using( { | |
| cc: "4556934156210213", | |
| valid: "2016-10", | |
| csc: "123" | |
| } ) | |
| // purchase a product with paypal | |
| purchase('productId') |
| expand = (text)-> | |
| text | |
| .replace /&/g, '&' | |
| .replace /</g, '<' | |
| .replace />/g, '>' | |
| .replace /\*(.+?)\*/g, '<i>$1</i>' | |
| beam = (url) -> | |
| $.getJSON url, (page) -> |
| set -xe | |
| mkdir ~/tmp | |
| cd ~/tmp | |
| wget https://bitcoin.org/bin/bitcoin-core-0.19.0.1/bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz --no-check-certificate | |
| # check the shasum | |
| tar xvf bitcoin-0.19.0.1-x86_64-linux-gnu.tar.gz |
| # another idea - see index2 | |
| # when you code the code - a possible implementation gets built | |
| # when you code the class (interface, module, view wathever) | |
| # - a server is written to hit the view | |
| # - an implementation like this one - so only an editor like codemirror on 2 tabs synced | |
| class People |
| test |
| # Usage: redis-cli publish message hello | |
| require 'sinatra' | |
| require 'redis' | |
| conns = [] | |
| get '/' do | |
| erb :index | |
| end |
| # main method / fn | |
| # | |
| def combined_sorted_enum(enums) | |
| out = [] | |
| enum_ended = nil | |
| while true do | |
| enums.sort_by! do |enum| | |
| begin | |
| enum.peek |