I hereby claim:
- I am pathcl on github.
- I am pathcl (https://keybase.io/pathcl) on keybase.
- I have a public key whose fingerprint is 3B68 1ED7 2997 AAD5 DFAF 2BCC 9ABD D154 5BBF 93A8
To claim this, I am signing this object:
sudo gitlab-rails console | |
ApplicationSetting.last.update_attributes(signin_enabled: true) | |
exit | |
sudo gitlab-ctl restart |
#!/usr/bin/python | |
""" | |
Usage: check_ssl_certificate -H <host> -p <port> [-m <method>] | |
[-c <days>] [-w <days>] | |
-h show the help | |
-H <HOST> host/ip to check | |
-p <port> port number | |
-m <method> (SSLv2|SSLv3|SSLv23|TLSv1) defaults to SSLv23 | |
-c <days> day threshold for critical |
#!/bin/bash | |
# USAGE: CLUSTER=mycluster SERVICE=myservice ./docker-exec-ecs.sh | |
set -euf -o pipefail | |
TASK_ARN=$(aws ecs list-tasks --cluster=$CLUSTER --service=$SERVICE \ | |
| jq -r .taskArns[0]) | |
if [ "$TASK_ARN" = "null" ]; then | |
echo "Could not find any running tasks for $SERVICE on cluster:$CLUSTER." | |
exit 1 | |
fi |
#!/bin/sh | |
# This program gets the battery info from PMU | |
# Voltage and current charging/discharging | |
# | |
# Nota : temperature can be more than real because of self heating | |
####################################################################### | |
# Copyright (c) 2014 by RzBo, Bellesserre, France | |
# | |
# Permission is granted to use the source code within this | |
# file in whole or in part for any use, personal or commercial, |
#!/usr/bin/env python | |
# VMware vSphere Python SDK | |
# Copyright (c) 2008-2013 VMware, Inc. 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. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
#!/bin/bash | |
# executable for nftables | |
nft="/usr/sbin/nft" | |
# wan and lan ports | |
wan=$1 | |
lan=$2 | |
# check empty arguments |
#!/usr/bin/env python3 | |
import argparse | |
import nftables | |
import json | |
from string import Template | |
def main(wan, lan): | |
''' | |
USE AT YOUR OWN RISK :) |
I hereby claim:
To claim this, I am signing this object:
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
''' | |
Basic tail command implementation | |
Usage: | |
tail.py filename numlines | |
''' | |
import sys | |
import linecache |