Skip to content

Instantly share code, notes, and snippets.

View i39's full-sized avatar

Vadim YR i39

  • Innovation LLC
  • Kaliningrad
View GitHub Profile
-module(first).
-export([double/1, mult/2, area/3, treble/1, square/1]).
mult (X,Y) ->
X*Y.
double(X) ->
mult(2,X).
area(A,B,C) ->
@i39
i39 / Ansible Let's Encrypt Nginx setup
Created November 29, 2018 14:49 — forked from mattiaslundberg/Ansible Let's Encrypt Nginx setup
Let's Encrypt Nginx setup with Ansible
Ansible playbook to setup HTTPS using Let's encrypt on nginx.
The Ansible playbook installs everything needed to serve static files from a nginx server over HTTPS.
The server pass A rating on [SSL Labs](https://www.ssllabs.com/).
To use:
1. Install [Ansible](https://www.ansible.com/)
2. Setup an Ubuntu 16.04 server accessible over ssh
3. Create `/etc/ansible/hosts` according to template below and change example.com to your domain
4. Copy the rest of the files to an empty directory (`playbook.yml` in the root of that folder and the rest in the `templates` subfolder)
@i39
i39 / imposter-handbook-links.md
Created January 20, 2019 22:48 — forked from milmazz/imposter-handbook-links.md
Useful links found in The Imposter's Handbook by Rob Conery
@i39
i39 / key
Created March 14, 2019 23:18
Sublime text 3 keys
—– BEGIN LICENSE —–
Die Socialisten GmbH
10 User License
EA7E-800613
51311422 E45F49ED 3F0ADE0C E5B8A508
2F4D9B65 64E1E244 EDA11F0E F9D06110
B7B2E826 E6FDAA72 2C653693 5D80582F
09DCFFB5 113A940C 5045C0CD 5F8332F8
34356CC6 D96F6FDB 4DEC20EA 0A24D83A
2C82C329 E3290B29 A16109A7 EC198EB9
@i39
i39 / password.txt
Created August 15, 2019 19:09 — forked from gabonator/password.txt
HiSilicon IP camera root passwords
Login Password
root xmhdipc
root klv123
root xc3511
root 123456
root jvbzd
default OxhlwSG8
defaul tlJwpbo6
defaul S2fGqNFs
root hi3518
@i39
i39 / clean-up-boot-partition-ubuntu.md
Created August 19, 2020 11:27 — forked from ipbastola/clean-up-boot-partition-ubuntu.md
Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Safest way to clean up boot partition - Ubuntu 14.04LTS-x64, Ubuntu 16.04LTS-x64

Reference

Case I: if /boot is not 100% full and apt is working

1. Check the current kernel version

$ uname -r 
@i39
i39 / gist:2b0ed9f4f3867fe432344114a171e74b
Created October 5, 2021 21:26 — forked from zerog2k/gist:f8d5ad83d2b93f145a4f1d8964663d10
notes for repurposing Ubiquiti CRM Point to "Cloud Key", by installing unifi controller
install latest crmpoint fw per:
https://community.ui.com/questions/Installing-airControl-on-CRM-Point/a4f1fdcd-114a-4c06-a842-e56eff486570
# login via ssh
# change root/ubnt password
passwd
# fix jessie backports repo
echo "deb http://archive.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
@i39
i39 / UniFi Tunnelbroker.md
Created November 30, 2021 13:16 — forked from CHTJonas/UniFi Tunnelbroker.md
Tunnelbroker config for UniFi Security Gateway

UniFi Tunnelbroker Configuration

This GitHub Gist details the manual configuration needed on a UniFi controller to enable IPv6 tunneling with Hurricane Electric's Tunnelbroker service.

Setup

This is what works for me personally. Stuff you'll need to do to adapt this to your ends:

  • Replace "local-ip" with your USG's public IPv4 address.
  • Replace "remote-ip" with the address of your Tunnelbroker tunnel server.
  • Replace "address" with the IPv6 address that your are allocated.
@i39
i39 / example.py
Created June 5, 2022 23:47 — forked from 1st1/example.py
asyncio queues example
import asyncio
import random
import time
async def worker(name, queue):
while True:
# Get a "work item" out of the queue.
sleep_for = await queue.get()
@i39
i39 / README.md
Created June 14, 2022 16:43 — forked from pamolloy/README.md
Ubiquiti USG configuration for Wireguard

Download the latest ugw3 package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb.

cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key