Skip to content

Instantly share code, notes, and snippets.

View usmanakram232's full-sized avatar
:octocat:
Do not be afraid of devs - we don't eat people, at least usually we don't.

wolfi3 usmanakram232

:octocat:
Do not be afraid of devs - we don't eat people, at least usually we don't.
View GitHub Profile
@eloylp
eloylp / Fedora35Hibernation.md
Last active July 16, 2025 22:30
Fedora 35 hibernation with swapfile, only for hibernation and resume

Fedora35 hibernation

This guide helps to configure the hibernation on a default Fedora35 (also worked fine in previous Fedora34) installation by using a swap file. The Fedora35 installation comes with btrfs as default filesystem. Also, it comes with a zram swap device:

$ swapon
NAME       TYPE      SIZE USED PRIO
/dev/zram0 partition   8G   0B  100
@martelletto
martelletto / sshfido2.txt
Last active January 26, 2022 11:05
powershell/openssh-portable + FIDO2 build instructions
1. Building
1.1 Open Windows PowerShell.
1.2 Create a workspace folder:
> mkdir workspace
1.3 Set the WORKSPACE environment variable:
> $Env:WORKSPACE = 'C:\Users\pedro\workspace\'
@james-a-rob
james-a-rob / meditation-scriptable.js
Created December 8, 2020 18:40
JS script written to help meditation. Run using the Scriptable IOS device.
const meditaionVideoData = {
morning: ['https://www.youtube.com/watch?v=wnusFbC0E80', 'https://www.youtube.com/watch?v=L-ecrmgzdGc', 'https://www.youtube.com/watch?v=fH3N7GTFDkw', 'https://www.youtube.com/watch?v=9Uk_w-r7zv4', 'https://www.youtube.com/watch?v=3RZ8n86CmJg', 'https://www.youtube.com/watch?v=xmKhN63yCPw&vl=en', 'https://www.youtube.com/watch?v=GneKaqMdKyk', 'https://www.youtube.com/watch?v=WYP_W49o1vQ', 'https://www.youtube.com/watch?v=-ZfC7FWjscc'],
day:['https://www.youtube.com/watch?v=ZToicYcHIOU'],
evening: ['https://www.youtube.com/watch?v=4jqGrF3Zqtg', "https://m.youtube.com/watch?v=aEqlQvczMJQ", "https://m.youtube.com/watch?v=bG3AcN-XOrw", "https://m.youtube.com/watch?v=qy8PKKwbjM0"]}
const ui = new UITable();
const row = new UITableRow()
const buttonRow = new UITableRow();
const button= buttonRow.addButton("MEDITATE NOW")
@senderle
senderle / hand-modify-pdf.md
Created September 23, 2020 15:03
So you want to modify the text of a PDF by hand

So you want to modify the text of a PDF by hand...

If you, like me, resent every dollar spent on commercial PDF tools, you might want to know how to change the text content of a PDF without having to pay for Adobe Acrobat or another PDF tool. I didn't see an obvious open-source tool that lets you dig into PDF internals, but I did discover a few useful facts about how PDFs are structured that I think may prove useful to others (or myself) in the future. They are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.

@lotharschulz
lotharschulz / PublishingArtifactsWithAWSCodeartifactAndGitHubPackages.md
Last active August 15, 2024 16:12
How to publish software artifacts with AWS Codeartifact and GitHub Packages
@danieldietrich
danieldietrich / FizzBuzz.java
Last active July 31, 2020 22:14
FizzBuzz with Vavr using Either
import static io.vavr.API.*;
import io.vavr.collection.Iterator;
import io.vavr.control.Either;
public class FizzBuzz {
public static void main(String[] args) {
var fizzBuzz = Iterator.from(1).map(i ->
@ultrox
ultrox / resources.md
Last active June 30, 2023 22:54
Building Dactyl
@beenotung
beenotung / hackers-news.users.js
Last active May 2, 2020 22:05
user script to improve readability and night mode for hackers news
// ==UserScript==
// @name hackers-news
// @namespace http://tampermonkey.net/
// @version 0.1
// @description improve readability and night mode for hackers news
// @author You
// @match https://news.ycombinator.com/item?id=*
// @match https://news.ycombinator.com/*
// @grant none
// ==/UserScript==
@dhh
dhh / tracker_blocking.rb
Last active June 30, 2024 14:35
Current list of spy pixels named'n'shamed in HEY, as of April 23, 2020
module Entry::TrackerBlocking
extend ActiveSupport::Concern
included do
has_many :blocked_trackers
end
email_service_blockers = {
"ActiveCampaign" => /lt\.php(.*)?l\=open/,
"AWeber" => "openrate.aweber.com",