Skip to content

Instantly share code, notes, and snippets.

View dev1lsconf's full-sized avatar
😈

dev1ls dev1lsconf

😈
View GitHub Profile
@dev1lsconf
dev1lsconf / gist:aa37f38de29645293387a3d61d3a3c70
Created January 22, 2022 12:27 — forked from fduran/gist:4271967
Apache Redirect Subdomain to port
# www.fduran.com
# redirect from apache port (:8080 for ex for tomcat etc) to subdomain
# in apache config:
<VirtualHost *:80>
ServerName subdomain.example.com
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>
@dev1lsconf
dev1lsconf / gist:8521db1fac54cdce1a3b83b1557d1b33
Created February 4, 2022 22:23 — forked from taigetco/gist:7446001
17 Command Line Tools to Monitor Linux Performance
17 Command Line Tools to Monitor Linux Performance
1. Top – Linux Process Monitoring
used to dipslay all the running and active real-time processes in ordered list and updates it regularly. It display CPU usage, Memory usage, Swap Memory, Cache Size, Buffer Size, Process PID, User, Commands and much more. It also shows high memory and cpu utilization of a running processess.
2. VmStat – Virtual Memory Statistics
used to display statistics of virtual memory, kernerl threads, disks, system processes, I/O blocks, interrupts, CPU activity and much more.
3. Lsof – List Open Files
used to display list of all the open files and the processes.
@dev1lsconf
dev1lsconf / index.html
Created March 20, 2022 07:47
Netflix Intro Animation Pure CSS
<div id="container">
<!-- Edit the letter attr to: N, E, T, F, L, I or X -->
<netflixintro letter="D">
<div class="helper-1">
<div class="effect-brush">
<span class="fur-31"></span>
<span class="fur-30"></span>
<span class="fur-29"></span>
<span class="fur-28"></span>
<span class="fur-27"></span>
@dev1lsconf
dev1lsconf / redirect.html
Created April 7, 2022 07:05 — forked from fuzzmz/redirect.html
HTML redirect
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">
</head>
<body>
Optional page text here.
</body>
</html>

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@dev1lsconf
dev1lsconf / -setup-linux-devenv.md
Created May 17, 2022 23:05 — forked from leodutra/-setup-linux-devenv.md
Install and Setup Ubuntu Linux dev env with Terminator, ZSH (+ .zshrc) + Oh My Zsh + Powerlevel9k + plugins, Rust, FNM + VSCode (+ext) and Nerd Font

Setup Ubuntu Linux Dev Environment

Terminator, ZSH (+ .zshrc) + Oh My Zsh + Powerlevel9k + plugins, Rust, FNM + VSCode (+ext) and Nerd Font

To setup Linux for WSL2, see this gist

Preview

Requirements

@dev1lsconf
dev1lsconf / 30-touchpad.conf
Created August 10, 2022 07:05 — forked from miguelmota/30-touchpad.conf
Arch linux enable tap to click on touchpad
Section "InputClass"
Identifier "touchpad"
Driver "libinput"
MatchIsTouchpad "on"
Option "Tapping" "on"
Option "TappingButtonMap" "lmr"
EndSection
@dev1lsconf
dev1lsconf / .tmux.conf
Created August 21, 2022 07:08 — forked from gblmarquez/.tmux.conf
.tmux.conf with fish as default shell
# Default termtype. If the rcfile sets $TERM, that overrides this value.
set -g default-terminal screen-256color
# support logging out and back in
set -g update-environment "SSH_ASKPASS SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION"
# pbcopy support
set-option -g default-command "reattach-to-user-namespace -l bash"
# vi mode
@dev1lsconf
dev1lsconf / arch-secure-install.md
Created August 31, 2022 16:43 — forked from umbernhard/arch-secure-install.md
Building a Secure Arch Linux Device

Building a Secure Arch Linux Device

Locking down a linux machine is getting easier by the day. Recent advancements in systemd-boot have enabled a host of features to help users ensure that their machines have not been tampered with. This guide provides a walkthrough of how to turn on many of these features during installation, as well as reasoning for why certain features help improve security.

The steps laid out below draw on a wide variety of existing resources, and in places I'll point to them rather than attempt to regurgitate full explanations of the various security components. The most significant one, which I highly encourage everyone to read, is Rod Smith's site about secure boot, which is the most comprehensive and cogent explanation of UEFI, boot managers and boot loaders, and secure boot. Another incredibly useful resources is Safeboot, which encapsulates many of the setup steps below in a Debian application.

@dev1lsconf
dev1lsconf / vmm_howto.md
Created September 10, 2022 02:35 — forked from tvlooy/vmm_howto.md
OpenBSD VMM howto

OpenBSD VMM howto

Setup

/etc/rc.conf.local

apmd_flags="-A"
dhcpd_flags=vether0
vmd_flags=
ntpd_flags="-s"