Skip to content

Instantly share code, notes, and snippets.

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active January 24, 2025 04:50
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@sohnryang
sohnryang / vivado-on-m1-mac.md
Last active January 24, 2025 04:49
Vivado on ARM64 Mac using Rosetta 2

Running Vivado on ARM64 Mac using Rosetta 2

macOS Ventura supports running x86-64 binaries on Linux VMs. However, even with Rosetta installing Vivado is not a simple one-click process. This guide covers some workarounds and tricks to get Vivado up and running on ARM64 Mac.

  1. Make sure you're running macOS Ventura or higher.
  2. Install UTM and create a Debian VM with Rosetta according to their guide.
    • Other distributions should also work, but commands will be different.
  3. Install x86-64 version of java and libtinfo. Vivado depends on them.
@tomdohnal
tomdohnal / launch.json
Created September 15, 2024 18:27
Debugging Next.js in VSCode (with Webpack) – launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Next.js: debug server-side",
"port": 9230,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
@markusand
markusand / Brewfile
Last active January 24, 2025 04:45
macOS auto setup
tap "homebrew/bundle"
# BASIC SOFTWARE -->
brew "mas"
# mas "Slack", id: 803453959
mas "The Unarchiver", id: 425424353
mas "Spark", id: 1176895641
mas "Dropover", id: 1355679052
mas "Bitwarden", id: 1352778147
cask "rectangle"
@ericmjl
ericmjl / ds-project-organization.md
Last active January 24, 2025 04:45
How to organize your Python data science project

UPDATE: I have baked the ideas in this file inside a Python CLI tool called pyds-cli. Please find it here: https://github.com/ericmjl/pyds-cli

How to organize your Python data science project

Having done a number of data projects over the years, and having seen a number of them up on GitHub, I've come to see that there's a wide range in terms of how "readable" a project is. I'd like to share some practices that I have come to adopt in my projects, which I hope will bring some organization to your projects.

Disclaimer: I'm hoping nobody takes this to be "the definitive guide" to organizing a data project; rather, I hope you, the reader, find useful tips that you can adapt to your own projects.

Disclaimer 2: What I’m writing below is primarily geared towards Python language users. Some ideas may be transferable to other languages; others may not be so. Please feel free to remix whatever you see here!

@vegard
vegard / kernel-dev.md
Last active January 24, 2025 04:45
Getting started with Linux kernel development

Getting started with Linux kernel development

Prerequisites

The Linux kernel is written in C, so you should have at least a basic understanding of C before diving into kernel work. You don't need expert level C knowledge, since you can always pick some things up underway, but it certainly helps to know the language and to have written some userspace C programs already.

It will also help to be a Linux user. If you have never used Linux before, it's probably a good idea to download a distro and get comfortable with it before you start doing kernel work.

Lastly, knowing git is not actually required, but can really help you (since you can dig through changelogs and search for information you'll need). At a minimum you should probably be able to clone the git repository to a local directory.

@ctrl-freak
ctrl-freak / android-adb-pull-apk.md
Last active January 24, 2025 04:43
Retrieve APK from Non-Rooted Android Device through ADB

https://stackoverflow.com/a/18003462/348146

None of these suggestions worked for me, because Android was appending a sequence number to the package name to produce the final APK file name (this may vary with the version of Android OS). The following sequence of commands is what worked for me on a non-rooted device:

  1. Determine the package name of the app, e.g. com.example.someapp. Skip this step if you already know the package name.

    adb shell pm list packages

    Look through the list of package names and try to find a match between the app in question and the package name. This is usually easy, but note that the package name can be completely unrelated to the app name. If you can't recognize the app from the list of package names, try finding the app in Google Play using a browser. The URL for an app in Google Play contains the package name.

@jhoff
jhoff / README.md
Last active January 24, 2025 04:42
Bash-only Laravel Artisan tab auto-complete

If you are an Oh-my-zsh user, see the Laravel 5 plugin

For the rest of us Bash users, all of the Laravel Artisan autocomplete solutions out there require installing a composer package to get a list of artisan commands. Turns out this isn't really necessary. Simply add the provided code in ~/.bash_profile ( or similarly sourced file ) and you'll get artisan command tab completes on any project on your system.

_artisan()
{
	COMP_WORDBREAKS=${COMP_WORDBREAKS//:}
	COMMANDS=`php artisan --raw --no-ansi list | sed "s/[[:space:]].*//g"`
	COMPREPLY=(`compgen -W "$COMMANDS" -- "${COMP_WORDS[COMP_CWORD]}"`)
@Lemon-King
Lemon-King / GameUserSettings_Async.ini
Last active January 24, 2025 04:37
Ashes of Creation Custom User Settings
Just Performance
Adding the following to your GameUserSettings.ini under [/Script/GameSystemsPlugin.IntrepidGameUserSettings].
The GameUserSettings.ini can be found under %localappdata%\AOC\Saved\Config\WindowsClient
async settings are the secret sauce for performance with UE5.
r.RayTracing.AsyncBuild=1
r.TSR.AsyncCompute=3
r.LumenScene.Lighting.AsyncCompute=1
@aliemo
aliemo / xilinx.ise.install.manual.md
Last active January 24, 2025 04:37
Xilinx ISE-14.7 Installation Manual on New Linux (Ubuntu, Fedora, ...

Xilinx ISE Installation Manual

How to install Xilinx ISE 14.7 on New Linux Distro (Ubuntu 22.04 LTS Example)

Xilinx ISE on UBUNTU 2022.4

Preinstallation Requarements

Install Essential Libraries (curses5 stdc++5 motif-dev fonts-75dpi fonts-100dpi)

sudo apt install \
 libncurses5 \