Skip to content

Instantly share code, notes, and snippets.

Avatar

Jameel Al-Aziz jalaziz

  • Los Angeles, CA
View GitHub Profile
@jalaziz
jalaziz / 999-aws-ebs-nvme.rules
Last active Oct 21, 2019
CoreOS AWS EBS NVMe udev rules
View 999-aws-ebs-nvme.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 / 70-ec2-nvme-devices.rules
Last active Aug 18, 2020
AWS EBS NVMe udev rules
View 70-ec2-nvme-devices.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 / ua.js
Last active Mar 22, 2018 — forked from suzuken/ua.js
experimental UDF on Bigquery with https://github.com/woothee/woothee-js.
View ua.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 / dedupe.py
Created Apr 10, 2016
Tabs Outliner Deduplication
View dedupe.py
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)
View .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 / README.md
Created Aug 14, 2014
Sentry upstart and nginx configs
View README.md

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 / marathon.upstart
Last active Aug 29, 2015
Marathon Upstart
View marathon.upstart
description "marathon"
# Start just after the System-V jobs (rc) to ensure networking and zookeeper
# are started. This is as simple as possible to ensure compatibility with
# Ubuntu, Debian, CentOS, and RHEL distros. See:
# http://upstart.ubuntu.com/cookbook/#standard-idioms
start on stopped rc RUNLEVEL=[2345]
respawn
script
@jalaziz
jalaziz / chronos.upstart
Last active Aug 29, 2015
Chronos Upstart
View chronos.upstart
description "chronos"
# Start just after the System-V jobs (rc) to ensure networking and zookeeper
# are started. This is as simple as possible to ensure compatibility with
# Ubuntu, Debian, CentOS, and RHEL distros. See:
# http://upstart.ubuntu.com/cookbook/#standard-idioms
start on stopped rc RUNLEVEL=[2345]
respawn
script
View keybase.md

Keybase proof

I hereby claim:

  • I am jalaziz on github.
  • I am jameel (https://keybase.io/jameel) on keybase.
  • I have a public key whose fingerprint is E20B F064 79B1 DCF5 5CC2 3D73 612B BCA5 D882 1231

To claim this, I am signing this object:

@jalaziz
jalaziz / RedisConnectionManager.cs
Created Sep 30, 2013
Booksleeve Redis Connection Manager
View RedisConnectionManager.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookSleeve;
namespace Redis
{
public class RedisConnectionManager : IDisposable
{
You can’t perform that action at this time.