Skip to content

Instantly share code, notes, and snippets.

@sguzman
sguzman / as.sh
Created May 29, 2019 02:01
Get cidr ipv4 blocks from a given as
whois -h whois.radb.net -- '-i origin <ASN>' | grep 'route:'
@sguzman
sguzman / nominal_to_real.math.nb
Created April 25, 2020 19:35
Mathematica expression that converts nominal pricing for some time series (I use stock price) to today's dollars
With[{data = Out[9]},
Map[
With[{modate = DateValue[First@#, {"Year", "Month", "Day"}]},
{First@#,
Quantity[
QuantityMagnitude@
InflationAdjust[
Quantity[QuantityMagnitude@Last@#,
DatedUnit["USDollars", modate]]
, Today], "USDollars"]
@sguzman
sguzman / rss.txt
Created May 6, 2020 02:31
Some rss url feeds
https://blog.wolfram.com/feed/
https://writings.stephenwolfram.com/feed/
http://feeds.hbr.org/harvardbusiness/
https://feeds.feedburner.com/visualcapitalist
https://seekingalpha.com/news/tech/feed
https://seekingalpha.com/news/top-news/feed
https://seekingalpha.com/news/us-economy/feed
https://seekingalpha.com/news/m-a/feed
https://seekingalpha.com/news/energy/feed
https://seekingalpha.com/news/healthcare/feed
@sguzman
sguzman / pycurses.py
Created May 9, 2020 19:13 — forked from claymcleod/pycurses.py
Python curses example
import sys,os
import curses
def draw_menu(stdscr):
k = 0
cursor_x = 0
cursor_y = 0
# Clear and refresh the screen for a blank canvas
stdscr.clear()
@sguzman
sguzman / feeds_unique.txt
Created May 11, 2020 10:08 — forked from eteubert/feeds_unique.txt
List of Podcast RSS Feeds, extracted via iTunes API
This file has been truncated, but you can view the full file.
<http://sailortalk.podOmatic.com/rss2.xml>
HTTP://www.knient.com/CAL/CAL-Podcast/CAL-Podcast.xml
Http://feeds.feedburner.com/fridgeandhbomb
Http://feeds.feedburner.com/wfodicks
Http://ravenc-taouf.podomatic.com/rss2.xml
Http://www.calvaryonline.org/podcasts/podcast.xml
Http://www.changkhui.com/XML/teemateepai.xml
httP://dtfreunde.podcaster.de/Deutsches_Theater.rss
http://-myantioch.sermon.tv/rss/main
http://004.podOmatic.com/rss2.xml
@sguzman
sguzman / wondery.txt
Created May 14, 2020 00:35
Some Wondery Podcast show RSS feeds
https://wondery.com/shows/the-daily-smile/
https://wondery.com/shows/severed-threads/
https://wondery.com/shows/wondery-kids/
https://wondery.com/shows/the-school-of-greatness/
https://wondery.com/shows/fighting-coronavirus/
https://wondery.com/shows/joe-exotic/
https://wondery.com/shows/motive-for-murder/
https://wondery.com/shows/into-america/
https://wondery.com/shows/why-is-this-happening-with-chris-hayes/
https://wondery.com/shows/the-oath-with-chuck-rosenberg/
@sguzman
sguzman / castero-import.txt
Created May 14, 2020 00:38
Actual rss feeds unlike the my previous gist...
https://rss.art19.com/the-daily-smile
https://rss.art19.com/fighting-coronavirus-from-american-innovations
https://rss.art19.com/joe-exotic
https://rss.art19.com/even-the-rich
https://rss.art19.com/the-dating-game-killer
https://rss.art19.com/dying-for-sex
https://rss.art19.com/wecrashed
https://rss.art19.com/deadly-misadventures
https://rss.art19.com/blood-ties
https://rss.art19.com/the-sneak
@sguzman
sguzman / delete_git_submodule.md
Created May 27, 2020 13:25 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@sguzman
sguzman / date.sh
Created May 28, 2020 07:19
Extreme dating
date +'%A(%u/7) Week(%V/53) Day(%j/365) %d %B(%m/12) Quarter(%q/4) %Y %H:%M:%S(%s) %Z(%z)'
nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 390.25 (buildmeister@swio-display-x86-rhel47-03) Wed Jan 24 20:46:04 PST 2018
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0"
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
EndSection