Skip to content

Instantly share code, notes, and snippets.

@petrowsky
petrowsky / barracuda_log.txt
Created October 21, 2019 21:52
barracuda_log.txt 2019-10-21
s1:/var/xdrago/conf# cat /var/backups/barracuda_log.txt
Wed Nov 14 17:43:09 EST 2012 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.4 / Barracuda BOA-2.0.4 / Nginx 1.3.8 / PHP 5.2.17 and 5.3.18 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.28 localhost / Wildcard YES
Mon Nov 26 14:20:58 CST 2012 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.4 / Barracuda BOA-2.0.4 / Nginx 1.3.8 / PHP 5.2.17 and 5.3.18 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.28 localhost / Wildcard YES
Wed Dec 12 16:13:18 CST 2012 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.4 / Barracuda BOA-2.0.4 / Nginx 1.3.8 / PHP 5.2.17 and 5.3.18 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.28a localhost / Wildcard YES
Thu Jan 10 18:50:41 CST 2013 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.5 / Barracuda BOA-2.0.5 / Nginx 1.3.9 / PHP 5.2.17 and 5.3.20 / MODERN-YES / FPM 5.3 / CLI 5.3 / MariaDB-5.5.28a localhost / Wildcard YES
Mon Feb 25 13:15:46 CST 2013 / Debian.squeeze x86_64 XEN / Aegir BOA-2.0.5 / Barracuda BOA-2.0.5 / Nginx 1.3.9 / PHP 5.2.17 an
@petrowsky
petrowsky / OS X RamDisk
Created October 17, 2017 23:57
A shell function for creating a RAM disk of arbitrary size. Add to your bash (or other shell) profile.
ramdisk () {
test "$1" || 1=2
DISK_NAME="RamDisk"
MAX_SIZE=6
DISK_SIZE=$((${1}*1024*1024*1024/512))
DISK_FOUND=`df | grep -o $DISK_NAME`
if [[ $1 -gt $MAX_SIZE ]]
then
echo "NOTICE: Can't create a ram disk larger than $MAX_SIZE GB"
return
// FileMakerStandards ( tableOccurrenceName )
Let ( [
~tableOccurrenceName = tableOccurrenceName
];
List (
"---- GLOBAL FIELDS ----¶";
Upper (
Substitute (
ExecuteSQL ( "SELECT FieldName FROM FileMaker_Fields WHERE TableName='" & ~tableOccurrenceName & "' AND FieldType LIKE '%global%' ORDER BY FieldName" ; "" ; "" );
Let ( [
~now = Get ( CurrentTimestamp );
~useTimeStamp = Get ( ActiveModifierKeys ) = 8 or Get ( ActiveModifierKeys ) = 10;
~registered = MBS ( "Register"; "Name Here"; "Complete"; "5 seats" ; 201601 ; -12831001) = "OK";
~targetFolder = MBS ( "Folders.UserDesktop" )
& "/DDR/"
& Filter ( Get ( FileName ) ; "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklomnopqrstuvwxyz1234567890" )
& If ( ~useTimeStamp ;
"_" & Year ( ~now )
& "-" & Right ( "0" & Month ( ~now ) ; 2 )
@petrowsky
petrowsky / gist:2089f07e7a49a53e8fee
Created February 12, 2015 05:13
PythonWrapText Custom Function - FileMaker
/*
* PythonWrapText ( text ; columns ; prefix )
*
* A bBox plugin function for wrapping text.
* http://www.beezwax.net/download/bbox
*
*/
Let ( [
~script = List (
---------------
.barracuda.cnf
---------------
###
### Configuration created on 150112-1253
### with Barracuda version BOA-2.3.8
###
### NOTE: the group of settings displayed below will *not* be overridden
### on upgrade by the Barracuda script nor by this configuration file.
### They can be defined only on initial Barracuda install.
@petrowsky
petrowsky / boa conf
Created January 5, 2015 19:41
boa conf
---------------
.barracuda.cnf
---------------
###
### Configuration created on 121114-1723
### with Barracuda version BOA-2.0.4
###
### NOTE: the group of settings displayed bellow will *not* be overriden
### on upgrade by the Barracuda script nor by this configuration file.
### They can be defined only on initial Barracuda install.
@petrowsky
petrowsky / boa websh
Created January 5, 2015 18:53
boa websh
#!/bin/bash
export PATH=$PATH:/opt/local/bin
_ALL="$@"
_LTD_GID=$(id -nG $USER)
_INTERNAL=NO
_X_USR=".*"
if [ "$USER" = "aegir" ] || [ "$HOME" = "/var/aegir" ] ; then
_Y_USR=aegir
else
<pre>
\foo
\\bar
"\foo¶\\\bar"
"\"\foo\¶\\\\\bar\""
"\"\\\"\foo\\\¶\\\\\\\\\bar\\\"\""
"\"\\\"\\\\\\\"\foo\\\\\\\¶\\\\\\\\\\\\\\\\\bar\\\\\\\"\\\"\""
"\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\foo\\\\\\\\\\\\\\\¶\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\bar\\\\\\\\\\\\\\\"\\\\\\\"\\\"\""
"\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\foo\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\¶\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\bar\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\"\\\"\""
chart.selectAll("rect")
.data(counts)
.enter().append("rect")
.attr("id", function (d, i) {return keys[i];})
.attr("x", legendWidth)
.attr("y", function (d, i) {return i * bar_height;})
.attr("width", x)
.attr("height", bar_height - gap)
.attr("fill", "url(#gradient)")
.on("click", fmpurl);