Skip to content

Instantly share code, notes, and snippets.

Roman Bauer romasan

Block or report user

Report or block romasan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View peakBounce.js
const peakBounce = (interval, count) => {
let iCount = 0;
let stack = [];
setInterval(() => {
const part = stack.splice(0, count);
part.forEach(fn => fn())
iCount = part.length;
}, interval);
return (fn, ...a) => {
if (typeof fn !== 'function') {return}
View google-up-down.js
const barHeight = 72;
const list = document.querySelectorAll('a h3');
let index = 0;
list[index].classList.add('selected');
document.body.addEventListener('keydown', e => {
if (e.keyCode === 38 || e.keyCode === 40) { e.preventDefault(); }
});
View remove-kinopoisk-banner.js
f = () => {
let e = document.querySelector('.shadow');
e = e && e.previousSibling;
e = e && e.previousSibling;
e = e && e.innerText;
e = e && e.split(/[\s\{]/ig).filter(e => e).shift();
e = e && document.querySelector(e);
e && e.remove();
e = document.querySelector('[data-metrika="film_card"]');
View ps_mem.py
#!/usr/bin/env python
# Try to determine how much RAM is currently being used per program.
# Note per _program_, not per process. So for example this script
# will report RAM used by all httpd process together. In detail it reports:
# sum(private RAM for program processes) + sum(Shared RAM for program processes)
# The shared RAM is problematic to calculate, and this script automatically
# selects the most accurate method available for your kernel.
# Licence: LGPLv2
You can’t perform that action at this time.