Skip to content

Instantly share code, notes, and snippets.

View capsulecorplab's full-sized avatar

Sean Marquez capsulecorplab

View GitHub Profile
@tbrunz
tbrunz / Pharo-Getting-Started.txt
Last active December 18, 2022 23:10
Tips on getting started with Pharo Smalltalk
Tips on getting started with Pharo Smalltalk:
The Pharo Playground & Transcript
The Pharo IDE (specifically, a Playground plus the Transcript) is very useful
for creating and executing "code snippets" or even entire scripts in Pharo.
It's very easy to get a Pharo IDE installed and running by just downloading and
installing Pharo Launcher from https://pharo.org/, cloning a template image,
then launching the image.
@tbrunz
tbrunz / Pharo-ProfStef-Notes.txt
Last active December 19, 2022 01:08
Notes on running ProfStef, the "quick-start" tutorial for Pharo Smalltalk
Notes on running ProfStef, the "quick-start" tutorial for Pharo Smalltalk:
Where to find ProfStef
'ProfStef' is a 15-minute introduction to Pharo that's built into every Pharo
image template. ProfStef will guide you through a "hands-on" tutorial of the
entire Pharo syntax in 29 steps, using the Pharo IDE. To run it, you need to
open a Pharo image; start by downloading and installing the Pharo Launcher app
for your host platform from https://pharo.org, then clone any template to make
Learn Git by editing the Write The Docs website
===============================================
Identify the page you want to edit
----------------------------------
1. Find an `existing issue`_, or a page you want to improve.
2. In the repo UI, find the file that corresponds to the page. For
example:
https://www.writethedocs.org/documentarians/ is produced by
@LongClipeus
LongClipeus / InstallJdk.sh
Last active March 25, 2023 19:00
Install jdk from tar.gz file in Ubuntu
sudo su
#create jvm directory
mkdir /usr/lib/jvm
#uncompress, change to your file name
tar -zxf jdk-8u211-linux-x64.tar.gz -C /usr/lib/jvm
#check if files are there
#ls /usr/lib/jvm

Recon and Attack Vectors from My Logs

This document contains excerpts from my web server logs collected over a period of 7 years that shows various kinds of recon and attack vectors.

There were a total of 37.2 million lines of logs out of which 1.1 million unique HTTP requests (Method + URI) were found.

$ sed 's/^.* - - \[.*\] "\(.*\) HTTP\/.*" .*/\1/' access.log > requests.txt
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver import ActionChains
from time import sleep
driver = webdriver.Chrome()
driver.get("https://ytcutter.com")
elem = driver.find_element_by_name("url")
elem.send_keys("https://www.youtube.com/watch?v=eyU3bRy2x44")
elem.send_keys(Keys.RETURN)
elem = driver.find_element_by_name("url")
@gmolveau
gmolveau / firefox_dark_background.md
Last active June 9, 2026 18:52
Firefox dark background / theme for new tab and loading screen

Firefox Dark Background

  • How to change the background on Firefox to a dark one on new tab / loading screen ?

Procedure

  • Type about:config in the URL bar
  • Search toolkit.legacyUserProfileCustomizations.stylesheets and double-click the field to set it to true
  • Type about:support in the URL bar
  • Look for Profile folder field and click on the open button next to it.
@jtpaasch
jtpaasch / Qemu-quickstart.md
Last active November 5, 2025 15:31
A quick cheatsheet/tutorial for using QEMU (on macOS, but should work on Linux too).
@omgreenfield
omgreenfield / gtd.md
Last active May 8, 2026 15:30
Getting things done (GTD)

Getting Things Done (GTD)

Recently, I started listening to the David Allen's audio book, "Getting Things Done: The Art of Stress-Free Productivity". In only a few chapters, this audio book has inspired me to completely revamp how I "get things done".

While I haven't heard the entire GTD system or even fully grasped everything I've heard, here are a few concepts that have already helped me become more productive at work and helped my family become more productive at home.

Get it out of your head

TLDR: always put actions, ideas, and reminders in a place that gets them out of your head but always in reach.

@rnwolf
rnwolf / spacemacs-cheshe.md
Last active June 26, 2019 05:54 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w d - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers