Skip to content

Instantly share code, notes, and snippets.

@draxaris1010
draxaris1010 / browser
Created May 4, 2024 08:15 — forked from defunkt/browser
pipe html to a browser
#!/bin/sh -e
#
# Usage: browser
# pipe html to a browser
# e.g.
# $ echo '<h1>hi mom!</h1>' | browser
# $ ron -5 man/rip.5.ron | browser
if [ -t 0 ]; then
if [ -n "$1" ]; then
@draxaris1010
draxaris1010 / handy_commands.md
Last active August 5, 2020 10:48
Handy commands.

Linux

Minecraft

anti AFK:while true; do xdotool key --window `xdotool search --name Minecraft` `(((0 + $RANDOM % 10) > 5)) && (echo "z";true) || echo "s"`; sleep $(((1 + $RANDOM % 10)/10)); done

@draxaris1010
draxaris1010 / pop.js
Created July 7, 2020 16:02 — forked from DraxAris/pop.js
Pop-up window in Js & HTML to use Js console in phone
function pop(){
var input = window.prompt("enter a command","");
var output = eval(input);
eval(input);
console.log(output);
alert(output);
};
window.onload = pop();
@draxaris1010
draxaris1010 / platformer.lua
Last active August 11, 2020 11:25
This is a platformer game designed for the TIC-80 made with version 0.80.1195-dev.
-- ###############################################
-- # This project is now available on #
-- # https://github.com/draxaris1010/platformer/ #
-- ###############################################
-- title: My platformer
-- author: draxaris1010
-- desc: This is a simple platformer game.
-- script: lua
@draxaris1010
draxaris1010 / bash_prank.sh
Created July 8, 2019 11:06
this is a funny prank for users with bash on linux \n original script: https://github.com/Eckankar/prank-script/blob/master/prank.sh
wget https://raw.githubusercontent.com/Eckankar/prank-script/master/prank.sh && chmod +x prank.sh && ./prank.sh
@draxaris1010
draxaris1010 / getAllVar.js
Last active April 28, 2019 17:11
This logs every JS variable to the console. You can specify the object by replacing "this".
variables = undefined;
all = undefined;
for (var name in this) {
variables += name + "', '";
};
variables = "['" + variables + "']";
all = eval(variables);
all.pop();
all.sort();
console.log(all);
@draxaris1010
draxaris1010 / jScratchx.js
Last active May 31, 2019 15:14
This is an extension that allows you to use JavaScript in Scratchx, if you want to use this use the following link https://scratchx.org/?url=https://gistcdn.githack.com/draxaris1010/cf737202b1ab4e1e58a80ca8b4f28dae/raw/9bdc82e8dd683ef61f703f6f8d868f1fbffa36bc/jScratchx.js
(function(ext) {
var jsVar = {}
ext._shutdown = function() {
//alert("Thanks for using my extension!");
};
ext._getStatus = function() {
return {status: 2, msg: 'Ready'};
};
ext.console_log = function(message) {
console.log(message);
@draxaris1010
draxaris1010 / README.md
Last active February 24, 2019 16:16
This is a simple html file where you can type really big text you can even type text when you do not have developer tools.

Big text

This is a html file where you can type text.

open now