Improving heat management after macbookpro 2011 discrete GPU fix, also a script to automate part of the fix process
Taken from StackExchange
Thanks to LangLangC
Taken from StackExchange
Thanks to LangLangC
Translations: Korean (by Yongwoo Lee)
Laravel has a powerful Inversion of Control (IoC) / Dependency Injection (DI) Container. Unfortunately the official documentation doesn't cover all of the available functionality, so I decided to experiment with it and document it for myself. The following is based on Laravel 5.4.26 - other versions may vary.
I won't attempt to explain the principles behind DI / IoC here - if you're not familiar with them you might want to read What is Dependency Injection? by Fabien Potencier (creator of the Symfony framework).
CREATE TABLE IF NOT EXISTS `country` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`iso` char(2) NOT NULL, | |
`name` varchar(80) NOT NULL, | |
`nicename` varchar(80) NOT NULL, | |
`iso3` char(3) DEFAULT NULL, | |
`numcode` smallint(6) DEFAULT NULL, | |
`phonecode` int(5) NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
<?php | |
/** | |
* Checkout method | |
*/ | |
public function knetCheckout($orderID) | |
{ | |
$order = $this->orderModel->find($orderID); | |
$invoiceID = $this->generateInvoiceCode(); |
<?php | |
public function test() | |
{ | |
$kuwaitCityLocations = [ | |
'Abdullah al-Salem', | |
'Adailiya', | |
'Bneid Al Qar', | |
'Daiya', | |
'Dasma', | |
'Dasman', |
openssl pkcs12 -in Certificates_Prod.p12 -out pushcert_prod.pem -nodes -clcerts |
<?php | |
namespace App\Events; | |
use Illuminate\Contracts\Broadcasting\ShouldBroadcast; | |
use Illuminate\Queue\SerializesModels; | |
class NewMessage extends Event implements ShouldBroadcast | |
{ | |
// @flow | |
// Flow Fundamentals For ReactJS Developers | |
/* | |
Tutorial for ReactJS Developers wanting to get started with FlowType. | |
We will go through the basic Flow features to gain a better understanding of how to use FlowType with React. | |
You can uncomment the features one by one and work through this tutorial. | |
If you want to learn the very FlowType basics, refer to "Flow Fundamentals for JavaScript Developers" (https://gist.github.com/busypeoples/61e83a1becc9ee9d498e0db324fc641b) first. |
cat ~/.ssh/id_rsa.pub | ssh <user>@<hostname> 'cat >> .ssh/authorized_keys && echo "Key copied"' |
<!-- | |
Install dependencies with Bower: | |
bower install PolymerElements/paper-elements#^1.0.7 | |
--> | |
<html> | |
<head> | |
<title>Auth Example</title> | |
<link rel="shortcut icon" href="/favicon.png" type="image/x-icon"> |