Skip to content

Instantly share code, notes, and snippets.

View deadflowers's full-sized avatar
💭
Meh.

deadflowers deadflowers

💭
Meh.
View GitHub Profile
@deadflowers
deadflowers / crosh-help_advanced.txt
Created December 5, 2024 15:44
Crosh commands 2024
help [command]
Display general help, or details for a specific command.
help_advanced
Display the help for more advanced commands, mainly used for debugging.
ping [-4] [-6] [-c count] [-i interval] [-n] [-s packetsize] [-W waittime] <destination>
Send ICMP ECHO_REQUEST packets to a network host. If <destination> is "gw"
then the next hop gateway for the default route is used.
Default is to use IPv4 [-4] rather than IPv6 [-6] addresses.
@deadflowers
deadflowers / README.md
Last active December 5, 2024 15:47
Mount Your Google Drive

Mount Your Google Drive To Your Local or Remote Machine

If you want to mount your Google Drive as a folder to your current machine the steps for Ubuntu are as follows.

updated includes the newer method of using rclone

but it's not a finished guide. rclone steps are infinitely more complicated than what's listed here if seeking to mount with r/rw drive access

Install rclone:

@deadflowers
deadflowers / README.md
Last active December 14, 2024 15:02
Server Security: log2ban

log2ban

Log2ban is a collection of tools for banning people based on reviewing access and error logs activity.

about

Written as just a random afternoon thought as it was needed on the spot.

But...it's a good excuse to move in the direction of going through and organize update and consolidate scattered network security scripts processes over the years. The core of my server hardening method was born back in 2014. Little knowledge or experience, sudden loss of a server IT team and a fleet of servers to build and manage with sensitive projects. Came up with a model on the spot that worked. Would've loved to put it down as a guide in a publicly consumable guide and kit, just wasn't time for that then.

@deadflowers
deadflowers / README.md
Last active December 23, 2024 02:00
replaceFonts Bookmarklet

Replace Fonts Bookmarklet

What it is

replaceFonts.js bookmarklet is a javascript tool that basically you inject into a page via URL address bar or as a Bookmark ( javascript:[thiscode] ) or enter in your dev tools console. On execution it will prompt for the name of a font that can be found on Google Fonts and once being give one, it will for the page of whatever website you are currently on, identify text elements and replace their fontFamily style property with the requested Google Font.

Why:

I don't know just because. But also, why not?

@deadflowers
deadflowers / README.md
Last active November 27, 2024 05:02
Making a File Uploader with Dropzone JS

File Uploader Project 2024

I used Dropzone JS to make a file uploader area on one of my websites. PHP code, guide, troubleshooting tips, will be outlined on my blog!


[ray kooyenga](https://raykooyenga.com)
@deadflowers
deadflowers / linux-tools.md
Last active November 4, 2024 09:21
Linux networking tools

Essential Console-Based Linux Tools for Monitoring Connections and Security

Monitoring your Linux system’s network activity and user sessions is crucial, especially if you want to detect unauthorized access or optimize performance. From a perspective of console based such as SSH into your servers, what tools are available for monitoring your system? I've been an htop fan for ages and like finding similar tools that walk the line between a console and GUI for a quick overview of connections, bandwidth usage, and user activity. Here’s a list of some of the best console-based tools that provide a user-friendly layout display while helping you monitor potential security threats.

1. nload

Description: nload is a real-time network traffic monitor that displays incoming and outgoing traffic separately.

  • Usage: nload
  • Features: Provides a visual representation of network usage, including bandwidth statistics for each network interface.
@deadflowers
deadflowers / readme.md
Last active October 31, 2024 00:27
grub test

grub rescue> ls grub rescue> set boot=(hd0,msdos*) grub rescue> set prefix=(hd0,msdos*)/boot/grub grub rescue> insmod normal grub rescue> normal

insmod ext2 insmod all_video

prefix should be set to (hd0,gpt1)/grub

@deadflowers
deadflowers / ActiveYouTubeURLFormats.txt
Last active October 30, 2024 06:36 — forked from rodrigoborgesdeoliveira/ActiveYouTubeURLFormats.txt
Example of the YouTube videos URL formats
http://www.youtube.com/watch?v=-wtIMTCHWuI
http://youtube.com/watch?v=-wtIMTCHWuI
http://m.youtube.com/watch?v=-wtIMTCHWuI
https://www.youtube.com/watch?v=lalOy8Mbfdc
https://youtube.com/watch?v=lalOy8Mbfdc
https://m.youtube.com/watch?v=lalOy8Mbfdc
http://www.youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
http://youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
http://m.youtube.com/watch?v=yZv2daTWRZU&feature=em-uploademail
@deadflowers
deadflowers / README.md
Last active October 24, 2024 06:24
ChromeOS Keyboard Shortcuts and Special URLs

ChromeOS keyboard shortcuts

shortcut editor with complete list

function shortcut
Show or hide Developer Tools console ctrl shift j
Show or hide Developer Tools inspector ctrl shift c
View page source ctrl u
Open file in Chrome browser ctrl o
@deadflowers
deadflowers / README.md
Last active November 2, 2024 21:50
Bookmarklet - Show Page Dependencies

Bookmarklet Show Page Dependencies

For a currently loaded page, show the script and style references as full path as a table overlaid above the page.

Features include the ability to launch any of the .js or .css hrefs in a separate window as plain text, or copy the script or link tag element to clipboard.

For site inspection, debugging, hacking. Can be useful in dev tools console or saved as a bookmarklet.

Also has a feature to export the findings to text file.