Skip to content

Instantly share code, notes, and snippets.

View exadeci's full-sized avatar
🦜

Gaëtan Guéraud exadeci

🦜
  • Sydney
  • 07:42 (UTC +11:00)
View GitHub Profile
@exadeci
exadeci / UAPFailsafeBootSequence1407
Created August 14, 2022 16:50 — forked from andrewhoff/UAPFailsafeBootSequence1407
How to get into Unifi UAP failsafe mode (running OpenWrt 14.07)
Set Host Machine Static IP -> 192.168.1.2 (SNM 255.255.255.0)
Disconnect POE/LAN cable from UAP
Reconnect POE/LAN cable to UAP
Watch for ~500ms green led blink
Click reset button once, green led blinks ~150ms
`telnet 192.168.1.1` from host machine
mount_root to fix config
@exadeci
exadeci / .rb
Last active March 20, 2017 02:35
ApplicationRecord model template for RubyMine
#set($ctrlName = $NAME.replaceAll(".rb", ""))
#set($ctrlNewName = "")
#foreach($str in $ctrlName.split("_"))
#set($str = $str.substring(0,1).toUpperCase()+$str.substring(1))
#set($ctrlNewName = $ctrlNewName + $str)
#end
class ${ctrlNewName} < ApplicationRecord
end

Keybase proof

I hereby claim:

  • I am exadeci on github.
  • I am exa (https://keybase.io/exa) on keybase.
  • I have a public key whose fingerprint is 702D 38C9 43AF 5F35 3B31 1AD3 070D 1875 AB37 4500

To claim this, I am signing this object:

@exadeci
exadeci / Capybara.md
Created September 15, 2015 10:11 — forked from tomas-stefano/Capybara.md
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
$(document).ready ->
$('.form-list').bind 'cocoon:after-insert', (e, insertedItem) ->
insertedItem.find('.chosen').chosen()
Verifying I am +exa on my passcard. https://onename.com/exa