Skip to content

Instantly share code, notes, and snippets.

The Consciousness Has Shifted...The Awakening Has Begun

Rafal W. kenorb

The Consciousness Has Shifted...The Awakening Has Begun
View GitHub Profile
kenorb /
Created May 18, 2020
Google Colab Qbitt example
#Generate root password
import random, string
password = ''.join(random.choice(string.ascii_letters + string.digits) for i in range(20))
#Download ngrok
! wget -q -c -nc
! unzip -qq -n
#Setup sshd
kenorb / reddit-click.js
Last active Jan 17, 2020
How to click on Reddit 'more replies' programatically?
View reddit-click.js
document.getElementsByTagName("head")[0].innerHTML += '<script type="text/javascript" src="//"><\/script>';
setInterval(function() { $("div[id*='moreComments'] p").click(); }, 1000);
#!/usr/bin/env bash
#/ Fetch Ansible vault password from GNOME keyring
#/ How to configure:
#/ Set name of the VAULT_ID for the current Git repo: git config --local ansible.vault VAULT_ID
#/ Set password with GNOME keyring: keyring set ansible VAULT_ID
#/ Set environment variable ANSIBLE_VAULT_PASSWORD_FILE to the location of this file
set -eu
kenorb / lvm.txt
Created Apr 25, 2019
Volume group "ubuntu-vg" not found. Cannot process volume group ubuntu-vg. No key available with this passphrase.
View lvm.txt
grep use_lvmetad /etc/lvm/lvm/conf
sed -i'' "s/use_lvmetad = 1/use_lvmetad = 0/" /etc/lvm/lvm.conf
nvme1n1p3_crypt (NTFS?)
/dev/nvme0n1p3 (crypto_LUKS)
dumpe2fs /dev/sda1 # Change it to the right one.
WARNING: Failed to connect to lvmetad. Falling back to device scanning.
Volume group "ubuntu-vg" not found.
Cannot process volume group ubuntu-vg.
kenorb / spinner.gif
Created Apr 25, 2019
Spinner (data:image/gif;base64)
View spinner.gif
kenorb / ISFP.txt
Created Apr 25, 2019
ISFP (Composers temperament)
View ISFP.txt
ISFP (Composers temperament)
> Composers are tactical entertainers, concrete in speech and utilitarian in action. In social situations, they are informative and attentive. Grounded in the here and now, Composers are extremely sensitive to their environment. They are attuned to the perceptions of their five senses even more than other sensing types are. They notice any little variations in their physical world or in the people around them. They are very sensitive to balance and understand well what does or does not fit, whether in a work of art or any other aspect of their lives. Composers are sensitive and sympathetic in the face of human suffering.
kenorb / click.js
Last active Apr 7, 2019
How to click on Facebook 'See more' programatically?
View click.js
setInterval(function() { document.getElementsByClassName("uiMorePagerPrimary")[0].click(); }, 30000);
kenorb / find_id_in_url.sql
Last active Apr 5, 2019
ELB: Most consuming URLs
View find_id_in_url.sql
CREATE OR REPLACE VIEW url_53847374125428073109782528 AS
"sum"("backend_processing_time") "total_ms"
, "url"
WHERE (("split_part"("request_timestamp", 'T', 1) LIKE '2019-01-%') AND ("regexp_extract"("url", 'sessionId=(.*)', 1) = '53847374125428073109782528'))
GROUP BY "url"
ORDER BY "total_ms" DESC
kenorb / rds_deny_backups_trigger.sql
Created Apr 4, 2019
Prevent backup database or backup log
View rds_deny_backups_trigger.sql
CREATE TRIGGER [rds_deny_backups_trigger] ON DATABASE WITH EXECUTE AS 'dbo' FOR
DECLARE @data xml;
DECLARE @user sysname;
DECLARE @role sysname;
DECLARE @type sysname;
kenorb / kern.log
Created Mar 27, 2019
NVIDIA crash (GPU has fallen off the bus)
View kern.log
This file has been truncated, but you can view the full file.
Mar 26 12:32:49 Ubuntu-PC kernel: snd_hda_codec_hdmi hdaudioC3D0: HDMI: invalid ELD buf size -1
Mar 26 12:33:05 Ubuntu-PC kernel: azx_single_wait_for_response: 56 callbacks suppressed
Mar 26 12:33:05 Ubuntu-PC kernel: snd_hda_codec_hdmi hdaudioC3D0: out of range cmd 0:4:707:ffffffbf
Mar 26 12:33:30 Ubuntu-PC kernel: sched: RT throttling activated
Mar 26 12:33:30 Ubuntu-PC kernel: NVRM: GPU at PCI:0000:65:00: GPU-cd57429b-a4d9-917d-72d6-1d9b6c4f6a3a
Mar 26 12:33:30 Ubuntu-PC kernel: NVRM: GPU Board Serial Number:
Mar 26 12:33:30 Ubuntu-PC kernel: NVRM: Xid (PCI:0000:65:00): 79, GPU has fallen off the bus.
Mar 26 12:33:30 Ubuntu-PC kernel: NVRM: GPU at 0000:65:00.0 has fallen off the bus.
Mar 26 12:33:30 Ubuntu-PC kernel: NVRM: GPU is on Board .
You can’t perform that action at this time.