This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
True = ->(a,b) {a} | |
False = ->(a,b) {b} | |
#Church encodings | |
zero = ->(f){->(x) {x}} | |
one = ->(f){->(x) { f.(x)}} | |
two = ->(f){->(x) { f.(f.(x))}} | |
three =->(f){->(x) { f.(f.(f.(x)))}} | |
#operations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Accessing a server port through another server | |
ssh -N -L<local_port>:<server>:<port> <another_server> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.jruby.*; | |
import org.jruby.ast.executable.AbstractScript; | |
import org.jruby.ast.executable.RuntimeCache; | |
import org.jruby.internal.runtime.methods.CallConfiguration; | |
import org.jruby.javasupport.util.RuntimeHelpers; | |
import org.jruby.runtime.*; | |
import org.jruby.runtime.builtin.IRubyObject; | |
public class person extends AbstractScript | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: batch/v1 | |
kind: Job | |
metadata: | |
name: aws-s3-import | |
spec: | |
backoffLimit: 4 | |
template: | |
spec: | |
containers: | |
- name: aws-cli |
OlderNewer