Skip to content

Instantly share code, notes, and snippets.

View obrien-k's full-sized avatar
🦊

Kyle OBrien obrien-k

🦊
View GitHub Profile
@taskylizard
taskylizard / fmhy.md
Last active July 22, 2024 11:24
/r/freemediaheckyeah, in one single file (view raw)
@obrien-k
obrien-k / How to connect a PS3 controller.md
Created October 10, 2020 00:09 — forked from hlung/How to connect PS3 controller to a Mac or PC.md
How to connect PS3 controller on Mac OSX, PC

How to connect PS3 controller on Mac OSX, PC, etc.

This is how you connect PS3 controller to Mac OSX, PC, etc. when previously connected to a PS3. You will need a Mini USB cable. Overcome your laziness, get up of your chair, and go get one!

A big misconception is that keep holding PS button will reset the controller's pairing. It DOES NOT! From my testings, the controller keeps paring with the last machine it was CONNECTED VIA A USB CABLE.

Here are the steps:

@becomevocal
becomevocal / functions.php
Created February 6, 2019 15:36
BC4WP: Support for Customer Group Category Visibility (add to bottom of theme functions.php)
use BigCommerce\Accounts\Customer;
const GUEST_CUSTOMER_GROUP_ID = 2;
// Check if transient is set for the guest customer group details. If not, fetch them and store as a transient for 24 hours.
// https://codex.wordpress.org/Transients_API
if ( !get_transient( 'guest_customer_group_category_access' ) && GUEST_CUSTOMER_GROUP_ID !== 0 ) {
$customer = new Customer();
$customer_group_category_access = $customer->get_customer_group_category_access(GUEST_CUSTOMER_GROUP_ID);
set_transient( 'guest_customer_group_category_access', $customer_group_category_access, DAY_IN_SECONDS );
@SheldonWangRJT
SheldonWangRJT / Convert .mov or .MP4 to .gif.md
Last active July 22, 2024 13:56
Convert Movie(.mov) file to Gif(.gif) file in one command line in Mac Terminal

This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.

Need

Convert .mov/.MP4 to .gif

Reason

As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.

This is not limited to developer, anyone has this need can use this method to convert the files.