Skip to content

Instantly share code, notes, and snippets.

View rlindooren's full-sized avatar

Ricardo Lindooren rlindooren

  • The Netherlands
View GitHub Profile
@rgreenjr
rgreenjr / postgres_queries_and_commands.sql
Last active July 25, 2024 08:07
Useful PostgreSQL Queries and Commands
-- show running queries (pre 9.2)
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query
FROM pg_stat_activity
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%'
ORDER BY query_start desc;
-- show running queries (9.2)
SELECT pid, age(clock_timestamp(), query_start), usename, query
FROM pg_stat_activity
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%'
@paulovera
paulovera / sublime-mac.textile
Last active April 12, 2022 10:42 — forked from lucasfais/gist:1207002
SUBLIME TEXT MAC- Keyboard's Shortcuts Cheat Sheet

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@foxicode
foxicode / String+sha1.kt
Created March 10, 2020 18:45
Kotlin String sha1 extension
import java.security.MessageDigest
val String.sha1: String
get() {
val bytes = MessageDigest.getInstance("SHA-1").digest(this.toByteArray())
return bytes.joinToString("") {
"%02x".format(it)
}
}
@baatochan
baatochan / README.md
Last active July 3, 2024 08:52
How to remove a custom UEFI/BIOS logo on HP laptops

How to remove a custom UEFI/BIOS logo on HP laptops

Tested on HP Elitebook 840 G3. You may also use this tool to change the logo to your own custom one.

Why am I writing this gist?

Recently I acquired an used HP Elitebook 840 G3. Everything was fine with it, but it had a custom UEFI logo when starting the OS - it was branded by the company that owned this laptop before.

As it became my personal laptop I didn't want it to be branded by them and I tried to find a way to restore the original HP/Windows logo (it had the custom logo during POST and during the OS startup as well).