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
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
#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!
@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',
};
const stripe = new Stripe(process.env.stripeSecretKey, {
apiVersion: '2020-08-27',
typescript: true,
});