Skip to content

Instantly share code, notes, and snippets.

View xn3cr0nx's full-sized avatar

Patrick Jusic xn3cr0nx

View GitHub Profile

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@xn3cr0nx
xn3cr0nx / ubuntu-on-asus-g14.md
Created December 16, 2021 11:23 — forked from vijay-prema/ubuntu-on-asus-g14.md
Ubuntu on Asus ROG Zephyrus G14 2021

Ubuntu on Asus ROG Zephyrus G14 2021 (Setup guide)

Here is a way to do a robust install of Ubuntu (+ optional Windows 11 dual boot and LUKS encryption) on an Asus laptop, with minimal usable hardware support, without a significant amount of tinkering that may break in future or require frequent technical attention.

Specs:

  • AMD R7 5800 8 core 16 thread (onboard Radeon graphics)
  • NVIDIA RTX 3050 4GB (60W +15W boost)
  • 40GB RAM (8GB soldered + 32GB stick)
  • 2TB SSD
  • 14inch 1920x1080 Display @144Hz
@xn3cr0nx
xn3cr0nx / firmata-spyfly-0.1.0.hex
Last active April 22, 2021 14:53
custom firmware firmware
:10000000007C0020394E0000654E0000654E000067
:10001000654E0000654E0000654E0000654E000014
:10002000654E0000654E0000654E0000654E000004
:10003000654E0000654E0000654E0000654E0000F4
:10004000ED910000654E0000654E0000654E000019
:10005000654E0000654E0000654E0000654E0000D4
:10006000654E0000654E0000F5990000F94700005C
:1000700079480000654E0000654E0000654E0000A6
:10008000654E0000654E0000DD290000654E000051
:10009000654E0000654E0000654E0000654E000094
@xn3cr0nx
xn3cr0nx / docker-compose.yml
Created June 4, 2019 09:08
docker-compose dgraph
version: "3.2"
services:
zero:
image: dgraph/dgraph:latest
volumes:
- ~/.bitgodine/dgraph:/dgraph
ports:
- 5080:5080
- 6080:6080
networks:
@xn3cr0nx
xn3cr0nx / logs.txt
Created June 4, 2019 09:06
dgraph docker-compose logs
$ docker-compose logs
Attaching to bitgodine_code_zero_1, bitgodine_code_server_1, bitgodine_code_ratel_1
server_1 | I0604 09:05:01.738654 1 init.go:88]
server_1 |
server_1 | Dgraph version : v1.0.15
server_1 | Commit SHA-1 : ff5ee1e2
server_1 | Commit timestamp : 2019-05-30 15:46:55 -0700
server_1 | Branch : HEAD
server_1 | Go version : go1.12.5
server_1 |
@xn3cr0nx
xn3cr0nx / output.txt
Created April 2, 2019 08:43
output of `strace -o my_output_file.txt ./build/service`
execve("./build/service", ["./build/service"], 0x7ffefd5b81b0 /* 68 vars */) = 0
brk(NULL) = 0x55c51a5c3000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=148286, ...}) = 0
mmap(NULL, 148286, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f0175a22000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
@xn3cr0nx
xn3cr0nx / output.txt
Created April 1, 2019 17:05
Output of make VERBOSE=1
mkdir -p build && cd build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug .. && make VERBOSE=1
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
@xn3cr0nx
xn3cr0nx / CMakeLists.txt
Created April 1, 2019 15:36
cmake file to build up the project
cmake_minimum_required(VERSION 3.0)
project(service)
# Configure required libraries ...
if(UNIX) # Darwin or Linux
set(Boost_USE_STATIC_LIBS ON)
set(BUILD_SHARED_LIBS OFF)
find_package(Boost REQUIRED COMPONENTS system thread log program_options chrono)
@xn3cr0nx
xn3cr0nx / build_dependencies.sh
Created March 22, 2019 16:09
Script to build dependencies
#!/bin/bash
RESTSDK_VERSION="v2.10.6"
DEFAULT_LIB_DIRECTORY_PATH="."
libDir=${1:-$DEFAULT_LIB_DIRECTORY_PATH}
install_cpprestsdk(){
restsdkDir="$libDir/cpprestsdk"
restsdkBuildDir="$restsdkDir/build.release"
@xn3cr0nx
xn3cr0nx / CMakeLists.txt
Created March 22, 2019 16:07
CMake list to define build directives
cmake_minimum_required(VERSION 3.0)
project(micro-service)
# Configure required libraries ...
if(UNIX) # Darwin or Linux
set(Boost_USE_STATIC_LIBS ON)
set(BUILD_SHARED_LIBS OFF)
find_package(Boost REQUIRED COMPONENTS system thread log program_options chrono)