Skip to content

Instantly share code, notes, and snippets.

View RobbiNespu's full-sized avatar
:octocat:
Wut?

Robbi Nespu RobbiNespu

:octocat:
Wut?
View GitHub Profile
{{ if eq (printf "%v" $.Site.BaseURL) "http://localhost:1313/" }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css" integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" media="all" onload="this.media='all',this.onload=null" crossorigin="">
<script defer="" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.js" integrity="sha384-g7c+Jr9ZivxKLnZTDUhnkOnsh30B4H0rpLUpJ4jAIKs4fnJI+sEnkvrMWph2EDg4" crossorigin=""></script>
<script defer="" src="https://cdn.jsdelivr.net/npm/[email protected]/dist/contrib/auto-render.min.js" integrity="sha384-mll67QQFJfxn0IYznZYonOWZ644AWYC+Pt2cHqMaRhXVrursRwvLnLaebdGIlYNa" crossorigin=""></script>
<script>
document.addEventListener("DOMContentLoaded",function(){
renderMathInElement(
document.body,{
delimiters:[
{left:"$$",right:"$$",display:!0},
{{<conversation >}}
Don't think! FEEL. It is like a finger pointing a way to the moon... Don't concentrate on the finger or you will miss all that heavenly glory.
{{</conversation>}}
{{<conversation Morpheus "/images/upload/tuzki-peace.png" >}}
What you know you can't explain, but you feel it. You've felt it your entire life, that there's something wrong with the world. You don't know what it is, but it's there, like a splinter in your mind, driving you mad.
{{</conversation>}}
{{<conversation "Agent Smith" "/images/upload/corona.png">}}
You hear that, Mr. Anderson? That's the sound of inevitability, that's the sound of your death, goodbye, Mr. Anderson
@RobbiNespu
RobbiNespu / mastodon-notes.md
Created August 26, 2021 08:47 — forked from AndrewKvalheim/mastodon-notes.md
Notes on running a personal Mastodon instance

Personal Mastodon instance

Effective total cost: $3–4/mo

Setup

Decide on an EC2 instance type:

  1. At AWS Console → EC2 → Instance Types, filter for ≥1 GB RAM and sort by price.
  • t3a.micro is lowest.
#!/bin/bash
#Removes old revisions of snaps
#CLOSE ALL SNAPS BEFORE RUNNING THIS
set -eu
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
while read snapname revision; do
snap remove "$snapname" --revision="$revision"
done
{{< gallery >}}
{{< figure src="../../images/upload/60358116_1158504001018697_6541084584484798464_n.jpg" caption="This is a local file">}}
{{< figure src="https://www.liwen.id.au/img/arduino/test-setup.jpg" caption="This is a remote file">}}
{{< /gallery >}}
@RobbiNespu
RobbiNespu / blogspot_to_jekyll.rb
Created July 22, 2021 03:18 — forked from prabathbr/blogspot_to_jekyll.rb
added <require 'httparty'> , created "setup.sh" which will make a ruby environment , fixed script error with invalid post names
#!/usr/bin/env ruby
#
# Convert blogger (blogspot) posts to jekyll posts
#
# Basic Usage
# -----------
#
# ./blogger_to_jekyll.rb feed_url
#
# where `feed_url` can have the following format:
@RobbiNespu
RobbiNespu / blogspot_feed_scraper.py
Created July 5, 2021 14:32
source ~/miniconda3/etc/profile.d/conda.sh conda create --name snakes python=3.7
import feedparser
# nenez9595.blogspot.com/feeds/posts/default?start-index=3?max-results=500
# nenez9595.blogspot.com/feeds/posts/default?n=1000
# nenez9595.blogspot.com/feeds/posts/default?alt=json
rss_url = "https://nenez9595.blogspot.com/feeds/posts/default?max-results=500"
#NewsFeed = feedparser.parse(rss_url)
#entry = NewsFeed.entries[1]
#print(entry.keys())
feed = feedparser.parse( rss_url )
@RobbiNespu
RobbiNespu / blogspot_to_jekyll.rb
Last active July 19, 2021 11:24 — forked from danielgomezrico/blogspot_to_jekyll.rb
update feedjira fetch_and_parse method
#!/usr/bin/env ruby
#
# Convert blogger (blogspot) posts to jekyll posts
#
# Basic Usage
# -----------
#
# ./blogger_to_jekyll.rb feed_url
#
# where `feed_url` can have the following format:
{{< load-photoswipe >}}
# Single file
{{< figure src="../../images/upload/60358116_1158504001018697_6541084584484798464_n.jpg" alt="This is a caption">}}
# Gallery - load directory (local) directly
{{< gallery dir="images/upload/" />}}
# Gallery - load local file and remove file
{{< gallery >}}
{{< figure src="../images/upload/60358116_1158504001018697_6541084584484798464_n.jpg" caption="This is a local file">}}
@RobbiNespu
RobbiNespu / license-badges.md
Created June 25, 2021 15:27 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.  

Translations: (No guarantee that the translations are up-to-date)