Skip to content

Instantly share code, notes, and snippets.

### Keybase proof
I hereby claim:
* I am mmoyles87 on github.
* I am mattimo (https://keybase.io/mattimo) on keybase.
* I have a public key whose fingerprint is 0EBA 74E7 D4EE BDDB 2F96 2B79 7746 D1F8 D7DA 0259
To claim this, I am signing this object:
### Keybase proof
I hereby claim:
* I am dubvfan87 on github.
* I am mattimo (https://keybase.io/mattimo) on keybase.
* I have a public key whose fingerprint is 0EBA 74E7 D4EE BDDB 2F96 2B79 7746 D1F8 D7DA 0259
To claim this, I am signing this object:
#!/bin/sh
yum remove gnome-{clocks,weather,screenshot,video-effects,contacts,dictionary,documents,font-viewer} \
cheese eog empathy evince{,-nautilus} totem{,-mozplugin,-nautilus} \
`rpm -qa|grep -i libreoffice`
yum autoremove

Keybase proof

I hereby claim:

  • I am dubvfan87 on github.
  • I am mattimo (https://keybase.io/mattimo) on keybase.
  • I have a public key whose fingerprint is 8216 C8B8 4590 D32B F85F E41F 34FB 8479 3C8B C59E

To claim this, I am signing this object:

emoticons: [
{
image: '/assets/images/emoticons/caritas_07.png'
replacements: [':)', ':-)', '=)', '=-)']
},
{
image: '/assets/images/emoticons/caritas_05.png'
replacements: [':D', ':-D']
},
{
# Meteor method
if Meteor.isServer
Meteor.methods
getS3Signature: ->
sig = CryptoJS.enc.Base64.stringify(
CryptoJS.enc.Utf8.parse(
CryptoJS.HmacSHA1(
Meteor.settings.private.blog.s3Config.secretAccessKey,
JSON.stringify(Meteor.settings.public.blog.s3Config.policy).replace("\n", "")
).toString()
# Merge user emails into emails array
Accounts.onLogin ->
Meteor.call('syncServiceEmails')
Meteor.methods
syncServiceEmails: ->
user = Meteor.user()
if user
_.each user.services, (service, serviceName) ->
if service.email
@mmoyles87
mmoyles87 / backup-to-s3.sh
Last active August 29, 2015 14:22
backup-to-s3.sh
#!/bin/bash
##
# Backup Server to S3 script
#
# Setup procedure
# 1. Just fill in the variables in the configuration section below
# 2. run the sync script using ./syncfiles.sh
## CONFIGURATION