Skip to content

Instantly share code, notes, and snippets.

View supechicken's full-sized avatar

SupeChicken666 supechicken

View GitHub Profile
@supechicken
supechicken / check_update_gnu.rb
Created December 17, 2021 16:46
Check update for all GNU packages in Chromebrew
# -*- encoding: UTF-8 -*-
$LOAD_PATH << '/usr/local/lib/crew/lib/'
require 'concurrent'
require 'fileutils'
require 'const'
require 'color'
gnu_pkg = `grep -l 'source_url.*\\.gnu\\.' /usr/local/lib/crew/packages/*.rb`.lines(chomp: true)
git_pkg = `grep -l "source_url.*\\.git['\\"]$" /usr/local/lib/crew/packages/*.rb`.lines(chomp: true)
// loop
setInterval(()=>{
// simulate keyboard press
document.dispatchEvent(new KeyboardEvent('keydown',{'key':'a'}));
}, 1)
// that's it