Skip to content

Instantly share code, notes, and snippets.

View kevcjones-archived's full-sized avatar
👾
Reach out to me, happy to help anyone

Kevin C Jones kevcjones-archived

👾
Reach out to me, happy to help anyone
View GitHub Profile
const stripe = new Stripe(process.env.stripeSecretKey, {
apiVersion: '2020-08-27',
typescript: true,
});
@kevcjones-archived
kevcjones-archived / create-intent.ts
Created November 1, 2020 10:15
Typescript Stripe Payment Intent Creation
// Create a PaymentIntent with the order amount and currency.
const params: Stripe.PaymentIntentCreateParams = {
amount,
currency: 'gbp',
// eslint-disable-next-line
payment_method_types: ['card'],
// eslint-disable-next-line
statement_descriptor: 'Custom descriptor',
};
#Couldn't find a remove all from here... and it was click one at a time...
#After i was sure i didn't need what was left I ran this in my console to bulk remove the rest
var a = document.querySelectorAll(".c-sa-ra");
for(var i = 0; i < a.length; i++){
a[i].style = {};
a[i].click();
}
# Did the trick... 892 dev site logins gone for good!
sudo xcodebuild -license
xcode-select --install # There will be a GUI prompt
sudo cpan SVN::Core # use the "sudo" method when prompted
# Then add this to your ~/.profile:
# export PATH=/Library/Developer/CommandLineTools/usr/bin:$PATH
# Then probably:
brew reinstall git
brew reinstall subversion
@kevcjones-archived
kevcjones-archived / grunt-react-successtree
Last active January 3, 2016 06:19
grunt-react with grunt-browserify set direct to 1.2.0 first and then patched does run, this is the tree in the folder (compare to https://gist.github.com/KevCJones/8421664)
grunt-react@0.6.0 /XXXXX/Work/GITS/grunt-react
├─┬ browserify@2.36.1
│ ├─┬ browser-builtins@2.0.5
│ │ ├─┬ buffer-browserify@0.2.2
│ │ │ └── base64-js@0.0.2
│ │ ├── console-browserify@1.0.3
│ │ ├── constants-browserify@0.0.1
│ │ ├── crypto-browserify@1.0.9
│ │ ├─┬ http-browserify@0.1.14
│ │ │ └── Base64@0.1.4
@kevcjones-archived
kevcjones-archived / grunt-react-failtree
Last active January 3, 2016 06:19
grunt-react with grunt-browserify set direct to 1.3.0 fails to run, this is the tree in the folder (compare to https://gist.github.com/KevCJones/8421756)
grunt-react@0.6.0 /XXXXX/Work/GITS/grunt-react
├─┬ browserify@3.20.0
│ ├── assert@1.1.0
│ ├─┬ browser-pack@2.0.1
│ │ ├─┬ combine-source-map@0.3.0
│ │ │ ├── convert-source-map@0.3.3
│ │ │ ├── inline-source-map@0.3.0
│ │ │ └─┬ source-map@0.1.31
│ │ │ └── amdefine@0.1.0
│ │ └─┬ JSONStream@0.6.4
#!/bin/bash
# Created by Håvard Fossli <hfossli@gmail.com> in 2013
# This is free and unencumbered software released into the public domain.
# For more information, please refer to <http://unlicense.org/>
#
# Description
# A bash script for reversing videos using ffmpeg and sox.
#
# Keywords
# the admin password for all of the IE VMs is “Password1″ without the quotes, it's also used for the password hints
1) Install VirtuaBox on your mac
http://download.virtualbox.org/virtualbox/4.1.10/VirtualBox-4.1.10-76795-OSX.dmg
2) Decide which versions of Internet Explorer you want to download and install – each version of Internet Explorer is contained within a separate virtual machine that runs within VirtualBox. In other words, if you want to run Internet Explorer 7, 8, and 9, you will need to download three separate VM’s, which may take a while so keep that in mind. Select the text below and copy it:
# Install ALL versions of Internet Explorer: IE 7, IE 8, and IE 9 (for now this script will also pull down a IE 6 vm with windows xp)
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 2 (0x2)
Signature Algorithm: sha1WithRSAEncryption
Issuer: C=UK, ST=NR, L=Attleborough, O=Hide My Ass! Pro, OU=VPN, CN=vpn.hidemyass.com/emailAddress=ca@hidemyass.com
Validity
Not Before: Jun 6 09:43:26 2009 GMT
Not After : Jun 4 09:43:26 2019 GMT
Subject: C=US, ST=CA, L=SanFrancisco, O=VPNUser, OU=User, CN=hmauser/emailAddress=user@hidemyass.com