Skip to content

Instantly share code, notes, and snippets.

View Victor4X's full-sized avatar
🚀
Ascending

Victor4X

🚀
Ascending
View GitHub Profile
@Victor4X
Victor4X / Dockerfile
Last active May 30, 2023 19:39
Turtlebot3 Dockerfile Humble
# https://ros.org/reps/rep-2001.html#simulation
FROM osrf/ros:humble-simulation
# https://answers.ros.org/question/411908/running-humble-on-turtlebot3/
# Install colcon_cd
RUN apt update
RUN apt install -y python3-colcon-common-extensions
# Set up colcon_cd for future bash sessions
@Victor4X
Victor4X / writeup.md
Created July 18, 2022 20:40
ImaginaryCTF - pycorrectionalcenter - brunnerne

pycorrectionalcenter is a misc challenge about escaping a python jail.

The challenge included the following jail source code:

#!/usr/bin/env python3.9

trash = {}

def main():
@Victor4X
Victor4X / todoist-random-task-bookmarklet.txt
Created December 29, 2021 14:58
Random todoist task bookmarklet
javascript: items = [].concat(Array.from(document.getElementsByClassName('board_task__button')),Array.from(document.getElementsByClassName('task_list_item__content')));console.log(items);items[Math.floor(Math.random()*items.length)].click()
@Victor4X
Victor4X / guide.txt
Last active September 11, 2021 00:49
Stop Chrome Omnibar/URL from taking focus when creating a new tab
When creating a new tab in chromium browsers, the omnibar is usually highlighted.
This can be circumvented by changing your new tab page logic.
Change your new tab page to:
javascript: (() => { window.close(); window.open("<YOUR-SITE-HERE>"); })();
This is extremely convenient for the Vimium extension
@Victor4X
Victor4X / candykeys-bookmark.txt
Created June 16, 2021 21:29
Candykeys show only in stock items bookmarklet
For copy-pasting:
javascript: (function() { var xpath = "//span[text()='Out of stock']/../../../.. | //span[text()='Preorder']/../../../.."; var matchingElements = document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); var actualElement = matchingElements.iterateNext (); var toRemove = []; while (actualElement) { toRemove.push(actualElement); actualElement = matchingElements.iterateNext (); } toRemove.forEach(element => element.remove()); }());
Full code:
javascript: (function() {
var xpath = "//span[text()='Out of stock']/../../../.. | //span[text()='Preorder']/../../../..";
var matchingElements = document.evaluate(xpath, document, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null);
var actualElement = matchingElements.iterateNext ();
@Victor4X
Victor4X / gist:4c4baab3fa62d1e83d91818af75d7655
Created December 20, 2020 18:26
Steam EZ Activator bookmark
javascript:var raw_keys = prompt("Please insert your keys separated by commas","");var steam_keys = raw_keys.split(',');var testindex = 0;document.getElementById('register_btn').href="javascript:document.getElementById('product_key').value=steam_keys[testindex];testindex = testindex + 1;document.getElementById('accept_ssa').checked=true;RegisterProductKey();";undefined;