Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| # It extends activeadmin to show pretty boolean values | |
| # | |
| # config/initializers/active_admin.rb | |
| module ActiveAdmin | |
| module Views | |
| class TableFor | |
| def bool_column(attribute) | |
| column(attribute){ |model| model[attribute] ? '✔'.html_safe : '✗'.html_safe } | |
| end |
| $ ssh-keygen -l -f id_rsa.pub | |
| 2048 aa:bb:cc:dd:ee:ff:00:11:22:33:44:55:66:77:88:99 id_rsa.pub (RSA) |
Awesome PHP has been relocated permanently to its own Github repository. No further updates will made to this gist.
Please open an issue for any new suggestions.
| #!/bin/bash | |
| # list of programs we depend on | |
| progs="xdpyinfo grep head sed ffmpeg pacat parec sox" | |
| # check for programs we depend on | |
| result=0 | |
| for prog in $progs | |
| do | |
| type -p $prog > /dev/null |
| #!/usr/bin/env python | |
| # Python script to make Skype co-operate with GNOME3 notifications. | |
| # | |
| # | |
| # Copyright (c) 2011, John Stowers | |
| # | |
| # Adapted from skype-notify.py | |
| # Copyright (c) 2009, Lightbreeze | |
| # | |
| # |
| #!/bin/bash | |
| # /etc/init.d/xvfb_daemon | |
| # Xvfb startup script. | |
| # Tom Meier <[email protected]> | |
| # | |
| ### BEGIN INIT INFO | |
| # Provides: xvfb | |
| # Short-Description: Start/stop/restart daemon | |
| # Description: Controls the Xvfb daemon which starts/stops the X Virtual Framebuffer server | |
| # Example Use: |
| Surround these with : e.g. :calling: | |
| +1 | |
| -1 | |
| bulb | |
| calling | |
| clap | |
| cop | |
| feet |