Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Evsyukov Denis juev

🏠
Working from home
View GitHub Profile
@juev
juev / gist:bdfcfcf7afef1352d30a6284199e1326
Created Nov 30, 2018 — forked from nateware/gist:3915757
Start Mac VNC server from command line
View gist:bdfcfcf7afef1352d30a6284199e1326
# Step 1: Set priveleges
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Starting...
Setting allow all users to YES.
Setting all users privileges to 1073742079.
Done.
# Step 2: Allow VNC clients
View Extensions.md

Chrome

  1. HTTPS Everywhere
  2. Inoreader Companion
  3. Privacy Possum
  4. Save to Pocket
  5. The New Tab - Customize Your Start Page
  6. uBlock Origin

Firefox

View install-sublime.sh
#!/usr/bin/env bash
# Usage: {script} [ OPTIONS ] TARGET BUILD
#
# TARGET Default target is "/usr/local".
# BUILD If not defined tries to get the build into the Sublime Text 3 website.
#
# OPTIONS
#
# -h, --help Displays this help message.
#
@juev
juev / emacs.el
Created Apr 2, 2018 — forked from nilsdeppe/emacs.el
My Emacs init file
View emacs.el
;;; initfile --- Summary:
;;; Commentary:
;; Emacs 25.1 and newer tested
;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Configuration/Customization:
;; Defines global variables that are later used to customize and set
;; up packages.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
View gist:c2b229427abdba2939d16e162bb7b229
[freebsd@juev ~]$ sudo lscpu
Architecture: amd64
Byte Order: Little Endian
Total CPU(s): 1
Vendor: GenuineIntel
CPU family: 6
Model: 62
Model name: Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz
Stepping: 4
L1d cache: 32K
View FtpClientConnectionTimeouts.groovy
import org.apache.commons.net.ftp.*
import java.io.InputStream
import java.io.ByteArrayInputStream
String ftphost = "127.0.0.1"
String ftpuser = "test"
String ftppwd = "test"
int ftpport = 21
View go-scratch
#!/bin/bash
git clone https://github.com/Juev/go-scratch $1
cd $1
rm -rf .git
git init
@juev
juev / Makefile
Created Dec 24, 2017 — forked from turtlemonvh/Makefile
Golang Project Makefile Template
View Makefile
# Borrowed from:
# https://github.com/silven/go-example/blob/master/Makefile
# https://vic.demuzere.be/articles/golang-makefile-crosscompile/
BINARY = superdo
VET_REPORT = vet.report
TEST_REPORT = tests.xml
GOARCH = amd64
VERSION?=?
@juev
juev / gist:9d8e608023093bdecc1be958e63b09ee
Created Sep 25, 2017 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.
View gist:9d8e608023093bdecc1be958e63b09ee

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt