Skip to content

Instantly share code, notes, and snippets.

@yield65
yield65 / pnf_of_the_day.md
Last active April 22, 2019 07:21
pnf_of_the_day.md
--------+------------------------------
 5450.00|                         X        
 5400.00|                         XO       
 5350.00|                       X XO  X    
 5300.00|                     X XOXO  X <==
 5250.00|                     XOXOXO  X    
 5200.00|                     XOXOXO  X    
 5150.00|                     XOXO OX X    
 5100.00|                     XOX  OXOX    
@yield65
yield65 / ea.md
Last active March 16, 2019 16:29
ea

Armor

  • protection 4
  • unbreaking 3
  • mending

Helmet

  • aqua affinity
  • respiration 3

Boots

@yield65
yield65 / bitcoin_mxn_check.py
Created March 28, 2017 05:27
btc mexico exchanges + xmr
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from datetime import datetime
import urllib
class MyOpener(urllib.FancyURLopener):
version = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/56.0.2924.76 Chrome/56.0.2924.76 Safari/537.36'
myopener = MyOpener()
volabit = myopener.open('https://www.volabit.com/api/v1/tickers')
@yield65
yield65 / markdown.md
Created June 16, 2016 15:13 — forked from jonschlinkert/markdown-cheatsheet.md
A better markdown cheatsheet. I used Bootstrap's Base CSS documentation as a reference.

Typography

Headings

Headings from h1 through h6 are constructed with a # for each level:

# h1 Heading
## h2 Heading
### h3 Heading
Fixing a Package in Factory
  • Branch package into project in your home project and check out package directly:

osc bco (getpac) $PACKAGE

(Note: getpac is alias for bco)

  • Fix package
<HMTL>
<HEAD>
<TITLE>404 Error</TITLE>
</HEAD>
<BODY BGCOLOR="#0000C0" TEXT="#C0C0C0">
<TABLE BORDER="0" COLS="1" BGCOLOR="#0000C0" CELLSPACING="1" CELLPADDING="1" WIDTH="100%" HEIGHT="100%">
<TR><TD>
<CENTER>

Keybase proof

I hereby claim:

  • I am yield65 on github.
  • I am yield (https://keybase.io/yield) on keybase.
  • I have a public key whose fingerprint is 0E5A 2F11 8C72 EAC8 703B 71AB E114 D515 7A91 743A

To claim this, I am signing this object:

@yield65
yield65 / apache_error_log_parser.sh
Created March 15, 2016 07:27 — forked from marcanuy/apache_error_log_parser.sh
Apache error log list ordered by most common errors
#!/bin/bash
sed 's^\[.*\]^^g' error.log | sed 's^\, referer: [^\n]*^^g' | sort | uniq -c | sort -n

TL;DR -- Use DAR for compressed (bzip2, no xz), encrypted (AES), multi-volume, differential backup.

What it means

Differential backup = always diff of the base (only one layer)

Incremental backup = diff of diff of base (sort of layering, u need to peel off layer-by-layer while restoring backups)

Differential backups are easier to manage than incremental: only restore the latest full backup then the latest differential backup. With incrementals, you need to restore all of them in sequence after the last full.

Duplicity offers only incremental backup :(

@yield65
yield65 / ever-2-md.py
Created February 12, 2014 05:08
evernote[html]-to-markdown[md].py
#!/usr/bin/env python
from bs4 import BeautifulSoup
import argparse
import html2text
import sys
import codecs
import re
import os
import time
from datetime import datetime