Skip to content

Instantly share code, notes, and snippets.

View dima056359's full-sized avatar

Honcharenko Dmytro dima056359

View GitHub Profile
@dima056359
dima056359 / setup.sh
Created January 17, 2019 20:00
Ubuntu 16.04 tightvncserver setup script
#!/bin/bash
# Update repos
sudo apt update
# Install XFCE4
echo "----Install Xubuntu-desktop"
sudo apt install xfce4 xfce4-goodies -y
echo "----Install VNC Server"
@dima056359
dima056359 / main.js
Created March 22, 2018 10:43
Node.js DES encode/decode with prompt
/*
@@@
@@@ npm install crypto-js js-base64 prompt
@@@
*/
// подключим либы для шифрования
// первым делом это crypto-js - набор библиотек для шифрования различными алгоритмами
var CryptoJS = require('crypto-js');
@dima056359
dima056359 / server.go
Created May 27, 2017 21:50
Simple echo-server written in Golang
package main
import (
"log"
"net"
"strings"
)
// accepting connections
func main() {
ln, err := net.Listen("tcp", ":6000")