← Înapoi la Urmăritori

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 94
  1. Parses last reboot output to show how long each boot session lasted, sorted longest-first.

  2. Void Linux upgrade caused monitor to show "No Signal".

  3. Using Address Sanitizer with clang

    What -fsanitize=address does Enables AddressSanitizer (ASan): a compile and link time instrumentation plus runtime library that detects memory errors.

  4. Changing default applications is done with command xdg-mime.

  5. Motivation Over time I have tried making my ~/.vimrc more universal and capable of serving all the different projects, and I always fail.

  6. Minimal desktop setup with cwm and conky

    Configuration for the setup in the picture is located within commit d29a085.

  7. Change Alt key to Win key under Xfce4

    To change the modifier key from Alt to the Win (Super/Meta) key for moving and resizing windows in Xfce: Open Window Manager Tweaks: Go to Settings → Window Manager Tweaks (or run xfwm4-tweaks-settings from a terminal).

  8. Lua performance in different environments

    A quick look into difference in performance when running Lua normally vs Luajit vs Lua embedded in C program.

  9. Why?

  10. Currated list of Vim ALE linters

    Reading material Asynchronous Lint Engine Let's have a pint of (vim) ale!

  11. To use option key under macOS as Meta key use the option option_as_alt and set it to "Both".

  12. Write and read structs to/from files in C

    First let's define a shared header file for the struct definition. // struct.h typedef struct { char name[50]; int health; float damage; } Character; Now lets write it to a character.dat file. // write.c #include <stdio.h> #include <string.h>

  13. Embedding resources into binary with C

    Binary resource inclusion preprocessor has been put into the C23 standard but has not yet been implemented by the compilers.

  14. Sending signals to C programs

    For simple and easy IPC to the C program we can use signals. https://www.man7.org/linux/man-pages/man7/signal.7.html Only two user defined signals are available (SIGUSR1 and SIGUSR2) but you can hijack other ones even though this is really not advisable

  15. Calling assembly functions from C

    This is using the portable GNU assembler and TinyCC compiler but GCC or Clang can be used as well.

  16. Personal critique This is in part difficult to write since I have been daily driving GNU/Linux for 20 years now, but I think it is necessary to be honest about this.

  17. By default, GitHub uses Jekyll for their site generator which is fine, but it has some issues and the complexity is not really worth it for me.

  18. Lately I have been doing a lot of systems programming and profiling is the name of the game when it comes to developing good software.

  19. Uninstall Ollama from a Linux box

    I have had some issues with Ollama not being up-to-date.

  20. I mostly play Dungeon Crawl Stone Soup online on Ohio, USA: cbro.berotato.org server and when you start playing you can select the version you want to play.

  21. Extract lines from a file with sed

    Easy way to extract line ranges (from line 200 to line 210) with sed. sed -n '200,210p' data/Homo_sapiens.GRCh38.dna.chromosome.18.fa # then pipe it to a new file with sed -n '200,210p' data/Homo_sapiens.GRCh38.dna.chromosome.18.fa > new.fa head or tail

  22. Personal sane Vim defaults

    I have found many "sane" default configs on the net and this is my favorite personal list.

  23. Add lazy loading of images in Jekyll posts

    Normally you define images with !

  24. I had a 4 webm videos (each 492x451) that I wanted to combine to be played side by side and I tried iMovie and Kdenlive and failed to do it in an easy way.

  25. Compile drawterm on Fedora 38

    First install two dependencies: sudo dnf install libX11-devel libXt-devel Clone the repo and compile it: git clone git://git.9front.org/plan9front/drawterm cd drawterm CONF=unix make That should produce drawterm binary.

  26. AWS EB PyYAML fix

    Recent update of my system completely borked EB CLI on my machine.

  27. Make B/W SVG charts with matplotlib

    Install pip requirements. pip install matplotlib pip install pandas Example of data being used.

  28. Set color temperature of displays on i3

    I have been using Gnome's night shift for a while now and I have been missing this feature under i3wm.

  29. I have been experiencing some issues with Intel® Integrated HD Graphics 3000 under Debian 12 with Xorg and i3.

  30. Recently I have been using my Thinkpad x220 more and there are some constraints I have faced with it.

  31. 60's IBM Computers Commercial

    Likely aired during an hour-long program during the 1960s, long commercials such as this typically aired during hour-long programs.

  32. 10/GUI 10 Finger Multitouch User Interface

    Message from 10/GUI team (page 10gui.com does not exist anymore): Over a quarter-century ago, Xerox introduced the modern graphical user interface paradigm we today take for granted.

  33. Alacritty open links with modifier

    Alacritty by default makes all links in the terminal output clickable and this gets annoying rather quickly.

  34. Development environments with Nix

    Nix is amazing for making reproducible cross OS development environment.

  35. Making cgit look nicer

    For personal use I have a private Git server set up and I use GitHub just as a mirror.

  36. Simple presentations with Markdown

    A simple way to make presentations without using desktop apps or using online services is https://github.com/remarkjs/remark.

  37. Bulk thumbnails

    Make bulk thumbnails of JPGs with ImageMagick. #!

  38. Edsger W. Dijkstra Manuscripts ebook

    I love reading the original manuscripts of Edsger W.

  39. Extending dte editor

    dte is an interesting editor I started using lately more and more.

  40. Grep to Less that maintain colors

    I often use grep to search for todo's in my code and other people's code and then pipe them in less and I missed having colors that grep outputs in less.

  41. Easy measure time took in a bash script

    In Bash, the $SECONDS variable is a special variable that automatically keeps track of the number of seconds since the current shell or script started executing.

  42. Make DCSS playable on 4k displays

    Dungeon Crawl Stone Soup has a a very small font by default.

  43. Drawing Pixels in Plan9

    I have started exploring Plan9's graphics capabilities.

  44. Cronjobs on Github with Github Actions

    In the root of your repository create a folder .github/workflows and in that folder create a file a file cron.yaml.

  45. An amazing game deserves an amazing guide.

  46. Display xterm color palette

    bash xterm-palette.sh - will show you number of max colors available bash xterm-palette.sh -v - will create a list of all colors with codes #!

  47. # Remap prefix from 'C-b' to 'M-a'. unbind C-b set-option -g prefix M-a bind-key M-a send-prefix # Split panes using | and -. bind | split-window -h bind - split-window -v unbind '"' unbind % # Start counting windows with 1. set-option -g allow-rename on

  48. My brand new Plan9/9front desktop

    I have been experimenting with Plan9/9front for a week now.

  49. Here is a boilerplate for extending Lua with custom C functions.