Skip to content

Instantly share code, notes, and snippets.

View jalaziz's full-sized avatar

Jameel Al-Aziz jalaziz

  • Paradigm Connect
  • Los Angeles, CA
  • X @jalaziz
View GitHub Profile
@jalaziz
jalaziz / 70-ec2-nvme-devices.rules
Last active March 21, 2024 06:05
AWS EBS NVMe udev rules
# Copyright (C) 2006-2016 Amazon.com, Inc. or its affiliates.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accompanying this file. This file is
@jalaziz
jalaziz / 999-aws-ebs-nvme.rules
Last active September 28, 2023 20:05
CoreOS AWS EBS NVMe udev rules
# Copyright (C) 2018 Jameel Al-Aziz
# Modified for simplicification and use within CoreOS.
#
# Copyright (C) 2006-2016 Amazon.com, Inc. or its affiliates.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
@jalaziz
jalaziz / dedupe.py
Last active February 16, 2023 03:45
Tabs Outliner Scripts
import json
import os
export_file = 'tree-exported-Sat-Apr-09-2016.tree'
backup_export_file = '{}.bak'.format(export_file)
new_tree = []
seen_urls = set()
os.rename(export_file, backup_export_file)
@jalaziz
jalaziz / README.md
Created August 14, 2014 02:25
Sentry upstart and nginx configs

Setup

  1. Create a new user on the system:

    sudo adduser --system --group --shell /bin/bash --home /opt/sentry sentry
  2. Create the virualenv and install the required packages:

@jalaziz
jalaziz / .osx
Last active May 16, 2021 15:45
.osx
#!/usr/bin/env bash
# ~/.osx — https://mths.be/osx
# Ask for the administrator password upfront
sudo -v
# Keep-alive: update existing `sudo` time stamp until `.osx` has finished
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
@jalaziz
jalaziz / ua.js
Last active March 22, 2018 05:21 — forked from suzuken/ua.js
experimental UDF on Bigquery with https://github.com/woothee/woothee-js.
var root = this;
// embed: dataset, util, browser, mobilephone, crawler, appliance, misc, woothee
// GENERATED from dataset.yaml at Wed Mar 21 22:09:34 PDT 2018 by jalaziz
// Snapshot from package.json
var package_info = {"name":"woothee","version":"1.7.0","description":"User-Agent string parser (js implementation)","main":"./release/woothee","devDependencies":{"mocha":">= 1.7.0","chai":">= 1.3.0","js-yaml":">= 1.0.3","should":"~1.2.2"},"scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/woothee/woothee-js"},"author":"tagomoris","license":"Apache v2"};
var dataset = {};
(function(){
@jalaziz
jalaziz / graphite.nginx
Created October 12, 2012 03:24
uWSGI and nginx configuration for Graphite (assumes /opt/graphite/conf/graphite.wsgi.example has been renamed to /opt/graphite/conf/wsgi.py)
server {
listen 8080 default_server deferred;
charset utf-8;
access_log /var/log/nginx/graphite.access.log;
error_log /var/log/nginx/graphite.error.log;
root /opt/graphite/webapp;
location /static/admin/ {
@jalaziz
jalaziz / RedisConnectionManager.cs
Created September 30, 2013 20:01
Booksleeve Redis Connection Manager
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookSleeve;
namespace Redis
{
public class RedisConnectionManager : IDisposable
{
@jalaziz
jalaziz / README.md
Last active December 23, 2015 19:39
Localshop upstart and nginx configs -- WIP

Setup

  1. Create a new user on the system:

    adduser --system --group --shell /bin/sh --home /opt/localshop localshop
  2. Clone localshop into /opt/localshop. (as of writing this README, localshop is outdated on pypi)

@jalaziz
jalaziz / redis-command.conf
Created September 16, 2013 08:07
Redis Commander Upstart
description "Redis Commander"
start on runlevel [2345]
stop on runlevel [06]
respawn limit 10 5
setuid www-data
exec redis-commander