Run
issuetopr 1256
to convert issue 1256 to a pull request.
Copy the function issuetopr
to your .bashrc
or .zshrc
to start using it.
root@Ubuntu-1604-xenial-64-minimal ~ # cat /etc/network/interfaces | |
### Hetzner Online GmbH installimage | |
source /etc/network/interfaces.d/* | |
auto lo | |
iface lo inet loopback | |
iface lo inet6 loopback | |
auto eth0 |
http://cgit.freedesktop.org/xorg/app/edid-decode/plain/edid-decode.c | |
compile with: | |
gcc edid-decode.c -o edid-decode | |
get EDID from IORegistryExplorer (mine, an old 24" Apple Cinema Display, is attached). | |
Convert to binary with this command: | |
ruby -e 'File.open("edid", "wb").write(File.read("edid.txt").split.map { |s| ("0x"+s).to_i(16) }.inject("", "<<"))' |
Run
issuetopr 1256
to convert issue 1256 to a pull request.
Copy the function issuetopr
to your .bashrc
or .zshrc
to start using it.
server { | |
listen 443; | |
root /home/rails/apps/magicbell_site/current/public; | |
server_name magicbell.io; | |
# Use certificates we purchased from https://www.ssl2buy.com | |
ssl on; | |
ssl_certificate /etc/nginx/certs/magicbell.io/magicbell.io.crt; | |
ssl_certificate_key /etc/nginx/certs/magicbell.io/magicbell.io.key; |
require "fileutils" | |
class DotfileInfo | |
def initialize(dotfile_info_string) | |
@dotfile_info_string = dotfile_info_string | |
end | |
def path | |
@dotfile_info_string.split(":")[0] | |
end |
<?PHP | |
/** | |
* pingdom.php | |
* | |
* This application will check your server swap, hard drive, cpu, and MySQL conditions. | |
* It will then generate an appropriate XML file for a Pingdom HTTP Custom check. | |
* | |
* If any usage is above your preset thresholds, then a down message will be returned, | |
* indicating that your server may be under more load than usual, hopefully, providing | |
* a bit of advanced notice before a true failure due to lack of resources |
%YAML 1.2 | |
--- | |
Application: | |
license_key: YOUR_NEWRELIC_LICENSE_KEY | |
wake_interval: 60 | |
#newrelic_api_timeout: 10 | |
#proxy: http://localhost:8080 | |
postfix: {} |
Thread 2 (Thread 0x7fda555c0700 (LWP 2244)): | |
#0 0x00007fda55786883 in poll () from /lib/libc.so.6 | |
#1 0x00007fda566d6809 in timer_thread_sleep (p=<value optimized out>) at thread_pthread.c:1438 | |
#2 thread_timer (p=<value optimized out>) at thread_pthread.c:1549 | |
#3 0x00007fda562ef8ca in start_thread () from /lib/libpthread.so.0 | |
#4 0x00007fda557917dd in clone () from /lib/libc.so.6 | |
#5 0x0000000000000000 in ?? () | |
Thread 1 (Thread 0x7fda56bb4700 (LWP 2242)): |
import is_holding_yellow_box | |
# This is a solution for tutorial 3 | |
def solution_for_tutorial_3 | |
down | |
right | |
if is_holding_yellow_box | |
right | |
down | |
left |