Skip to content

Instantly share code, notes, and snippets.

@jachin
jachin / openeats-2-nextcloud-cookbook.py
Created February 15, 2024 03:02
OpenEats to Nextcloud Cookbook
import requests
import os
import json
import getpass
import datetime
from shutil import copyfileobj, make_archive
from urllib.parse import urljoin
from pathlib import Path
# Configuration
@jachin
jachin / youtube_rss.txt
Last active January 20, 2020 05:57
YouTube Cannel RSS Feed
https://www.youtube.com/feeds/videos.xml?channel_id=<channel-id>
@jachin
jachin / gist:b3385735e5b26d16c106e07ed636c048
Created April 17, 2018 18:21
Blockstack Verification
Verifying my Blockstack ID is secured with the address 18cVBwhNMBhcT66LTtLctAZLd5prBBwAUP https://explorer.blockstack.org/address/18cVBwhNMBhcT66LTtLctAZLd5prBBwAUP
@jachin
jachin / itunes-playlist-to-rst.py
Created December 12, 2017 20:50
This little script takes a XML iTunes playlist file and makes an reStructuredText list out of the playlist. There's more features to add, but this is a start.
#! /usr/bin/env python3
import argparse
import plistlib
if (__name__ == "__main__"):
parser = argparse.ArgumentParser()
parser.add_argument("playlist_file")
@jachin
jachin / atili.us-public-keys.txt
Last active September 4, 2017 06:56
An SSH Public Key I use Sometimes.
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDAvpSfWKT2DvcAV498bUkg/lk3P7T0zIoZEhDDUwwu/4ARV88A396XtsdzioQTSzguswJW5M3nEIhVcjIw6Z872AZWFugTtR95+DsFIUcnm3bEJWD5mfreBJuyhA171E1kYMqdTReR/a/1iDGjzdYY4OqSYrC3QDomrjIHLX8zSRhwsftm2XtuQxO5IywNKoSx/cPdGNXuHEviJJVskzb7zrF8fjLh1wqb7y7JgzUVG8AiqlVa5FFXFncdgb4tMith2dcdWBR/Ne2crZxhDeq1AgSU4exgeEoVpPNw2LmXvFws2mMs4/OWPXXZvjugprHIlW9O3JgzxSS1+77IVb8y2bQDf92GB9zqglNSZUPKyLBg9cpQljdF0rEQcBjCacQ1t8Xq14zI5TqXsQDesYRHEWyOP60geFQ+25a+tjy8+gu5bNQbRf5qClSFfQHN7Vw10CGrhlw+qroIn++fq6/Zs8j1b1G14P8SDqIB3cPdAHedRc/KJMrw3pty2b5LVpYeJxcrZT7SPRnPuaohJUqFJC454Xt2Dqv+pUxc7H08k0ry8PJb4AUiWplHybJPVyJyipIxlKjT9aE9Jrz4gQfzbn8vMq+JOtlKv8W66JRxJFQUdg3RP5BTjR61iBn6si6w8IAwJFyCC8RjaIUHQBhC2/2ovJ+zu5cBGBfbIP2GwQ== jachin@Jachins-Fifth-Limb.local
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCwrsBg2dtd/tLIGWfjZXwpOWWYmq8fC2l6AQW1h7jVuDIoNGix0N1f840M7qcHeLsdJ3hsGOO4mEFj/CAkhbSfZzT9NQpaxYgdpoBvqFP40WBvlh6u/rLwvbvhGjf1BXP/v0uiPgvs8YEN5I9D2W6Da1v2+xms0GznakNiQP1quyqTgA8jY1cFdX6qpZjR3gGFj73MQQ1fuyr/i9cA/0HypIsROCIfv8oyw0L
@jachin
jachin / gist:60eed5feff70000764f212747a97e9a5
Created September 27, 2016 01:16
saltstack rsync error
----------
ID: /usr/share/nginx/floyds.barberwindow.com/meteor-app
Function: rsync.synchronized
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/var/tmp/.jachin_b4dd4e_salt/py2/salt/state.py", line 1733, in call
**cdata['kwargs'])
File "/var/tmp/.jachin_b4dd4e_salt/py2/salt/loader.py", line 1652, in wrapper
return f(*args, **kwargs)
File "/var/tmp/.jachin_b4dd4e_salt/py2/salt/states/rsync.py", line 112, in synchronized
Verifying that +jachin is my blockchain ID. https://onename.com/jachin

Keybase proof

I hereby claim:

  • I am jachin on github.
  • I am jachin (https://keybase.io/jachin) on keybase.
  • I have a public key whose fingerprint is 3311 FDDB 2F3F A5F4 942A 41BB CE61 3961 68A6 2428

To claim this, I am signing this object:

#!/bin/sh
# Converts a mysqldump file into a Sqlite 3 compatible file. It also extracts the MySQL `KEY xxxxx` from the
# CREATE block and create them in separate commands _after_ all the INSERTs.
# Awk is chosen because it's fast and portable. You can use gawk, original awk or even the lightning fast mawk.
# The mysqldump file is traversed only once.
# Jachin - I changed this so I could run just the awk part.
server {
listen 80;
server_name app.example.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
listen 443;
server_name app.example.com;