create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| Syntax: x264 [options] -o outfile infile [widthxheight] | |
| Infile can be raw YUV 4:2:0 (in which case resolution is required), | |
| or YUV4MPEG 4:2:0 (*.y4m), | |
| or Avisynth if compiled with support (no). | |
| or libav* formats if compiled with lavf support (no) or ffms support (no). | |
| Outfile type is selected by filename: | |
| .264 -> Raw bytestream | |
| .mkv -> Matroska | |
| .flv -> Flash Video |
| (ns evolvefn) ;; Lee Spector ([email protected]) 20111018 | |
| ;; This code defines and runs a genetic programming system on the problem | |
| ;; of finding a function that fits a particular set of [x y] pairs. | |
| ;; The aim here is mostly to demonstrate how genetic programming can be | |
| ;; implemented in Clojure simply and clearly, and several things are | |
| ;; done in somewhat inefficient and/or non-standard ways. But this should | |
| ;; provide a reasonable starting point for developing more efficient/ | |
| ;; standard/capable systems. |
| ## Configure eth0 | |
| # | |
| # vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
| DEVICE="eth0" | |
| NM_CONTROLLED="yes" | |
| ONBOOT=yes | |
| HWADDR=A4:BA:DB:37:F1:04 | |
| TYPE=Ethernet | |
| BOOTPROTO=static |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
| #!/bin/bash | |
| # WebSocket shell, start & browse to http://<Host>:6655/ | |
| # Requires bash 4.x, openssl. | |
| # Author: [email protected] (which isn't me, apk) | |
| coproc d { nc -l -p 6656 -q 0; } | |
| nc -l -p 6655 -q 1 > /dev/null <<-ENDOFPAGE | |
| HTTP/1.1 200 OK | |
| <html><head><script language="javascript"> | |
| var url = location.hostname + ':' + (parseInt(location.port) + 1); |
| # Install tmux on Centos release 6.5 | |
| # install deps | |
| yum install gcc kernel-devel make ncurses-devel | |
| # DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL | |
| curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz | |
| tar -xvzf libevent-2.0.21-stable.tar.gz | |
| cd libevent-2.0.21-stable | |
| ./configure --prefix=/usr/local |
| ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key | |
| # Don't add passphrase | |
| openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub | |
| cat jwtRS256.key | |
| cat jwtRS256.key.pub |
This has been moved into the official Chef docs:
https://docs.chef.io/custom_resources_notes.html
This is by far the most recommended way of writing resources for all users. There are two gotchas which we're working through:
action_class do ... end block.$ uname -r