This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// My Iron-Router map has these two routes | |
// I'd like to redirect all requests to /forum/:id | |
// onward to /forum/:id/:slug | |
// Using this.redirect(...) works but prevents the | |
// browser from navigating "back" | |
this.route('questionDetailWithSlug', { | |
template: 'questionDetail', | |
path: '/forum/:id/:slug', | |
action: function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.kickflip.glasscast; | |
public class SECRETS { | |
public static final String CLIENT_KEY = "YourKickflipKey"; | |
public static final String CLIENT_SECRET = "YourKickflipSecret"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Find oldest created buckets in your AWS account and optionally delete them | |
Requirements: | |
Environmental Variables: | |
+ AWS_ACCESS_KEY_ID | |
+ AWS_SECRET_ACCESS_KEY | |
Python packages: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Kickflip.setup(this, "CLIENT_ID", "CLIENT_SECRET"); | |
Kickflip.startBroadcastActivity(this, new BroadcastListener() { | |
@Override | |
public void onBroadcastStart() { | |
// The user began broadcasting | |
} | |
@Override | |
public void onBroadcastLive(Stream stream) { | |
// This device's broadcast is live! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Kickflip setupWithAPIKey:@"CLIENT_ID" secret:@"CLIENT_SECRET"]; | |
[Kickflip presentBroadcasterFromViewController:self ready:^(KFStream *stream){ | |
if (stream) { | |
NSLog(@"Stream is ready to view at URL: %@", stream.streamURL); | |
} | |
} | |
completion:^{ | |
NSLog(@"Finished broadcasting."); | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Makes a tarfile from every top-level directory in BACKUP_PATH | |
and transmits that to Amazon Glacier. | |
Requirements: | |
Environmental Variables: | |
+ AWS_ACCESS_KEY_ID | |
+ AWS_SECRET_ACCESS_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package io.kickflip.sample.activity; | |
import android.os.Bundle; | |
import android.os.Environment; | |
import android.view.View; | |
import android.widget.Button; | |
import java.io.File; | |
import io.kickflip.sample.R; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find the IAM username belonging to the TARGET_ACCESS_KEY | |
# Useful for finding IAM user corresponding to a compromised AWS credential | |
# Requirements: | |
# | |
# Environmental variables: | |
# AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY | |
# python: | |
# boto |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# Copyright 2010 Facebook | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# |
NewerOlder