Skip to content

Instantly share code, notes, and snippets.

Wouter van den Broek wbroek

View GitHub Profile
@wbroek
wbroek / s3-cloudformation-template.json
Last active Jun 3, 2020
Amplify Storage S3 bucket public policy
View s3-cloudformation-template.json
"S3BucketPolicy": {
"Type": "AWS::S3::BucketPolicy",
"Properties": {
"Bucket": {
"Fn::Join": [
"",
[
{ "Ref": "bucketName" },
{
"Fn::Select": [
@wbroek
wbroek / fetch-axios-ntlm.js
Last active Jun 17, 2020
NTLM authentication with Axios and with none Node JS modules
View fetch-axios-ntlm.js
/**
* Copyright (c) 2019 Wouter van den Broek https://github.com/wbroek/
* All rights reserved.
*/
const axios = require('axios');
const ntlm = require('./ntlm');
// NODE JS
const https = require('https');
const httpsAgent = new https.Agent({ keepAlive: true });
View keybase.md

Keybase proof

I hereby claim:

  • I am wbroek on github.
  • I am wbroek (https://keybase.io/wbroek) on keybase.
  • I have a public key ASABlGj6hcBrhNLvjqUJrrFNfYEScgYTf6hZ4nlexSZGKQo

To claim this, I am signing this object:

@wbroek
wbroek / .eslintrc
Created Apr 30, 2018
ESLint config file
View .eslintrc
{
"parser": "babel-eslint",
"extends": "airbnb",
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"react/jsx-filename-extension": [
@wbroek
wbroek / Fastfile
Created Jan 12, 2018
HockeyApp lane for Fastlane for Android
View Fastfile
default_platform :android
platform :android do
desc "Submit a new Beta Build to Hockey App"
lane :beta do
changelog = "";
if !is_ci?
changelog = prompt(text: "Please enter what's changed in one sentenence: ")
end
@wbroek
wbroek / Fastfile
Last active Oct 8, 2019
HockeyApp lane for Fastlane for iOS
View Fastfile
default_platform :ios
platform :ios do
desc "Submit a new Beta Build to Hockey App"
lane :beta do
if !is_ci?
changelog = prompt(text: "Please enter what's changed in one sentenence: ")
end
increment_build_number
@wbroek
wbroek / MainActivity.java
Created Oct 17, 2017 — forked from nowke/MainActivity.java
Retrofit - OkHTTP Connect to Self signed SSL Enabled Server: (Fix for CertPathValidatorException: Trust Anchor for certificate path not found) - Self Signing Client Bulider for Retrofit OkHTTP
View MainActivity.java
public class MainActivity extends AppCompatActivity {
Retrofit retrofit;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
/*
Rest
*/
@wbroek
wbroek / tasks.json
Created Oct 12, 2017
Visual Studio Code task to start the Android Emulator (for React Native development)
View tasks.json
{
"version": "2.0.0",
"reveal": "silent",
"tasks": [{
"taskName": "Start Android Emulator",
"type": "shell",
"isBackground": true,
"command": "~/Library/Android/sdk/tools/emulator",
"args": [
"-avd",
@wbroek
wbroek / Podfile
Created Dec 16, 2016
Set swift target for Cocoapods
View Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '2.3'
end
end
end
You can’t perform that action at this time.