Skip to content

Instantly share code, notes, and snippets.

View jalaziz's full-sized avatar

Jameel Al-Aziz jalaziz

View GitHub Profile
@jalaziz
jalaziz / 999-aws-ebs-nvme.rules
Last active September 20, 2024 09:18
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 / 70-ec2-nvme-devices.rules
Last active June 19, 2024 04:29
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 / 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 / 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 / .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 / 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 / marathon.upstart
Last active August 29, 2015 13:58
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 August 29, 2015 13:58
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

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 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
{