Skip to content

Instantly share code, notes, and snippets.

View nerdissimo-de's full-sized avatar

Nerdissimo nerdissimo-de

View GitHub Profile
@cletustboone
cletustboone / commands.md
Last active June 13, 2019 11:17
Varnishlog Cheat Sheet

Reference Post

Requests that make it through to a specific backend

varnishlog -g request -q "Backend ~ 'api_nhl'"

Requests from a specific referrer

Client and backend varnishlog -g request -q "ReqHeader ~ 'sportsnet.ca'"

@yaronguez
yaronguez / ACF Country List
Created February 17, 2015 01:37
Country list formatted for Advanced Custom Fields select dropdown
afghanistan : Afghanistan
albania : Albania
algeria : Algeria
american_samoa : American Samoa
andorra : Andorra
angola : Angola
anguilla : Anguilla
antigua_and_barbuda : Antigua and Barbuda
argentina : Argentina
armenia : Armenia
@crazed
crazed / gist:7670423
Last active September 7, 2023 22:20
getting a moto x back to stock on mac os x
  1. grab the moto-fastboot version of fastboot here

  2. grab the appropriate stock firmware here (tip: you want the one that matches your android build number in settings -> about phone)

  3. unzip this file somewhere and make it easy to run the moto-fastboot-osx64 command from step 1

  4. get your phone into fastboot mode, google it if needed but just power the phone off, hold the down volume key and power button for 3 seconds then let go, should get you there

  5. verify you are ready for flashing:

     ./moto-fastboot-osx64 devices
     -- should list a device --
    
  6. most of the time you just need to flash system and recovery images, so from your unzipped stock firmware files do this: