Skip to content

Instantly share code, notes, and snippets.

View kellyjoe256's full-sized avatar

Wafukho Kelly Joseph kellyjoe256

View GitHub Profile
@juanfdovilla
juanfdovilla / gist:5c4c9191100d2ac699f37552c03520b5
Created February 3, 2025 22:56
rbash – A Restricted Bash Shell Explained with Practical Examples
rbash – A Restricted Bash Shell Explained with Practical Examples
Ravi SaiveLast Updated: October 25, 2024 Read Time: 3 minsCategoriesBash Shell 11 Comments
In the world of Linux and Unix-like systems, security is crucial, especially when multiple users share a system. One way to enhance security is by using restricted shells. One such shell is rbash, or Restricted Bash.
This article will explain what rbash is, how it differs from the regular Bash shell, and provide practical examples of its usage.
What is a Shell?
Before diving into rbash, let’s clarify what a shell is.
@zhensongren
zhensongren / uninstall_python3.MD
Last active February 27, 2025 03:38
How to uninstall python3 from Ubuntu

To list all python versions in default locations

ls /usr/bin/python*

To remove just python3 package

sudo apt-get remove python3.5

plus it's dependent packages

sudo apt-get remove --auto-remove python3.5

plus configuration and/or data files of python3

sudo apt-get purge python3.5

@mer0mingian
mer0mingian / Awesome_git_cheatsheet.md
Last active September 7, 2024 09:18 — forked from karenyyng/Git_mergetool_tutorial_with_Vim.md
How to use `git mergetool` to resolve conflicts
@magnetikonline
magnetikonline / README.md
Last active November 24, 2024 15:55
Bash getopt long options with values usage example.

Bash getopt long options with values usage example

#!/bin/bash -e

ARGUMENT_LIST=(
  "arg-one"
  "arg-two"
  "arg-three"
)
@cferdinandi
cferdinandi / terminal-cheat-sheet.txt
Last active October 11, 2025 01:18
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help
@ryansechrest
ryansechrest / php-style-guide.md
Last active October 20, 2025 07:37
PHP style guide with coding standards and best practices.

PHP Style Guide

All rules and guidelines in this document apply to PHP files unless otherwise noted. References to PHP/HTML files can be interpreted as files that primarily contain HTML, but use PHP for templating purposes.

The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.

Most sections are broken up into two parts:

  1. Overview of all rules with a quick example
  2. Each rule called out with examples of do's and don'ts
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">