Skip to content

Instantly share code, notes, and snippets.

View EasyIP2023's full-sized avatar
🤯
Learning

EasyIP2023

🤯
Learning
View GitHub Profile
@EasyIP2023
EasyIP2023 / macos-update-rpath.sh
Last active May 16, 2026 21:29
MacOS update rpath on binary
#!/bin/bash
##########################################################################################################################################
# https://zditect.com/blog/53084068.html
# On the Mac a dynamic library (dylib) has an "install name". The install name is a path
# baked into the dynamic library that says where to find the library at runtime. When you
# link against the dylib this path is saved in your binary so that your binary can find the
# dylib at runtime.
# If the given binary is a dylib
# install_name_tool -id @rpath/<libname> will update the LC_ID_DYLIB (install name) of
@EasyIP2023
EasyIP2023 / mergerfs_2.32.6.bb
Last active August 15, 2021 00:34
mergerfs_2.32.6.bb
SUMMARY = "Mergerfs union filesystem"
DESCRIPTION = "mergerfs is a union filesystem geared towards simplifying storage and management of files across numerous commodity storage devices"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=8edc8effbabde5b1c0835c3235a15b0e"
PR = "r0"
SRC_URI = "https://github.com/trapexit/mergerfs/releases/download/${PV}/${BPN}-${PV}.tar.gz"
@EasyIP2023
EasyIP2023 / libfreeimage_3.18.0.bb
Last active August 15, 2021 00:34
libfreeimage_3.18.0.bb
LICENSE = "GPLv2 & GPLv3 & FreeImage-Public-1.0"
LIC_FILES_CHKSUM = "\
file://license-fi.txt;md5=8e1438cab62c8f655288588dc43daaf6 \
file://license-gplv2.txt;md5=1fbed70be9d970d3da399f33dae9cc51 \
file://license-gplv3.txt;md5=b5c176c43d7fb06bf6dd56e79c490f5b \
"
NO_GENERIC_LICENSE[FreeImage-Public-1.0] = "license-fi.txt"
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=5b2c53b113bbcc0036c9903d4c8e7c8d"
PR = "r0"
SRC_URI = "https://github.com/git-lfs/git-lfs/releases/download/v${PV}/${BPN}-v${PV}.tar.gz"
SRC_URI[md5sum] = "502d702888ae0c6fc07792cd13bcc321"
SRC_URI[sha256sum] = "f8bd7a06e61e47417eb54c3a0db809ea864a9322629b5544b78661edab17b950"
DEPENDS = "go-cross-${TUNE_PKGARCH}"
@EasyIP2023
EasyIP2023 / Neon_CSS.md
Last active August 18, 2023 07:29
Neon CSS (for lucurious labs)

Neon CSS

Got from webdevtrick.

index.html

<!DOCTYPE html>
<!-- code by webdevtrick ( https://webdevtrick.com ) -->
<html lang="en" >

<head>
@EasyIP2023
EasyIP2023 / useful_methods.md
Last active March 3, 2020 00:24
Uselful methods

Useful methods

Just an md file full of methods that one could potentially use in the future

C

Lower case letters to upper

void lower_to_upper(char *s) {
  while (*s != '\0') {
    if (*s >= 'a' && *s <= 'z')