Skip to content

Instantly share code, notes, and snippets.

@Ederhex
Ederhex / Protonmail.md
Created April 5, 2022 20:42 — forked from ibaiul/Protonmail.md
Configure the protonmail bridge linux client on CentOS server and Fedora

Protonmail on CentOS server

#protonmail #centos #fedora #linux

Before you start

Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (https://protonmail.com/bridge/install).

Consider that the bridge linux client requires a paid protonmail account to work.

Get the protonmail bridge linux installer

@Ederhex
Ederhex / Vi Vim Cheat Sheet
Created April 18, 2022 13:25 — forked from githubfoam/Vi Vim Cheat Sheet
Vi Cheat Sheet
----------------------------------------------------------------------------------------------------
Vi stands for Visual,Vim stands for Vi IMproved.
----------------------------------------------------------------------------------------------------
Type o (lower case) to insert, or open, a blank line below the current line.
Type O (upper case) to insert a blank line above the current line
----------------------------------------------------------------------------------------------------
end of file -> press the Esc key and then press Shift + G to move cursor to end of file
----------------------------------------------------------------------------------------------------
:set nonumber #disable the absolute line numbers off
:set number! #toggle the line numbers
@Ederhex
Ederhex / DNSCrypt_Server_Setup.bash
Created September 13, 2022 14:28 — forked from Zackptg5/DNSCrypt_Server_Setup.bash
DNSCrypt Server Setup for Debian
#!/usr/bin/env bash
set -x
server="$(hostname)"
server_ip="$(hostname -I | awk '{print $1}')"
server_ip6="$(hostname -I | awk '{print $NF}')"
sshport=1024
# Update and configure ssh
apt update && apt upgrade -y
apt install htop speedtest-cli -y
#!/bin/bash
iatest=$(expr index "$-" i)
#######################################################
# SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me
#######################################################
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@Ederhex
Ederhex / pkcs12.h
Created September 13, 2022 23:00 — forked from inC3ASE/pkcs12.h
/usr/local/include/node/openssl
/* pkcs12.h */
/*
* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL project
* 1999.
*/
/* ====================================================================
* Copyright (c) 1999 The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@Ederhex
Ederhex / mkdocs.yaml
Created October 21, 2022 12:20 — forked from gaelrech/mkdocs.yaml
mkdocs sample yaml file
site_name: <name>
# Site tree
nav:
- First Tab: README.md
repo_url: <github_url>
repo_name: <git_name>
# Configuration
@Ederhex
Ederhex / default
Created January 30, 2023 02:28 — forked from miguelmota/default
Nginx + Node.js server configuration. Blog post: http://www.miguelmota.com/blog/nodejs-and-ngnix-on-ubuntu/
# The upstream module is the link between Node.js and Nginx.
# Upstream is used for proxying requests to other servers.
# All requests for / get distributed between any of the servers listed.
upstream helloworld {
# Set up multiple Node.js webservers for load balancing.
# max_fails refers to number of failed attempts
# before server is considered inactive.
# weight priorities traffic to server. Ex. weight=2 will recieve
# twice as much traffic as server with weight=1
server <your server ip>:3000 max_fails=0 fail_timeout=10s weight=1;
selinux steps:
# Check for any avc_denied
vi /var/log/audit/audit.log
# Gives a snippet for each denied as to why
audit2allow -w -a
# Shows what allow directives would allow the denied actions
audit2allow -a
@Ederhex
Ederhex / compile-httpd-from-source
Created October 23, 2023 19:16 — forked from rizkhanriaz/compile-httpd-from-source
Compile Apache from source on Centos 7
###############################################################
Apache Installation
###############################################################
# Install required tools for compilation
sudo yum install autoconf expat-devel libtool libnghttp2-devel pcre-devel -y
# Download source code
cd #switch to home dir
curl -O -L https://github.com/apache/httpd/archive/2.4.37.tar.gz #latest stable release Apache