Skip to content

Instantly share code, notes, and snippets.

View srvstream's full-sized avatar

Alonso Alves srvstream

  • Goiania
View GitHub Profile
Este guia é praticamente uma tradução do tópico original do rehabman, localizado em http://www.tonymacx86.com/el-capitan-laptop-support/152573-guide-patching-laptop-dsdt-ssdts.html
Você deve tentar seguí-lo por sua conta e risco.
Se seu OS X parar de funcionar, é por sua conta e risco.
Tenha em mente que isso requer conhecimentos básicos de informática, OS X e uso do App Terminal.
*** você precisa entender isso ***
SSDT.aml = arquivo utilizado para gerenciamento de energia, geralmente é criado pela ferramenta ssdtPrGen.sh
@srvstream
srvstream / ngrok-installation.md
Created November 21, 2019 01:40 — forked from wosephjeber/ngrok-installation.md
Installing ngrok on Mac

Installing ngrok on OSX

brew cask install ngrok

Using ngrok

The easiest way to use ngrok to tunnel into your localhost is if your local project is running on a specific port (e.g. not using named vhosts). You just run ngrok http [port number].

You can quickly boot up a local webserver using ruby. cd into the project's root directory and run ruby -run -e httpd . -p [port number].

@srvstream
srvstream / installing_supervisor_macosx.md
Created November 1, 2019 15:56 — forked from fadhlirahim/installing_supervisor_macosx.md
Setting up supervisord in Mac OS X

Installation

Installing Supervisor on OS X is simple:

sudo pip install supervisor

This assumes you have pip. If you don't:

@srvstream
srvstream / nginx.conf
Created May 23, 2019 00:17 — forked from joseluisq/nginx.conf
nginx hack for multiple conditions
if ($request_uri = /) {
set $test A;
}
if ($host ~* teambox.com) {
set $test "${test}B";
}
if ($http_cookie !~* "auth_token") {
set $test "${test}C";
@srvstream
srvstream / 0README.md
Created May 22, 2019 12:22 — forked from joseluisq/0README.md
Configuring httpd (apache2) and php 7.2 in Mac using Homebrew

Configuring httpd (apache2) and php 7.2 in Mac using Homebrew

# 0. Disable built-in Apache
sudo apachectl stop
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null

# 1. Install httpd
brew install httpd
@srvstream
srvstream / Doctrine-Multi-Tenancy.md
Created December 27, 2018 10:33 — forked from CarlosEduardo/Doctrine-Multi-Tenancy.md
Multi-Tenancy (tenant) Strategy for Doctrine ORM
@srvstream
srvstream / nginx.conf
Created December 19, 2018 15:39 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@srvstream
srvstream / README.md
Created December 18, 2018 19:02 — forked from mrbar42/README.md
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@srvstream
srvstream / README.md
Created October 18, 2018 23:22 — forked from mrbar42/README.md
Secured HLS setup with Nginx as media server

Secured HLS setup with Nginx as media server

This example is part of this article.

This is an example for an HLS delivery with basic security. Nginx compiled with nginx-rtmp-module & secure-link is used as media server. Features:

  • Domain filtering
  • Referrer filtering
  • Embed buster
@srvstream
srvstream / random_strgenerator.php
Created September 20, 2018 13:35 — forked from irazasyed/random_strgenerator.php
PHP: Generate random string
/**
* Generate and return a random characters string
*
* Useful for generating passwords or hashes.
*
* The default string returned is 8 alphanumeric characters string.
*
* The type of string returned can be changed with the "type" parameter.
* Seven types are - by default - available: basic, alpha, alphanum, num, nozero, unique and md5.
*