Skip to content

Instantly share code, notes, and snippets.

@phackwer
phackwer / gist:da1439517be54a4257e9db6f2b3243c8
Last active February 25, 2022 15:28
downgrade firmware macbook air
https://support.apple.com/en-ie/HT201860
https://apple.stackexchange.com/questions/103720/how-to-downgrade-efi-firmware-back-to-version-1-6
I finally managed to successfully downgrade the EFI firmware to version 1.6. Unfortunately that didn't make my hard drive work. However I'm going to reproduce my steps here so that the whole world can know what it takes:
Download the EFI firmware update package from Apple. Here is the link I used for firmware version 1.6 for my late-2008 MacbookPro5,1: http://support.apple.com/kb/DL746
WARNING! If you use the wrong firmware for you computer, bad things will almost certainly happen. This isn't my experience but it would probably brick your computer, meaning it will change from being a computer that can compute things to being a brick that just sits there. You have been warned!
The EFI firmware update 1.6 comes as a .pkg file. Since it won't extract for you unless your computer needs the update, you will have to extract it yourself. The best way I found
Use Imagick to manipulate PSD file instances in PHP
Time: Jan 15, 2017 From Machine Translation.
php
References:
Http://www.php.net/manual/en/book.imagick.php
premise
Follow this steps
https://www.digitalocean.com/community/tutorials/how-to-build-android-apps-with-jenkins
The missing part: accept all licenses
yes | sudo /opt/android-sdk-linux/bin/sdkmanager --licenses
@phackwer
phackwer / gist:a2d56b0824c091509f5555112de785b4
Created November 5, 2017 09:56 — forked from bluefuton/gist:1468061
OS X: replace tabs with spaces in all files using expand
find . -name "*.php" | while read line; do expand -t 4 $line > $line.new; mv $line.new $line; done
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
<?php
namespace App\Console;
use Illuminate\Console\Command;
/**
* Class PidLockingCommand
*
* Implements a command with pidlocking control to avoid conflicting processing
https://blogs.msdn.microsoft.com/microsoft_azure_guide/2014/12/13/how-to-allow-ping-functionality-to-windows-azure-machines/
The Ping functionality on Windows Azure VM is blocked by default for security reasons, to be to enable them you can do that from the Windows firewall advanced features on each VM or you can login on the virtual machine and open the command prompt as an administrator and execute this command.
netsh advfirewall firewall add rule name="ICMP Allow incoming V4 echo request" dir=in action=allow enable=yes protocol=icmpv4:8,any
@phackwer
phackwer / Geolocation test
Last active July 18, 2017 09:02
PHP Socket listener
<?php
$listening = true;
$ip = '0.0.0.0';
$port = 9679;
$server = stream_socket_server("tcp://{$ip}:{$port}", $errno, $errstr);
$w = $e
= [];
if (!$server) {
@phackwer
phackwer / config.pplist
Last active June 29, 2017 17:21
Clover configuration
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ACPI</key>
<dict>
<key>DSDT</key>
<dict>
<key>Debug</key>
<false/>
@phackwer
phackwer / City Model
Created June 7, 2017 17:59
Laravel 5 - all cities, regions, states and countries from Gazeteer
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class City extends Model
{
/**
* @var array