Skip to content

Instantly share code, notes, and snippets.

View GoAlexander's full-sized avatar

Alexander Dydychkin GoAlexander

View GitHub Profile
@GoAlexander
GoAlexander / ansible_local_playbooks.md
Created January 5, 2019 19:43 — forked from alces/ansible_local_playbooks.md
How to run an Ansible playbook locally
  • using Ansible command line:
ansible-playbook --connection=local 127.0.0.1 playbook.yml
  • using inventory:
127.0.0.1 ansible_connection=local
@GoAlexander
GoAlexander / hello_world.yml
Created January 5, 2019 19:42 — forked from rythie/hello_world.yml
Ansible hello world example
# To run this, name this file hello_world.yml and run the following in the same directory
# ansible-playbook hello_world.yml -i 'local,' --connection=local
- hosts:
- local
tasks:
- name: Create a directory
file: path=hello_world state=directory
@GoAlexander
GoAlexander / EchoServer.java
Created October 27, 2016 16:18 — forked from dannvix/EchoServer.java
simple multithreading TCP echo server in (ugly) Java
import java.io.*;
import java.net.*;
import java.lang.Thread;
public class EchoServer {
public static void main (String[] args) {
try {
ServerSocket server = new ServerSocket(5566);
while (true) {
Socket client = server.accept();
@GoAlexander
GoAlexander / Example.qml
Created July 4, 2016 20:03 — forked from jaymzznoori/Example.qml
Example for Sailfish UI programming in QML
import QtQuick 2.0
import Sailfish.Silica 1.0
ApplicationWindow {
// Chapter 1: Basic primitives
Image {
visible: false
source: "jolla.png"
Behavior on opacity { NumberAnimation {} }