Skip to content

Instantly share code, notes, and snippets.

View charypar's full-sized avatar

Viktor Charypar charypar

View GitHub Profile
@charypar
charypar / Robot.java
Created January 28, 2016 13:35 — forked from anirudhpillai/Robot
Put the input in a text file. Then in the variable path (in main method), add the path to the text file.
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.stream.Stream;
public class Robot {
private static int gridX;
private static int gridY;

Keybase proof

I hereby claim:

  • I am charypar on github.
  • I am charypar (https://keybase.io/charypar) on keybase.
  • I have a public key whose fingerprint is DCB9 0985 1B31 8749 A706 A593 E1B3 707E B7B3 58E6

To claim this, I am signing this object:

@charypar
charypar / proxy.go
Last active August 29, 2015 14:19
Basic cookie injecting proxy in Go
package proxy
import (
"log"
"net/http"
"net/http/httputil"
"net/url"
"time"
)
@charypar
charypar / editable-list.ls
Created October 9, 2014 16:18
React.js editable list component
require! <[react immutable]>
dom = react.DOM
toolbar = require './list-toolbar.ls'
# helper functions
c-map = (f, vec-cursor) --> vec-cursor.map f .to-array!
interlace = (longer, shorter) -->
@charypar
charypar / group_vars
Last active August 25, 2022 16:43
Deploying SSL keys securely with Ansible (code)
---
ssl_certificates:
- certificate_src: secure.example.com.pem
certificate_dest: /etc/ssl/certs/secure.example.com.pem
key_src: secure.example.com.protected.key
key_dest: /etc/ssl/private/secure.example.com.protected.key
key_stripped: /etc/ssl/private/secure_example.com.key
key_password: "{{ssl_passphrase}}"