Skip to content

Instantly share code, notes, and snippets.

View parano's full-sized avatar
🍱

Chaoyu parano

🍱
View GitHub Profile
@parano
parano / Get notified when certain topics are being discussed on Hacker News.md
Last active March 31, 2022 09:24
Get notified when certain topics are being discussed on Hacker News

Get notified when certain topics are being discussed on Hacker News

This is a simple solution I use for getting notifications on my phone, whenever there is discussion happening on Hacker News related to topics that I am interested in. The solution is relying on the @newsyc20 twitter bot(or @newsyc50, @newsyc100, ...), twitter advanced search query and ifttt.com.

Here's an example of how I made ifttt to send me a mobile notification when there's Machine Learning, MLops, BentoML, releated discussion on hacker news that has reached 20 points:

  1. Create a twitter search query that filters content posted by @newsyc20, here's the query I used: [ML OR AI OR mlops OR "machine learning" OR "artificial intelligence" OR "deep learning" OR "bentoml" from:newsyc20](https://twitter.com/search?q=ML%20OR%20AI%20OR%20mlops%20OR%20%22machine%20learning%22%20OR%20%22artificial%20intelligence%22%20OR%20%22deep%20learning%22%20OR%20%22bentoml%22%20from%3A
@parano
parano / lookup.scpt
Last active May 10, 2023 18:41
Mac OS Quick Action: Lookup selected word in Google Translate
on run {input, parameters}
set phrase to input as string
set ui_lang to "en"
set from_lang to "auto"
set to_lang to "zh-CN"
set google_translate_url to "https://translate.google.com"
set google_translate_look_up_url to google_translate_url & "/?hl=" & ui_lang & "&sl=" & from_lang & "&tl=" & to_lang & "&text=" & phrase
@itod
itod / split_keyboards.md
Last active June 12, 2024 12:08
Every "split" mechanical keyboard currently being sold that I know of
@so0k
so0k / kubectl.md
Last active April 25, 2024 12:40
Playing with kubectl output

Kubectl output options

Let's look at some basic kubectl output options.

Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).

We can start with:

kubectl get no
@staltz
staltz / introrx.md
Last active July 2, 2024 03:45
The introduction to Reactive Programming you've been missing
@misterbrownlee
misterbrownlee / jenkins-notes.md
Created September 12, 2012 18:10
Jenkins setup

I just had to set up Jenkins to use GitHub. My notes (to myself, mostly):

Detailed Instructions

For setting up Jenkins to build GitHub projects. This assumes some ability to manage Jenkins, use the command line, set up a utility LDAP account, etc. Please share or improve this Gist as needed.

Install Jenkins Plugins

@parano
parano / dom-like-parsing.rb
Created February 29, 2012 08:41
scrape jingdian
#!/usr/bin/ruby -w
require 'rexml/document'
include REXML
xmlfile = File.new("tour_treepath_area.xml")
xmldoc = Document.new(xmlfile)
root = xmldoc.root
#puts root.attributes["ver"]
@samqiu
samqiu / railscasts.rb
Last active December 9, 2022 03:49
Download free Railscast video
#!/usr/bin/ruby
require 'rss'
# Usage
# $ ./railscasts.rb http://railscasts.com/subscriptions/YOURRAILSCASTRSS/\/
# episodes.rss
# OR
# $ ./railscasts.rb
p 'Downloading rss index'