Skip to content

Instantly share code, notes, and snippets.

View 0x7067's full-sized avatar
💭
noice

Pedro Guimarães 0x7067

💭
noice
View GitHub Profile
@uwussimo
uwussimo / paru.conf
Last active March 1, 2024 02:34
Install paru AUR manager on Arch Linux
#
# $PARU_CONF
# /etc/paru.conf
# ~/.config/paru/paru.conf
#
# See the paru.conf(5) manpage for options
#
# GENERAL OPTIONS
#
@phlummox
phlummox / android-cl-cheatsheet.md
Last active July 19, 2023 10:29
Android development - command-line cheatsheet
@Martini024
Martini024 / VideoHelper.swift
Last active March 21, 2024 20:47
SwiftUI: Rewrite iOS Photos Video Scrubber
import Foundation
import AVKit
class VideoHelper {
static func getThumbnail(from player: AVPlayer, at time: CMTime) -> CGImage? {
do {
guard let currentItem = player.currentItem else { return nil }
let asset = currentItem.asset
let imgGenerator = AVAssetImageGenerator(asset: asset)
@FikriRNurhidayat
FikriRNurhidayat / Slow-Steam-Download-Speed-Linux.md
Last active April 12, 2024 22:30
Steam Download Speed Issue on Linux
@huntrar
huntrar / full-disk-encryption-arch-uefi.md
Last active April 23, 2024 13:38
Arch Linux Full-Disk Encryption Installation Guide [Encrypted Boot, UEFI, NVMe, Evil Maid]

Arch Linux Full-Disk Encryption Installation Guide

This guide provides instructions for an Arch Linux installation featuring full-disk encryption via LVM on LUKS and an encrypted boot partition (GRUB) for UEFI systems.

Following the main installation are further instructions to harden against Evil Maid attacks via UEFI Secure Boot custom key enrollment and self-signed kernel and bootloader.

Preface

You will find most of this information pulled from the Arch Wiki and other resources linked thereof.

Note: The system was installed on an NVMe SSD, substitute /dev/nvme0nX with /dev/sdX or your device as needed.

@Pulimet
Pulimet / AdbCommands
Last active April 23, 2024 08:28
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@brunoarmanelli
brunoarmanelli / tempo_relativo.php
Created September 1, 2017 13:12
Tempo Relativo em PHP
<?php
function temporelativo($ts) {
if(!ctype_digit($ts)) {
$ts = strtotime($ts);
}
$diff = time() - $ts;
if($diff == 0) {
return 'agora';
} elseif($diff > 0) {
$day_diff = floor($diff / 86400);
# Usage: ./dns_check.py <list_of_domain_names.txt>
import dns.resolver
import requests
import re
import json
import sys
resolver = dns.resolver.Resolver()
resolver.timeout = 5
resolver.lifetime = 5
@suprie
suprie / ViewController.swift
Last active May 6, 2020 19:51
Null Object Pattern in Swift
//
// ViewController.swift
// NullObject
//
// Created by Suprie on 1/18/16.
// Copyright © 2016 Suprie. All rights reserved.
//
import UIKit
@bradp
bradp / setup.sh
Last active April 19, 2024 05:21
New Mac Setup Script
echo "Creating an SSH key for you..."
ssh-keygen -t rsa
echo "Please add this public key to Github \n"
echo "https://github.com/account/ssh \n"
read -p "Press [Enter] key after this..."
echo "Installing xcode-stuff"
xcode-select --install