Skip to content

Instantly share code, notes, and snippets.

View RichLewis007's full-sized avatar
🎼
"Welcome to the era of man-machine duets. We’ll try to stay in key.” - R. Brooks

Rich Lewis RichLewis007

🎼
"Welcome to the era of man-machine duets. We’ll try to stay in key.” - R. Brooks
View GitHub Profile
@RichLewis007
RichLewis007 / Public-gists-from-RichLewis007.md
Last active October 15, 2025 13:13
Public gists from RichLewis007

All public gists from RichLewis007

Last updated: 09-11-2025 11:34 AM EDT

Total public gists: 10

TitleFilesFile NamesLangPublicCreatedUpdatedLinkCommentsForksStars
@erik1o6
erik1o6 / scan.sh
Created September 8, 2025 21:49
scan_vulnerable_packages
#!/usr/bin/env bash
set -euo pipefail
# Simple security scanner for vulnerable npm packages
# Checks all repos in an organization for specific package versions
#
# REQUIREMENTS FOR MACOS:
# -----------------------
# 1. Install GitHub CLI:
# brew install gh
@RichLewis007
RichLewis007 / Public-Gists-from-Rich-Lewis.md
Last active October 15, 2025 13:15
Public gists from Rich Lewis

Public Gists from Rich Lewis

Last updated: 2025-10-15 09:15 AM EDT

Total public gists: 10

Title Files Lang Public Updated Link
Public gists from RichLewis007 3 Markdown 2025-10-15 09:13 AM EDT open
Public gists from Rich Lewis 1 Markdown 2025-10-14 09:14 AM EDT open
@RichLewis007
RichLewis007 / DDPG-algorithm-continuous-control-with-deep-reinforcement-learning.py
Last active September 9, 2025 09:16 — forked from chiphuyen/ddpg.py
A clean implementation of DDPG algorithm - Continuous control with deep reinforcement learning (Lillicrap et al., 2015)
""" A clean implementation of DDPG algorithm
Continuous control with deep reinforcement learning (Lillicrap et al., 2015)
"""
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
import gym
import numpy as np
import tensorflow as tf
@RichLewis007
RichLewis007 / custom_react_hook_fetching_data_typescript.md
Last active September 9, 2025 09:15
Custom React Hook for fetching data using TypeScript.

Custom React Hook for fetching data - useFetch

TypeScript React

Custom React hook for fetching data using TypeScript.

Tags

react, typescript, hooks, mit-license

@xphir
xphir / userChrome.css
Created June 29, 2025 09:41
Firefox hide native vertical tab bar if Sidebery is enabled
/*
Credit: https://gist.github.com/abhinav/00c2053b750b72e2d43bcf1652b5fb66
This is a userChrome.css for Firefox
that hides the vertical tab sidebar (used by Sidebery),
but only if Sidebery is enabled and the window title contains the "sidebery" preface.
Instructions:
1. Enable userChrome.css support and vertical tabs in Firefox:
1.1 Go to about:config
1.2 Set `toolkit.legacyUserProfileCustomizations.stylesheets` to `true`
@madhurimarawat
madhurimarawat / GATE-CSE-DS-Resources.md
Last active October 15, 2025 18:00
A collection of the best free GATE preparation resources for CSE & Data Science. Contributions are welcome!

📌 GATE Resources – CSE & Data Science

I’ve compiled all the resources that helped me in my GATE preparation, and I hope they help you too! 🚀
These are high-quality, freely available study materials that cover notes, past papers, and courses.

window.k = (() => {
const p = [
['٩', '۶'],
['o', 'o'],
['☆*:.。.o', 'o.。.:*☆'],
['。゚', '゚。'],
['⸜', '⸝'],
['', 'ノ~ ♡'],
['╰', '╯♡'],
['┌∩┐', '┌∩┐'],
@githubfoam
githubfoam / tcpdump cheat sheet
Last active September 10, 2025 09:23
tcpdump cheat sheet
----------------------------------------------------------------------------------------------------
tcpdump -s 0 #capture entire etherner header and IP packet
tcpdump -ni tap55ec3c7f-91 ip6 #locate the ICMPv6 packets
tcpdump -s0 -n -i any -w /tmp/$(hostname)-smbtrace.pcap #if the SMB client or SMB server is a Unix host,Troubleshooting Server Message Block (SMB)
tcpdump -D #Print the list of the network interfaces available on the system and on which tcpdump can capture packet
tcpdump -X -vvv -n -i eth0
@jaytaylor
jaytaylor / ._python_programming_snippets.md
Last active September 10, 2025 09:36
Jay's Python programming skeleton snippets quick reference