Skip to content

Instantly share code, notes, and snippets.

View academo's full-sized avatar

Esteban Beltran academo

  • Grafana Labs
  • Amsterdam, The Netherlands
View GitHub Profile
@academo
academo / ww
Last active December 26, 2023 10:46
#!/bin/bash
# Usage: ww -f "window class filter" -c "run if not found"
# Usage: ww -fa "window title filter" -c "run if not found"
## Find and contribute to a more updated version https://github.com/academo/ww-run-raise
POSITIONAL=()
while [[ $# -gt 0 ]]; do
key="$1"
#!/bin/sh
log=/var/log/cpu_fix.log
printf "Log File - " >$log
while :; do
date >>$log
PLUGGED=$(acpi -a | grep on-line)
if [ ! -z "$PLUGGED" ]; then
echo setting values >>$log
# MSR
# PL1
@academo
academo / symlinks.py
Created January 19, 2022 16:19
creates symlinks based on a dotfiles structure
[security]
frontend_sandbox_disable_for_plugins =
[feature_toggles]
pluginsFrontendSandbox = true
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Direct vs proxies</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script>
<script src="./suite.js"></script>
</head>
<body>
<h1>Open the console to view the results</h1>
alert("Injected from a third party scrit");
{"datapoints":[{"time":"2024-06-12T11:18:53.374590617Z","value":0.9498089881247821},{"time":"2024-06-12T11:18:52.374591478Z","value":0.9138329577633235},{"time":"2024-06-12T11:18:51.374591633Z","value":0.8687262209715413},{"time":"2024-06-12T11:18:50.374591763Z","value":0.8149394599763982},{"time":"2024-06-12T11:18:49.374591892Z","value":0.7530100942502059},{"time":"2024-06-12T11:18:48.374592021Z","value":0.683556901470472},{"time":"2024-06-12T11:18:47.37459217Z","value":0.6072738112208964},{"time":"2024-06-12T11:18:46.3745923Z","value":0.5249230642629885},{"time":"2024-06-12T11:18:45.374592426Z","value":0.43732746018817487},{"time":"2024-06-12T11:18:44.37459255Z","value":0.34536222521286597},{"time":"2024-06-12T11:18:43.374592673Z","value":0.24994624545582167},{"time":"2024-06-12T11:18:42.374592793Z","value":0.15203285627700616},{"time":"2024-06-12T11:18:41.374592913Z","value":0.05260043409097508},{"time":"2024-06-12T11:18:40.374593034Z","value":-0.047357554182501066},{"time":"2024-06-12T11:18:39.37459317Z",