Skip to content

Instantly share code, notes, and snippets.

View miquelbrazil's full-sized avatar

Miquel Brazil miquelbrazil

View GitHub Profile
@cramforce
cramforce / elgato-key-light-smartthings-device-handler.groovy
Last active February 23, 2023 06:20
A SmartThings Device Handler for Elgato Key Light
/**
* Copyright 2020 Malte Ubl
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
@binhp
binhp / Netsuite-AWS-Module-Guide.md
Last active February 7, 2025 19:29
Netsuite AWS Module

AWS Module for Netsuite

AWS.S3

1. Add S3 lib

Upload ns-aws-s3.js to Netsuite Files at /SuiteScripts/lib/ns-aws-s3

File /SuiteScripts/lib/ns-aws-s3

@rs77
rs77 / Ntask_library_ss_2.0.js
Last active February 10, 2020 05:03
Minor edits applied to JSDoc and @enums to get JetBrains to be able to help with autocomplete and type checking
/**
* SuiteScript module
*
* @module N/task
* @NApiVersion 2.x
*
*/
function task() {}
/**
* Creates a task of the given type and returns the task object.
@rs77
rs77 / Nsearch_library_ss_2.0.js
Last active February 9, 2020 23:09
Minor edits applied to the JSDoc tagging of NetSuite's SuiteScript 2.0 version of the `search` library.To be able to have it register and perform proper type and autofilling of functions (etc).
/**
* SuiteScript search module (Client Side)
*
* @module N/search
* @suiteScriptVersion 2.x
*
*/
function search() {}
/**
* Creates a new search. The search can be modified and run as an ad-hoc search, without saving it. Alternatively,
@pjobson
pjobson / plex_media_permissions_4_noobies.md
Last active March 26, 2025 00:04
Plex Media Permissions for Linux Noobies

Plex Media Permissions for Linux Noobies

There is no problem with being a noobie and I do not use the term to sligtht or disparage anyone.

This is a way to setup your permissions for running Plex in Linux. Different folks may use different methods.

The permissions concepts provided here apply to OSX, but the users and groups are controlled and modified differently, so much of this will not work properly. I think the command is dscl, but that could be out of date.

There are many ways to setup your permissions scheme in Linux, this methodology describes a way to do it, not everyone will like it, but it works for me, so whatever.

@bericp1
bericp1 / database.php
Created August 28, 2018 22:15
Per-cluster Redis Config For Laravel
<?php
return [
// ...
'redis' => [
'options' => [
// Options can be specified here (with the lowest precedence).
],
@devNoiseConsulting
devNoiseConsulting / gist:fb6195fbd09bfb2c1f81367dd9e727ed
Last active December 9, 2020 05:33 — forked from romainneutron/gist:5340930
Download large files using Guzzle 6.3
<?php
require __DIR__ . '/vendor/autoload.php';
use GuzzleHttp\Client;
$url = "https://domain.tld/large-file.mp4";
$tmpFile = tempnam(sys_get_temp_dir(), 'guzzle-download');
$client = new Client(array(
@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active May 9, 2025 16:36
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

@MatthieuScarset
MatthieuScarset / .lando.yml
Last active August 15, 2024 14:31
Correct settings for XDebug + VSCode + Lando (+3.0)
# Lando version is at least +3.0
name: drupal-nine
recipe: drupal9
services:
appserver:
webroot: web
xdebug: debug
config:
php: .vscode/php.ini
@smuda
smuda / SetupSSHForwardingOnQNAP.md
Created November 19, 2017 04:26
Setup SSH forwarding on QNAP NAS

On receiving NAS:

setcfg LOGIN "SSH AllowTcpForwarding" TRUE
reboot

On client to forward local port 8443 to the QNAP admin interface:

ssh user@host -L 8443:localhost:443