I hereby claim:
- I am egbertp on github.
- I am egbertp (https://keybase.io/egbertp) on keybase.
- I have a public key whose fingerprint is 40B6 9E1B 1381 CBF8 E93C 102A 14FB A86D 71D5 75EE
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
package actions | |
import ( | |
"math" | |
"os" | |
"github.com/gobuffalo/buffalo" | |
"github.com/gobuffalo/pop" | |
"github.com/gobuffalo/pop/nulls" | |
"github.com/gorilla/sessions" |
$LocalTempDir = $env:TEMP; $ChromeInstaller = "ChromeInstaller.exe"; (new-object System.Net.WebClient).DownloadFile('http://dl.google.com/chrome/install/375.126/chrome_installer.exe', "$LocalTempDir\$ChromeInstaller"); & "$LocalTempDir\$ChromeInstaller" /silent /install; $Process2Monitor = "ChromeInstaller"; Do { $ProcessesFound = Get-Process | ?{$Process2Monitor -contains $_.Name} | Select-Object -ExpandProperty Name; If ($ProcessesFound) { "Still running: $($ProcessesFound -join ', ')" | Write-Host; Start-Sleep -Seconds 2 } else { rm "$LocalTempDir\$ChromeInstaller" -ErrorAction SilentlyContinue -Verbose } } Until (!$ProcessesFound) |
# Add to your Gemfile: gem 'activesupport', :require => false | |
require 'active_support/inflector' | |
class Memcached | |
extend ::ActiveSupport::Inflector # Needed for .parameterize | |
def initialize | |
# [Egbert Pot - 2015-09-20 14:23:02] | |
# e.g.: export MEMCACHED_NAMESPACE=feed-supplier |
#!/bin/bash -e | |
fleetctl list-units -fields=unit -no-legend | grep -v -e '@\|deis' | cut -d. -f1-2 | sort | uniq | while read name ; do | |
max=$(fleetctl list-machines -no-legend | wc -l) | |
count=$(fleetctl list-units -fields=unit -no-legend | grep -e "^$name" | wc -l) | |
if [ $count -gt $max ]; then | |
echo "Skipping $name, there are $count deployed units on $max fleet machines" | |
else | |
echo "Processing $name" | |
fleetctl list-units -fields=unit -no-legend | grep -e "^$name" | while read service; do | |
others=$(echo $service | cut -d. -f1-2) |
$userPhone = 'xxxxxxxxx'; | |
$userIdentity = strtolower(urlencode(sha1($userPhone, true)));; | |
$userName = 'admin'; | |
$password = 'xxxxxxxxxxx'; | |
$debug = true; | |
$w = new WhatsProt($userPhone, $userIdentity, $userName, $debug); | |
$w->Connect(); | |
$w->LoginWithPassword($password); | |
while($w->pollMessage()); |