Skip to content

Instantly share code, notes, and snippets.

View sharjeelaziz's full-sized avatar

Sharjeel Aziz sharjeelaziz

View GitHub Profile
@sharjeelaziz
sharjeelaziz / find_chia_plot.md
Last active August 29, 2023 23:47
Which Chia plot file found the proof?

How to find the Chia plot file that won the block?

  1. Search your receive address on Chia Explorer
  2. Scroll down the page to look at your farmer rewards
  3. Click on the reward for which you want to find the plot
  4. On the page that comes up, click on the Confirmed block index number
  5. Scroll down to find the proof_of_space.plot_public_key and copy the key

On your harvester/full node run the following command at the command prompt:

@grugnog
grugnog / trellovotecount
Last active October 21, 2022 20:13
Count votes in Trello by person
#!/usr/bin/env bash
if [ -z "${TRELLO_API_KEY}" -o -z "${TRELLO_API_TOKEN}" ]; then
echo "Go to https://trello.com/app-key and export Personal Token as TRELLO_API_KEY, then manually generate a token and export as TRELLO_API_TOKEN"
exit 1
fi
if [ -z "${1}" ]; then
echo "Provide the board ID (8 character alphanumeric from the URL) as an argument"
exit 2
fi
board="${1}"
@demisx
demisx / sites-available_angularjs_html5
Last active March 28, 2020 18:23
Nginx config for HTML5 AngularJS applications
server {
listen 8000;
server_name localhost;
root /Users/dmoore/projects/tutorials/angular-phonecat2/.build;
access_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.access.log";
error_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.error.log";
error_page 404 /app/404.html;
error_page 403 /app/403.html;
@mikhailov
mikhailov / nginx.conf
Last active October 7, 2018 10:15
Jira connection optimised (Nio enabled, gzip disabled on Tomcat, but enabled on Reverse proxy side, Proxy with HTTP 1.1 keep-alive, SSL offload, SPDY). Nginx 1.5.10+ recommended.
echo 'events {
worker_connections 1024;
}
error_log /usr/local/Cellar/nginx/1.5.8/error.log;
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
@jasonrudolph
jasonrudolph / programming-achievements-suggested-by-github-members.md
Created August 19, 2011 21:25
Programming Achievements: Suggestions from the GitHub Community

Programming Achievements: Suggestions from the GitHub Community

Last week, I published some ideas for leveling up as a developer. I put it on GitHub as a gist, and I encouraged people to modify the list to their liking:

Feel free to fork it and add more achievements. (Make sure they're measurable.)

Or, fork it and mark off the achievements you've already conquered. You might even flag the one that you're currently working on.

So far, more than 270 developers have forked this gist. Many devs have customized their forks as personal to-do lists (e.g., crossing off past achievements and highlighting the goal they're currently pursuing). A number of people have also added new achievements to their forks, indicating additional experiences that they

@jfmoy
jfmoy / about.md
Created August 11, 2011 10:46 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@bradmontgomery
bradmontgomery / kill_attrs.py
Created November 11, 2010 23:12
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>'