Skip to content

Instantly share code, notes, and snippets.

View edison12a's full-sized avatar

Edison A edison12a

  • Singalarity
  • Remote
View GitHub Profile
@edison12a
edison12a / mac-setup-redis.md
Created August 10, 2021 15:43 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@edison12a
edison12a / itme.gif
Created September 1, 2019 11:59 — forked from ewdurbin/itme.gif
itme.gif

Contributing

When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

Pull Request Process

  1. Ensure any install or build dependencies are removed before the end of the layer when doing a
@edison12a
edison12a / xmlpp.py
Created April 26, 2018 08:36 — forked from yoander/xmlpp.py
Python script to pretty print XML files
#!/usr/bin/python
import os
import re
import HTMLParser as parser
import xml.dom.minidom as minidom
import sys
try:
# Read de file name from standard input
filename = sys.argv[1]
@edison12a
edison12a / kill_attrs.py
Created April 3, 2018 13:15 — forked from bradmontgomery/kill_attrs.py
A way to remove all HTML attributes with BeautifulSoup
from BeautifulSoup import BeautifulSoup
def _remove_attrs(soup):
for tag in soup.findAll(True):
tag.attrs = None
return soup
def example():
doc = '<html><head><title>test</title></head><body id="foo" onload="whatever"><p class="whatever">junk</p><div style="background: yellow;" id="foo" class="blah">blah</div></body></html>'