Skip to content

Instantly share code, notes, and snippets.

@fowkswe
fowkswe / flatfile.vue
Created August 31, 2022 20:47
Flatfile Usage
<template lang="pug">
.content_assets_index
b-button(size='sm' variant='secondary' v-if='account' @click='importClick' class='mr-2') Import Testimonials
</template>
<script lang="ts">
import axios from 'axios'
import { flatfileImporter } from '@flatfile/sdk'
export default {
data() {
<?php
// sendy/includes/functions.php
${"GLOBALS"}["ndcpdwgqk"]="textToDelete";
${"GLOBALS"}["ickwblj"]="string";
${"GLOBALS"}["xvhyjog"]="endPos";
${"GLOBALS"}["vxtvexpxdsk"]="end";
${"GLOBALS"}["kwrbitnoko"]="beginningPos";
${"GLOBALS"}["eesqiwndnuyk"]="i";
${"GLOBALS"}["tbiuhlfbdi"]="minlength";
@fowkswe
fowkswe / upload.php
Last active October 27, 2024 17:49
Replacement for sendy's upload.php that sends files to S3 rather than the server.
<?php
//
// this replaces includes/create/upload.php - besure to save your old upload.php!
// you must put the S3.php file in includes/helpers/S3.php
// you can get it here:
// https://github.com/tpyo/amazon-s3-php-class
//
// This is an improvement on this gist:
// https://gist.github.com/Wysie/03934b6a79a715772abd
//