Skip to content

Instantly share code, notes, and snippets.

micro2 drive details

tankl2

NAME            USED  AVAIL  REFER  MOUNTPOINT
tankl2         5.22T  52.6G   786G  /tankl2
tankl2/media2  4.45T  52.6G  4.45T  /tankl2/media2

--- /usr/tankl2 ------------------------------------------------------------------------------------------------------------------------------------------------

RCS Phone Normalization

root@srv-c96fvfb97ej3vmnfdtq0-685cc7fc8c-hdx26:/app# ./bin/tailscale-proxychains rails db:migrate:mobile VERSION=20230727195133
I, [2023-08-06T14:59:00.186568 #381]  INFO -- : Migrating to PhoneNormalization (20230727195133)
== 20230727195133 PhoneNormalization: migrating ===============================
|S-chain|-<>-127.0.0.1:1055-<><>-100.109.247.57:1433-<><>-OK
CustomerID: 105635 CustomerPhone: 3131313131 => nil
CustomerID: 105636 CustomerPhone: 9924772427 => nil
@lingmann
lingmann / security-group-cleanup.py
Last active June 6, 2017 03:10 — forked from pet0ruk/security-group-cleanup.py
Security Group Cleanup using boto3
#!/usr/bin/env python
import boto3
import argparse
def lookup_by_id(sgid):
sg = ec2.get_all_security_groups(group_ids=sgid)
return sg[0].name
@lingmann
lingmann / raid_ephemeral.sh
Created February 8, 2016 18:39 — forked from joemiller/raid_ephemeral.sh
detect all ephemeral disks on EC2 then stripe together in a raid-0 vol mounted at /mnt
#!/bin/bash
#
# this script will attempt to detect any ephemeral drives on an EC2 node and create a RAID-0 stripe
# mounted at /mnt. It should be run early on the first boot of the system.
#
# Beware, This script is NOT fully idempotent.
#
METADATA_URL_BASE="http://169.254.169.254/2012-01-12"
info: Executing command group log show
info: Getting group logs
data: ----------
data: EventId: c772ba2c-3737-4c23-bb41-00617149661c
data: Authorization:
data: action: Microsoft.Compute/virtualMachineScaleSets
/write
data: role: Subscription Admin
data: scope: /subscriptions/b1ed8f2f-ceda-41d5-a0a8-
95960b5340c2/resourcegroups/
To get started with Docker/Marathon/Mesos, you need to install a
new Mesos, a new Marathon, and Deimos, the bridge to Docker.
You'll also need Docker and the JVM. These instructions are for
Ubuntu 13.10.
## Install Mesos prerequisites
:; sudo apt-get update
:; sudo apt-get install zookeeperd default-jre python-setuptools python-protobuf curl pip
## Install a custom build of Mesos, build from this branch: