Skip to content

Instantly share code, notes, and snippets.

View kevinblanco's full-sized avatar

Kevin Blanco kevinblanco

View GitHub Profile
@kevinblanco
kevinblanco / appsmith-gcp.tf
Created June 19, 2024 07:16
This terraform file deploys everything needed to run appsmith in Google Cloud Run.
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "5.32.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "5.32.0"
@kevinblanco
kevinblanco / GeminiAnalizer.js
Created April 17, 2024 20:27
GeminiAnalizer.js
export default {
customerSupportMessages: [],
async reviewInquiries () {
this.customerSupportMessages = SelectQuery.data;
for(let i=0; i<this.customerSupportMessages.length; i++){
let gemini = await SupportAnalize.run(
{
description: this.customerSupportMessages[i].Description,
type: this.customerSupportMessages[i].Type,
@kevinblanco
kevinblanco / kind.yaml
Created May 15, 2020 01:34
KIND kubernetes YAML
apiVersion: v1
kind: Pod
metadata:
name: kind-cluster
spec:
containers:
- image: jieyu/kind-cluster-buster:v0.1.0
imagePullPolicy: Always
name: kind-cluster
stdin: true
@kevinblanco
kevinblanco / gist:0bd38ec0f435f060f9ff
Created May 11, 2015 22:37
Verifying I am +kevinblanco on my passcard. https://onename.com/kevinblanco
Verifying I am +kevinblanco on my passcard. https://onename.com/kevinblanco
//factory style, more involved but more sophisticated
myApp.factory('helloWorldFromFactory', function() {
return {
sayHello: function() {
return "Hello, World!"
}
};
});
//Controller
@kevinblanco
kevinblanco / service.js
Last active August 29, 2015 14:15
Service example
myApp.service('helloWorldFromService', function() {
this.sayHello = function() {
return "Hello, World!"
};
});
myApp.controller('ExampleCtrl', function($scope, helloWorldFromService){
console.log( helloWorldFromService.sayHello() ) ;
});
app.config(function($httpProvider) {
//Enable cross domain calls
$httpProvider.defaults.useXDomain = true;
//Remove the header used to identify ajax call that would prevent CORS from working
delete $httpProvider.defaults.headers.common['X-Requested-With'];
});
@kevinblanco
kevinblanco / gist:9631085
Created March 18, 2014 22:22
JSON data parsed with errors
{ ok: 'ASSEMBLY_COMPLETED',
message: 'The assembly was successfully completed.',
assembly_id: '38a58a00aeea11e3a3763dcc8684c3a1',
parent_id: null,
assembly_url: 'http://api2.nidba.transloadit.com/assemblies/38a58a00aeea11e3a3763dcc8684c3a1',
bytes_received: 91355,
bytes_expected: 91355,
client_agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.152 Safari/537.36',
client_ip: '181.193.42.90',
client_referer: 'http://localhost:1337/user/new',
@kevinblanco
kevinblanco / gist:9628156
Created March 18, 2014 19:57
Transloadit response object example
{
transloadit: '{
"ok": "ASSEMBLY_COMPLETED",
"message": "The assembly was successfully completed.",
"assembly_id": "833c21b0aed511e3a7b675b5d4bfaff4",
"parent_id": null,
"assembly_url": "http://api2.nidba.transloadit.com/assemblies/833c21b0aed511e3a7b675b5d4bfaff4",
"bytes_received": 33829,
"bytes_expected": 33829,
"client_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.149 Safari/537.36",