Thanks to visit codestin.com
Credit goes to gist.github.com

Skip to content

Instantly share code, notes, and snippets.

View SrVariable's full-sized avatar
🦔
Doing magic

Rojohn SrVariable

🦔
Doing magic
View GitHub Profile
@SrVariable
SrVariable / nginx.conf
Created January 20, 2026 14:16 — forked from nrollr/nginx.conf
NGINX config for SSL with Let's Encrypt certs
# UPDATED 17 February 2019
# Redirect all HTTP traffic to HTTPS
server {
listen 80;
listen [::]:80;
server_name www.domain.com domain.com;
return 301 https://$host$request_uri;
}
# SSL configuration
@SrVariable
SrVariable / installer.sh
Created August 9, 2025 12:47
Installer for my usually used tools for Linux (Debian like systems)
#!/bin/bash
install_prerequisites() {
YES=$1
echo "This installation depends on: git curl wget"
if [[ -z "$YES" ]]; then
read -p "Do you want to install them? (y/n): " OPTION
fi
if [[ ! -z "$YES" ]] || [[ "$OPTION" == "y" ]] || [[ "$OPTION" == "yes" ]]; then
@SrVariable
SrVariable / snippets-html.vim
Last active March 5, 2025 18:40
snippets for html
autocmd Filetype html inoremap !!! <!DOCTYPE html><CR><html lang="en"><CR></html><ESC>O<head><CR></head><CR><body><CR></body><ESC>gg/head<CR>o<meta charset="utf-8"><CR><meta name="viewport" content="width=device-width, initial-scale=1.0"><CR><title></title><ESC>:nohl<CR>cit
autocmd Filetype html inoremap h1> <h1></h1><ESC>cit
autocmd Filetype html inoremap h11> <h1 class=""></h1><ESC>cit
autocmd Filetype html inoremap h111> <h1 id=""></h1><ESC>cit
autocmd Filetype html inoremap h2> <h2></h2><ESC>cit
autocmd Filetype html inoremap h22> <h2 class=""></h2><ESC>cit
autocmd Filetype html inoremap h222> <h2 id=""></h2><ESC>cit
autocmd Filetype html inoremap h3> <h3></h3><ESC>cit
autocmd Filetype html inoremap h33> <h3 id=""></h3><ESC>cit
autocmd Filetype html inoremap h333> <h3 class=""></h3><ESC>cit
@SrVariable
SrVariable / test_colorscheme.c
Created February 11, 2025 12:17
C Code to test a colorscheme
/**
* This is a test_colorscheme.c to check how the colorscheme looks like
* TODO(srvariable): Improve the colorscheme!
*/
#include <stdio.h>
#ifndef INITIAL_VALUE
# define INITIAL_VALUE 0
#endif //INITIAL VALUE
@SrVariable
SrVariable / srvariable.vim
Last active February 17, 2024 22:50
My custom vim palette
if !has("gui_running") && &t_Co < 256
finish
endif
"if exists("syntax_on")
" syntax reset
"endif
set background=dark
"hi clear
@SrVariable
SrVariable / keymaps.vim
Created January 24, 2024 03:41
My vim custom keymaps for C
augroup CFileMappings
autocmd!
" Write the template
"
" ```
" int main(int argc, char **argv)
" {
" return (0);
" }
" ```
@SrVariable
SrVariable / .vimrc
Last active September 19, 2024 12:36
My .vimrc
syntax on " Enables the syntax of the language.
set number " Display the number lines
set relativenumber " Display the relative number lines
set encoding=utf-8 " Set the encoding to utf-8
set nocompatible " Disable compatibility
set showcmd " Enables the command history
filetype plugin indent on " Indents the file according to the plugin
set cc=80 " Set the column to 80 characters
set nowrap " Disable line wrap
"set hlsearch " Highlight matching searches