Skip to content

Instantly share code, notes, and snippets.

@antoniomika
antoniomika / syncssh
Created February 16, 2022 20:30
syncssh
#!/bin/bash
starttmux() {
if [ -z "$HOSTS" ]; then
echo -n "Please provide of list of hosts separated by spaces [ENTER]: "
read HOSTS
fi
local hosts=( $HOSTS )
.asciinema-player-wrapper {
position: relative;
text-align: center;
outline: none;
}
.asciinema-player-wrapper .title-bar {
display: none;
top: -78px;
transition: top 0.15s linear;
position: absolute;
@antoniomika
antoniomika / Code.gs
Last active January 2, 2018 20:32
Google Apps Scripts Email Scheduler
function initialize() {
var triggers = ScriptApp.getProjectTriggers();
triggers.forEach(function(trigger) {
if (trigger.getHandlerFunction() == "sendMails" || trigger.getHandlerFunction() == "updateSheet") {
ScriptApp.deleteTrigger(trigger);
}
});
var sheet = SpreadsheetApp.getActiveSheet();
@antoniomika
antoniomika / index.html
Created November 2, 2017 04:07
SeeShell
<html>
<head>
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/xterm/2.9.2/xterm.min.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/xterm/2.9.2/addons/fullscreen/fullscreen.min.css" />
<link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.11.2/jquery-ui.min.js"></script>
{
"openapi": "3.0.0",
"info": {
"description": "The Unchained MHacks API",
"version": "0.0.1",
"title": "MHacks",
"termsOfService": "https://mhacks.org",
"contact": {
"email": "me@antoniomika.me"
},
@antoniomika
antoniomika / getUser.php
Created March 11, 2016 21:01
Simple Vulnerabilities for Michigan Hackers CTF
<?php
$username = $_GET['username'];
$db = new mysqli("example.com", "user", "password", "database");
$query = 'SELECT * FROM users where name = ' . $username . ';';
$result = $mysqli->query($query);
echo json_encode($result->fetchAll());
?>
@antoniomika
antoniomika / keybase.md
Created March 15, 2015 03:22
Keybase Proof

Keybase proof

I hereby claim:

  • I am antoniomika on github.
  • I am antoniomika (https://keybase.io/antoniomika) on keybase.
  • I have a public key whose fingerprint is 402D 3B53 93C3 8E13 C0BF DB3E 552C 34F3 7D58 191D

To claim this, I am signing this object: