Skip to content

Instantly share code, notes, and snippets.

View Hebrahimzadeh's full-sized avatar
🎯
Focusing

Hossein Ebrahimzadeh Hebrahimzadeh

🎯
Focusing
View GitHub Profile
@Hebrahimzadeh
Hebrahimzadeh / jinja_variables_types.yml
Created February 28, 2022 05:59 — forked from spiette/jinja_variables_types.yml
Test the variables types in jinja2 templates, used here with ansible
---
- hosts: all
gather_facts: no
vars:
string: "string"
list:
- item1
- item2
dict:
key1: value1
@Hebrahimzadeh
Hebrahimzadeh / nginx.conf
Created June 19, 2022 15:00 — forked from CSRaghunandan/nginx.conf
Nginx configuration for serving mp4 videos
#user nobody;
worker_processes 4;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
@Hebrahimzadeh
Hebrahimzadeh / gitlab.rb
Created August 28, 2022 11:02 — forked from Erutan409/gitlab.rb
Gitlab Nginx Reverse Proxy Configuration (with Let's Encrypt SSL)
# These are fragments of the configuration that will need to be updated
# ---
## GitLab URL
##! URL on which GitLab will be reachable.
##! For more details on configuring external_url see:
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
external_url 'https://gitlab.your-fqdn.com'
#external_url 'http://gitlab.internal.lan'
@Hebrahimzadeh
Hebrahimzadeh / gist:a5db9094e2d0afeddd42cc6adfcc347f
Created September 19, 2023 14:46
TinyMCE Configs in Voyager
/*--------------------
|
| TinyMCE default config
|
--------------------*/
var getConfig = function(options) {
var baseTinymceConfig = {
menubar: false,
@Hebrahimzadeh
Hebrahimzadeh / chroot.sh
Created December 10, 2023 15:20 — forked from uglide/chroot.sh
Chroot to Installed system on LVM
#!/bin/bash
fdisk -lu
pvscan
vgscan
vgchange -a y
lvscan
mount /dev/ubuntu-vg/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc