Skip to content

Instantly share code, notes, and snippets.

View zoidyzoidzoid's full-sized avatar
🌈
Be the change you wanna see in the world!

Zoid zoidyzoidzoid

🌈
Be the change you wanna see in the world!
View GitHub Profile
@zoidyzoidzoid
zoidyzoidzoid / service-checklist.md
Created August 19, 2021 13:45 — forked from acolyer/service-checklist.md
Internet Scale Services Checklist

Internet Scale Services Checklist

A checklist for designing and developing internet scale services, inspired by James Hamilton's 2007 paper "On Desgining and Deploying Internet-Scale Services."

Basic tenets

  • Does the design expect failures to happen regularly and handle them gracefully?
  • Have we kept things as simple as possible?
@zoidyzoidzoid
zoidyzoidzoid / pdf-ocr.sh
Last active October 3, 2020 10:27 — forked from jbothma/pdf-ocr.sh
Adding OCR text to a PDF (even a noisy one)
#!/usr/bin/env bash
# usage: ./pdf-ocr.sh scanned.pdf
#
# Download this file
# Make it executable:
# chmod +x pdf-ocr.sh
# Run it on your example file
# ./pdf-ocr.sh scanned.pdf
set -euf -o pipefail -o xtrace
[kubernetes]
name=Kubernetes
baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg
{
"maps": {
"cs_agency": {
"pos_x": "-2947",
"pos_y": "2492",
"scale": "5"
},
"de_austria": {
"pos_x": "-2877",
"pos_y": "2930",
ls
cd /usr/src/app/
ls
mkdir install-kernel.sh
chmod +x install-kernel.sh
vim install-kernel.sh
chmod +x install-kernel.sh
wget https://github.com/linuxkit/linux/archive/v4.9.125-linuxkit.zip
cd -
ls
2019-04-12 15:10:43.223 INFO [main] org.jmxtrans.agent.JmxTransAgent - Starting 'JMX metrics exporter agent: 1.2.6' with configuration '/app/bin/jmxtrans-agent.xml'...
2019-04-12 15:10:43.235 INFO [main] org.jmxtrans.agent.JmxTransAgent - PropertiesLoader: Empty Properties Loader
2019-04-12 15:10:43.466 INFO [main] org.jmxtrans.agent.GraphitePlainTextTcpOutputWriter - GraphitePlainTextTcpOutputWriter is configured with HostAndPort{host='monitoring-influxdb-graphite', port=2003}, metricPathPrefix=haystack.traces.indexer.trace-indexer-7d89676b98-4wtfz., socketConnectTimeoutInMillis=500
2019-04-12 15:10:43.475 INFO [main] org.jmxtrans.agent.JmxTransAgent - JmxTransAgent started with configuration '/app/bin/jmxtrans-agent.xml'
15:10:43,537 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
15:10:43,537 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
15:10:43,537 |-INFO in ch.qos.logback.classic.LoggerContext[defau
import pickle
import time
from django.core.cache.backends.base import DEFAULT_TIMEOUT
from django.core.cache.backends.memcached import MemcachedCache as _Cache
try:
import memcache
except ImportError:
_MintCache = None
#!/usr/bin/env python
import sys
from collections import Counter
from fnmatch import fnmatch
from ijson import parse
def main():
prefixes = Counter()
This file has been truncated, but you can view the full file.
{
"requests": [
{
"provider": {
"name": "Counter-Strike: Global Offensive",
"appid": 730,
"version": 13653,
"steamid": "76561197991583913",
"timestamp": 1537562317
},
@zoidyzoidzoid
zoidyzoidzoid / github-push-pr
Last active September 21, 2018 13:45 — forked from keegancsmith/github-push-pr
git alias to push and open PR view
#!/bin/bash
# Pushes to origin and opens a github compare view of it to speed up PR
# creation.
#
# To install add to $PATH with executable permission and run
#
# git config --global alias.pr '!github-push-pr'
#