Skip to content

Instantly share code, notes, and snippets.

View filviu's full-sized avatar

Silviu Vulcan filviu

View GitHub Profile
filviu / cloud-init.cfg
Created March 14, 2023 13:07 — forked from berkant/cloud-init.cfg
Cloud-init config to set up my Ubuntu dev machine.
View cloud-init.cfg
## template: jinja
{% if v1.distro_release == 'focal' %}
- name: berkant
shell: /usr/bin/bash
ssh_import_id: gh:berkant
filviu / openssl-notes.txt
Created January 28, 2022 11:16 — forked from tsaarni/openssl-notes.txt
Generate self-signed certs with different key types
View openssl-notes.txt
*** RSA
# Generate self-signed certificate with RSA 4096 key-pair
openssl req -x509 -nodes -days 3650 -newkey rsa:4096 -keyout rsakey.pem -out rsacert.pem
# print private and public key
openssl rsa -in rsakey.pem -text -noout
# print certificate
openssl x509 -in rsacert.pem -text -noout
filviu / gist:b90942bea74fe64c4a8d08231fea4591
Created September 22, 2020 13:22 — forked from trongthanh/gist:2779392
How to move a folder from one repo to another and keep its commit history
View gist:b90942bea74fe64c4a8d08231fea4591
# source:
# First of all you need to have a clean clone of the source repository so we didn't screw the things up.
git clone git://
# After that you need to do some preparations on the source repository, nuking all the entries except the folder you need to move. Use the following command
git filter-branch --subdirectory-filter your_dir -- -- all
# This will nuke all the other entries and their history, creating a clean git repository that contains only data and history from the directory you need. If you need to move several folders, you have to collect them in a single directory using the git mv command.
filviu /
Last active October 14, 2022 05:45 — forked from jpmens/
Stefan expands on I'm expanding on his work to mirror gists and starred repos and gists as well. I'm grouping those three in 4 different gitea organizations