Skip to content

Instantly share code, notes, and snippets.

View plindsay's full-sized avatar

Phil Lindsay plindsay

View GitHub Profile
@adamkearsley
adamkearsley / tabs.service.ts
Created February 9, 2017 13:09 — forked from 0x1ad2/tabs.service.ts
A service to hide and show tabs in Ionic 2
import {Injectable} from '@angular/core';
// Declare TabsService as a provider in app.module.ts
// Inject TabsService in your class: constructor(public tabs: TabsService){}
// Use the this.tabs.hide() or this.tabs.show() methods wherever you want
@Injectable()
export class TabsService {
constructor() {}
public hide() {
@keithweaver
keithweaver / put-object-on-aws-s3.php
Last active June 17, 2026 16:09
Upload an image/object to an AWS S3 Bucket using PHP
<?php
// Installed the need packages with Composer by running:
// $ composer require aws/aws-sdk-php
$filePath = "https://example.com/test.png";
require 'vendor/autoload.php';
$bucketName = 'YOUR_BUCKET_NAME';
$filePath = './YOUR_FILE_NAME.png';
@andybroomfield
andybroomfield / s3.php
Created May 4, 2018 10:12
Patching Codeigniter s3 library to work with AWS4-HMAC-SHA256
<?php defined('BASEPATH') OR exit('No direct script access allowed');
/**
* $Id: S3.php 47 2009-07-20 01:25:40Z don.schonknecht $
*
* Copyright (c) 2008, Donovan Schönknecht. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
@philsherry
philsherry / vscode-multi-root-workspace.md
Last active July 30, 2026 08:54
VS Code Workspace file.

Workspace

There is a VS Code Workspace file which ties these repos together when they’re sat in the same directory like this:

 project
 ├── project-wp-docker/
 ├── project-wp-docs/
 ├── project-wp-theme/
 └── project-wp.code-workspace