Skip to content

Instantly share code, notes, and snippets.

Avatar
🖖

Max Ivanov groovili

🖖
View GitHub Profile
@iloveitaly
iloveitaly / stripe_create_subscription_with_avalara.rb
Last active Oct 1, 2019
Create a Stripe Subscription with required information for Avalara's integration
View stripe_create_subscription_with_avalara.rb
# Michael Bianco <mike@suitesync.io>
# Description: Create a Stripe Subscription with required information for Avalara's
# Stripe Subscription integration.
# Learn more: https://gist.github.com/iloveitaly/7b9b288d203f6ac7f75d8eda14e07c18
# Usage:
#
# export STRIPE_KEY=sk_test
# gem install stripe
# ruby stripe_create_subscription_with_avalara.rb
@guinso
guinso / main.go
Created Oct 9, 2017
Sample SMTP with attachment
View main.go
package main
import (
"crypto/tls"
"encoding/base64"
"fmt"
"io/ioutil"
"log"
"net/smtp"
"strings"
@toshke
toshke / clean-dynamo-table
Last active Sep 7, 2020 — forked from k3karthic/truncate_dynamodb.sh
Truncate all keys in a dynamodb table
View clean-dynamo-table
#!/bin/bash
####
#### Delete (remove) all items from Aws Dynamo DB table, by specifing table name and primary key
####
#### Forked from https://gist.github.com/k3karthic/4bc929885eef40dbe010
####
#### Usage:
#### clean-dynamo-table TABLE_NAME PRIMARY_KEY
####
View dpgo.md

Design patterns with Go

Course Materials

  • Handouts / Worksheets
  • Slides
  • Code Examples
  • Videos

Course objectives

View Intercom user_hash.md

Intercom user_hash

Remember that your secret key should never be exposed to the public

  • So Javascript code below should only be used for testing unless modified and used to run on a server
@nostah
nostah / gist:d610459d50564c729c56
Created Apr 13, 2015
php swagger 2.0 api sample
View gist:d610459d50564c729c56
<?php
use Swagger\Annotations as SWG;
/**
* @SWG\Swagger(
* basePath="/v1",
* host="api.local",
* schemes={"http"},
* produces={"application/json"},
@ismasan
ismasan / sse.go
Last active Sep 16, 2020
Example SSE server in Golang
View sse.go
// Copyright (c) 2017 Ismael Celis
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all
View ssl_smtp_example.go
package main
import (
"fmt"
"log"
"net"
"net/mail"
"net/smtp"
"crypto/tls"
)
@msurguy
msurguy / List.md
Last active Sep 23, 2020
List of open source projects made with Laravel
View List.md

Other people's projects:

My projects (tutorials are on my blog at http://maxoffsky.com):

@mobilemind
mobilemind / git-tag-delete-local-and-remote.sh
Last active Sep 25, 2020
how to delete a git tag locally and remote
View git-tag-delete-local-and-remote.sh
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
You can’t perform that action at this time.