Skip to content

Instantly share code, notes, and snippets.

View jmcabandara's full-sized avatar
🎯
Focusing

Chaminda Bandara jmcabandara

🎯
Focusing
View GitHub Profile
@jmcabandara
jmcabandara / generate.sh
Created September 3, 2021 17:16 — forked from alfredodeza/generate.sh
Generate a self signed cert (spits out an ssl.key and ssl.cert) in one go
#!/bin/bash
# Easily generate a 10 year SSL certificate and key for development. It
# creates a configuration file for wild card domains, if no argument is passed
# in will fallback to "node.a" as the domain to use.
#
# Upon completion, these files should now exist::
#
# * openssl.cnf
# * ssl.key
# * ssl.crt
@jmcabandara
jmcabandara / readme.md
Created February 28, 2021 02:36 — forked from lgg/keepass-file-format-explained.md
Keepass file format explained

Keepass file format explained

I’m currently working (I’m just at the beginning, and I’m quite slow) on a personal project that will use Keepass files (kdb and kdbx).
I tried to find some documentation about .kdb and .kdbx format, but I didn’t find anything, even in the Keepass official website. I you want to know how these file formats are structured, you must read Keepass’s source code. So I wrote this article that explains how Keepass file format are structured, maybe it will help someone.

We've created a Bloc Mentor Slack Group. If you want to be added, just send me your email. Either respond directly to this or email me at RRP54@cornell.edu.

Introductory Message

Hi teammates,

My name is Ricky. I'm a fellow Rails and iOS Mentor residing in NYC.

It's time! It's time to have our own mentor Slack Group. Students across curriculums have already been using their own Slack Groups to seek help from fellow students, and it's been proving extremely helpful. I'm sure it would do the same for us mentors.

We've created a Bloc Mentor Slack Group. If you want to be added, just send me your email. Either respond directly to this or email me at RRP54@cornell.edu.

Introductory Message

Hi teammates,

My name is Ricky. I'm a fellow Rails and iOS Mentor residing in NYC.

It's time! It's time to have our own mentor Slack Group. Students across curriculums have already been using their own Slack Groups to seek help from fellow students, and it's been proving extremely helpful. I'm sure it would do the same for us mentors.

@jmcabandara
jmcabandara / README.md
Created October 26, 2020 16:03 — forked from sutlxwhx/README.md
Enable RDP and access to the virtual machines for your Proxmox installation

Introduction

This tuturial will help you configure network for your fresh Proxmox istallation.
Be aware that Proxmox configuration was made using this tutorial.

Installation

Backup your current /etc/network/interfaces using this command:

cp /etc/network/interfaces /etc/network/interfaces.backup
@jmcabandara
jmcabandara / README.md
Created October 26, 2020 16:03 — forked from sutlxwhx/README.md
Enable RDP and access to the virtual machines for your Proxmox installation

Introduction

This tuturial will help you configure network for your fresh Proxmox istallation.
Be aware that Proxmox configuration was made using this tutorial.

Installation

Backup your current /etc/network/interfaces using this command:

cp /etc/network/interfaces /etc/network/interfaces.backup
@jmcabandara
jmcabandara / run-jar-as-a-service.md
Created October 22, 2020 07:39 — forked from marlonbernardes/run-jar-as-a-service.md
How to make a jar file run on startup
  1. Create the start and stop scripts of your application.
  • Example:

myapp-start.sh

#!/bin/bash
cd /home/ubuntu/myapp/
java -jar myapp.jar --server.port=8888 &

Lsyncd Technical Session

So what is lsyncd?

Lsyncd is a tool used to keep a source directory in sync with other local or remote directories. It is a solution suited keeping directories in sync by batch processing changes over to the synced directories.

When would we use lsyncd?

So the generic use case is to keep a source directory in sync with one or more local and remote directories.

Lsyncd Technical Session

So what is lsyncd?

Lsyncd is a tool used to keep a source directory in sync with other local or remote directories. It is a solution suited keeping directories in sync by batch processing changes over to the synced directories.

When would we use lsyncd?

So the generic use case is to keep a source directory in sync with one or more local and remote directories.

@jmcabandara
jmcabandara / backup.sh
Created May 7, 2020 04:15 — forked from dickolsson/backup.sh
Simple backup script that will backup package list, files and databases.
#!/bin/sh
#
# A simple Arch Linux backup script.
#
# Example config that targets external mount, keeping backups for a week and
# mirror the backups to local and external disks:
#
# $ cat /etc/backuprc
# backup_target=/mnt/data01/myhost
# backup_days_kept=7