Skip to content

Instantly share code, notes, and snippets.

View m040601's full-sized avatar

somename123 m040601

View GitHub Profile
@m040601
m040601 / gist:1b65f39bc09b041a30bb1e128b1a54fb
Created August 21, 2021 04:22
gh tool created test gist
echo hello
@m040601
m040601 / raw.txt
Created September 24, 2019 09:10
raw js fonts hosts
150 a.adtng.com
2 a.postrelease.com
6 a.teads.tv
191 a.thumbs.redditmedia.com
5 aan.amazon.com
689 aax-eu.amazon-adsystem.com
68 aax-us-east.amazon-adsystem.com
219 acdn.adnxs.com
11 acridtwist.com
12 ad-delivery.net
0.0.0.0 66.media.tumblr.com
0.0.0.0 a.adtng.com
0.0.0.0 a.thumbs.redditmedia.com
0.0.0.0 a1.adform.net
0.0.0.0 aax-eu.amazon-adsystem.com
0.0.0.0 acdn.adnxs.com
0.0.0.0 ad.360yield.com
0.0.0.0 ad.crwdcntrl.net
0.0.0.0 ad.yieldlab.net
0.0.0.0 ads.adaptv.advertising.com
http://radioclasica.rtveradio.cires21.com/radioclasica.mp3
@m040601
m040601 / cvim.vim
Last active January 12, 2016 04:09
" hello world
" Open all of these in a tab with `gnb` or open one of these with <N>goa where <N>
let qmark a = ["http://www.reddit.com", "http://www.liliputing.com"]
" https://developer.chrome.com/extensions/match_patterns
" *://mail.google.com/* , Matches any URL that starts with http://mail.google.com or https://mail.google.com.
" let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "@https://mail.google.com/mail/*"]
@m040601
m040601 / calibre.readitlater.recipe.py
Created October 12, 2015 03:21
calibre python 'recipe' to access your pocket (former known as readitlater) account and download parsed articles
"""
Pocket Calibre Recipe v1.4
"""
from calibre import strftime
from calibre.web.feeds.news import BasicNewsRecipe
from string import Template
import json
import operator
import re
import tempfile
@m040601
m040601 / index.html
Created December 14, 2014 11:05
rCharts D3 Spatial Packages
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.css'>
<script src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js' type='text/javascript'></script>
<script src='//d3js.org/d3.v3.min.js' type='text/javascript'></script>
<script src='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.1.15-beta/nv.d3.min.js' type='text/javascript'></script>
<script src='//nvd3.org/assets/lib/fisheye.js' type='text/javascript'></script>
@m040601
m040601 / index.html
Created December 14, 2014 10:54
Scatterplot
<!doctype HTML>
<meta charset = 'utf-8'>
<html>
<head>
<script src='//ramnathv.github.io/rCharts/libraries/widgets/polycharts/js/polychart2.standalone.js' type='text/javascript'></script>
<style>
.rChart {
display: block;
# One-off script I wrote to slurp sample sentences off http://smart.fm
require 'rubygems'
require 'open-uri'
require 'hpricot'
def cleanup_text(str)
# str = str.gsub /<\/?b>/, "" # Human readable
str = str.gsub /\s+/, " "
return str.strip
@m040601
m040601 / delicious_hpricot_openuri.rb
Created October 29, 2010 14:59
fetch delicious data with Hpricot and OpenURI
class Delicious
class << self
def tag(username, name, count = 15)
links = []
url = "http://feeds.delicious.com/v2/rss/#{username}/#{name}?count=#{count}"
feed = Hpricot(open(url))
feed.search("item").each do |i|
item = OpenStruct.new
item.link = i.at('link').next.to_s