Skip to content

Instantly share code, notes, and snippets.

=== modified file 'schema.py'
--- schema.py 2012-12-05 15:38:38 +0000
+++ schema.py 2013-02-05 21:02:18 +0000
@@ -63,6 +63,9 @@
if 'BadRequest' not in cfs:
workaround_1779(mgr.create_column_family, keyspace, 'BadRequest',
default_validation_class=CounterColumnType())
+ if 'BucketSystems' not in cfs:
+ workaround_1779(mgr.create_column_family, keyspace, 'BucketSystems',
+ default_validation_class=UTF8_TYPE)
=== modified file 'schema.py'
--- schema.py 2012-12-05 15:38:38 +0000
+++ schema.py 2013-02-05 21:02:18 +0000
@@ -63,6 +63,9 @@
if 'BadRequest' not in cfs:
workaround_1779(mgr.create_column_family, keyspace, 'BadRequest',
default_validation_class=CounterColumnType())
+ if 'BucketSystems' not in cfs:
+ workaround_1779(mgr.create_column_family, keyspace, 'BucketSystems',
+ default_validation_class=UTF8_TYPE)
@evandandrea
evandandrea / .travis.yml
Created July 7, 2016 05:59
Publish to the snap store from Travis
sudo: required
dist: trusty
env:
global:
secure: <redacted>
services:
- docker
language: python
python:
- '3.5'
# Repack our xz squashfses using lz4
$ unsquashfs ubuntu-core_109.snap
$ sudo mksquashfs squashfs-root ubuntu-core_109_lz4.snap -noappend -comp lz4 -no-xattrs
$ unsquashfs ubuntu-core_122.snap
$ sudo mksquashfs squashfs-root ubuntu-core_122_lz4.snap -noappend -comp lz4 -no-xattrs
# Create the delta
$ cd squashdelta
$ echo 3 | sudo tee /proc/sys/vm/drop_caches
$ time ./squashdelta ../ubuntu-core_109_lz4.snap ../ubuntu-core_122_lz4.snap ../ubuntu-core_lz4_109-122.squashdelta
$ cat > .travis.yml <<EOF
sudo: required
dist: trusty
services:
- docker
language: python
python:
- '3.5'
script:
- docker run -v \$(pwd):/snapcraft didrocks/snapcraft sh -c 'cd /snapcraft; snapcraft'
#!/bin/sh
screen -S vm sudo xhyve -m $((1024*5))M -c 3 -s 2:0,virtio-net -s 4,virtio-blk,hdd.img -s 0:0,hostbridge -s 31,lpc -l com1,stdio -f "kexec,linux,initrd,earlyprintk=serial console=ttyS0 acpi=off root=/dev/vda1 ro"
git:
# Git support.
plugin: nil
stage-packages:
- git
snap:
- usr/bin/git*
- usr/lib/git*
- usr/lib/*/libasn1.so*
- usr/lib/*/libcurl-gnutls.so*
@evandandrea
evandandrea / .travis.sh
Last active January 23, 2021 14:56
Automatically publish to the snap store from Travis
#!/bin/sh -e
if [ -z "$SNAPCRAFT_SECRET" ]; then
# Run `sh seed.sh` on your local machine so SNAPCRAFT_SECRET is set.
exit 0
fi
mkdir -p ".encrypted"
if [ ! -e ".encrypted/snapcraft.cfg.enc" ]; then
echo "Seeding a new macaroon."
name: rocketchat-server
version: 0.37.1
summary: Rocket.Chat server
description: Have your own Slack like online chat, built with Meteor. https://rocket.chat/
confinement: strict
apps:
rocketchat-server:
command: env ROOT_URL=http://localhost PORT=3000 MONGO_URL=mongodb://localhost:27017/parties node $SNAP/main.js >$SNAP_DATA/server.log 2>&1
daemon: simple
plugs: [network, network-bind]
@evandandrea
evandandrea / snapcraft.yaml
Created August 30, 2016 21:50
snapcraft.yaml using ant options and SNAPCRAFT_PART_INSTALL envar
name: cassandra
version: 3.7
summary: Cassandra distributed database
description: The Apache Cassandra database
confinement: strict
apps:
cassandra:
command: wrapper-cassandra
daemon: forking
# mount-observe is needed for checking available space in the data