Skip to content

Instantly share code, notes, and snippets.

@thisavoropaev
Created October 19, 2016 17:45
Show Gist options
  • Save thisavoropaev/56970dc737410e15baacd1d8de8400ed to your computer and use it in GitHub Desktop.
Save thisavoropaev/56970dc737410e15baacd1d8de8400ed to your computer and use it in GitHub Desktop.
#!/bin/bash
hostname=$(hostname -s)
cd ~/Library/Application\ Support/com.bohemiancoding.sketch3/
rm .license && touch .license && echo '{"meta":{"generated_at":"'$(date)'","sign":"==","device_name":"'$hostname "("$(id -un)')"},"payload":{"status":"ok","application":"sketch3","type":"license","udid":"c2d8c1dd037f919d57124de1037eeb22efad6bd1","expiration":"9999999999"}}' >> .license
echo '127.0.0.1 backend.bohemiancoding.com' | sudo tee -a /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment