gist.github.limly.eu.org
Open in
urlscan Pro
2606:4700:3032::6815:3434
Public Scan
Submitted URL: https://gist.github.limly.eu.org/
Effective URL: https://gist.github.limly.eu.org/starred
Submission: On November 27 via automatic, source certstream-suspicious — Scanned from DE
Effective URL: https://gist.github.limly.eu.org/starred
Submission: On November 27 via automatic, source certstream-suspicious — Scanned from DE
Form analysis
1 forms found in the DOMGET /search
<form class="position-relative js-quicksearch-form" role="search" aria-label="Site" data-turbo="false" action="/search" accept-charset="UTF-8" method="get">
<div class="header-search-wrapper form-control input-sm js-chromeless-input-container">
<input type="text" class="form-control input-sm js-site-search-focus header-search-input" data-hotkey="s,/" name="q" aria-label="Search" placeholder="Search…" autocorrect="off" autocomplete="off" autocapitalize="off">
</div>
</form>
Text Content
Skip to content All gists Back to GitHub Sign in Sign up Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Instantly share code, notes, and snippets. DISCOVER GISTS * * All gists * Forked * Starred * 1 file * 0 forks * 0 comments * 1 star johnsonjh / pthread.c Created November 27, 2023 11:46 View pthread.c This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters #define _GNU_SOURCE #define _ALL_SOURCE #include <pthread.h> #include <stdarg.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include <unistd.h> * 1 file * 4 forks * 8 comments * 38 stars zrruziev / NUMA node problem.md Last active November 27, 2023 11:44 Fixing "successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero" problem View NUMA node problem.md WHAT IS NUMA (NON-UNIFORMED MEMORY ACCESS) Non-Uniform Memory Access (NUMA) is one of the computer memory design methods used in multiprocessor systems, and the time to access the memory varies depending on the relative position between the memory and the processor. In the NUMA architecture, when a processor accesses its local memory, it is faster than when it accesses the remote memory. Remote memory refers to memory that is connected to another processor, and local memory refers to memory that is connected to its own processor. In other words, it is a technology to increase memory access efficiency while using multiple processors on one motherboard. When a specific processor runs out of memory, it monopolizes the bus by itself, so other processors have to play. , and designate 'access only here', and call it a NUMA node. 1. CHECK NODES lspci | grep -i nvidia 01:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 12GB] (rev a1) * 1 file * 1 fork * 1 comment * 12 stars hellricer / terminal-testdrive.sh Last active November 27, 2023 11:44 View terminal-testdrive.sh This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters #!/bin/sh echo "# 24-bit (true-color)" # based on: https://gist.github.limly.eu.org/XVilka/8346728 term_cols="$(tput cols || echo 80)" cols=$(echo "2^((l($term_cols)/l(2))-1)" | bc -l 2> /dev/null) rows=$(( cols / 2 )) awk -v cols="$cols" -v rows="$rows" 'BEGIN{ s=" "; m=cols+rows; * 2 files * 81 forks * 132 comments * 330 stars oofnikj / answerfile Last active November 27, 2023 11:43 Install Docker on Termux View answerfile This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters KEYMAPOPTS="us us" HOSTNAMEOPTS="-n alpine" INTERFACESOPTS="auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp hostname alpine " TIMEZONEOPTS="-z UTC" * 1 file * 31 forks * 22 comments * 82 stars gjrdiesel / README.md Last active November 27, 2023 11:43 Expand Ubuntu 20 Proxmox Disk View README.md # Resize the file system in UI, under VM -> Hardware -> Click on the disk to resize, click "Resize disk" button # Confirm increase in disk space (1TB in my case) $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 1T 0 disk ├─sda1 8:1 0 1M 0 part ├─sda2 8:2 0 1G 0 part /boot └─sda3 8:3 0 1T 0 part * 3 files * 0 forks * 0 comments * 1 star faridcher / math.tex Last active November 27, 2023 11:41 math2img View math.tex This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters \ifdefined\formula \else \def\formula{$$E=mc^2$$} \fi % \documentclass[convert={density=150,size=1080x800,outext=.png}]{standalone} \documentclass[border=2pt,varwidth]{standalone} \usepackage[margin=1in]{geometry} \usepackage{array,standalone,mathtools,amssymb,amsthm} % imports amsmath \begin{document} \formula * 1 file * 125 forks * 180 comments * 972 stars FreddieOliveira / docker.md Last active November 27, 2023 11:41 This tutorial shows how to run docker natively on Android, without VMs and chroot. View docker.md DOCKER ON ANDROID 🐋📱 EDIT 🎉 All packages, except for Tini have been added to termux-root. To install them, simply pkg install root-repo && pkg install docker. This will install the whole docker suite, left only Tini to be compiled manually. -------------------------------------------------------------------------------- SUMMARY * 2 files * 0 forks * 0 comments * 4 stars nwaliaez / index.html Created November 27, 2023 11:22 Heart in CSS View index.html This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> </head> <body> <div class="heart"></div> </body> * 1 file * 5 forks * 0 comments * 33 stars FreyaHolmer / RigidbodyMassCalculator.cs Created December 18, 2015 19:54 Used to approximate a proper mass value for all the colliders in a given Rigidbody View RigidbodyMassCalculator.cs This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters using UnityEngine; using System.Linq; [RequireComponent(typeof(Rigidbody))] public class RigidbodyMassCalculator : MonoBehaviour { public float density = 1f; public bool recalculateOnAwake = true; Rigidbody rb; * 1 file * 0 forks * 0 comments * 6 stars FreyaHolmer / IMGUIDebugger.cs Created May 2, 2019 04:38 Unity script to open the IMGUI debugger. Useful for editor UI debugging! Make sure you put it in an Editor/ folder in your project View IMGUIDebugger.cs This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters using UnityEditor; using System; public static class IMGUIDebugger { static Type type = Type.GetType( "UnityEditor.GUIViewDebuggerWindow,UnityEditor" ); [MenuItem( "Window/IMGUI Debugger" )] public static void Open() => EditorWindow.GetWindow( type ).Show(); NewerOlder FOOTER © 2023 GitHub, Inc. FOOTER NAVIGATION * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can’t perform that action at this time.