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
$ make -f misc/cygwin/Makefile | |
cc -o clifm.exe src/*.c -O3 -fstack-protector-strong -Wall -Wextra -DCLIFM_DATADIR=/usr/local/share -lreadline -lacl -lmagic -lintl | |
In file included from src/actions.c:29: | |
src/helpers.h:127:10: fatal error: glob.h: No such file or directory | |
127 | #include <glob.h> | |
| ^~~~~~~~ | |
compilation terminated. | |
In file included from src/archives.c:26: | |
src/helpers.h:127:10: fatal error: glob.h: No such file or directory | |
127 | #include <glob.h> |
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
#define _XOPEN_SOURCE 700 | |
#include <signal.h> | |
#include <unistd.h> | |
int main() | |
{ | |
sigset_t set; | |
int status; | |
if (getpid() != 1) return 1; |
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
#include <stdio.h> | |
#include <iostream> | |
#include <sstream> | |
#include <SDL.h> | |
#include <include/cef_app.h> | |
#include <include/cef_client.h> | |
#include <include/cef_render_handler.h> | |
#include <include/cef_life_span_handler.h> |
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
# fshow - git commit browser (enter for show, ctrl-d for diff, ` toggles sort) | |
fshow() { | |
local out shas sha q k | |
while out=$( | |
git log --graph --color=always \ | |
--format="%C(auto)%h%d %s %C(black)%C(bold)%cr" "$@" | | |
fzf --ansi --multi --no-sort --reverse --query="$q" \ | |
--print-query --expect=ctrl-d --toggle-sort=\`); do | |
q=$(head -1 <<< "$out") | |
k=$(head -2 <<< "$out" | tail -1) |
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
#!/bin/bash | |
# Compile curl for android with NDK. | |
# Copyright (C) 2019 linarcx <linarcx@gmail.com> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |
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
00:00:01.414449 VirtualBox VM 6.1.32 r149290 linux.amd64 (Feb 9 2022 00:26:35) release log | |
00:00:01.414455 Log opened 2022-04-28T07:32:00.284243000Z | |
00:00:01.414458 Build Type: release | |
00:00:01.414466 OS Product: Linux | |
00:00:01.414470 OS Release: 5.15.34_1 | |
00:00:01.414473 OS Version: #1 SMP Thu Apr 14 17:43:53 UTC 2022 | |
00:00:01.414531 DMI Product Name: K53SV | |
00:00:01.414556 DMI Product Version: 1.0 | |
00:00:01.414580 Firmware type: BIOS | |
00:00:01.414684 Host RAM: 7867MB (7.6GB) total, 3981MB (3.8GB) available |
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
↳ clinfo | |
Number of platforms 2 | |
Platform Name Clover | |
Platform Vendor Mesa | |
Platform Version OpenCL 1.1 Mesa 21.3.7 | |
Platform Profile FULL_PROFILE | |
Platform Extensions cl_khr_icd | |
Platform Extensions function suffix MESA | |
Platform Name Intel Gen OCL Driver |
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
↳ clinfo | |
Number of platforms 1 | |
Platform Name Clover | |
Platform Vendor Mesa | |
Platform Version OpenCL 1.1 Mesa 21.3.7 | |
Platform Profile FULL_PROFILE | |
Platform Extensions cl_khr_icd | |
Platform Extensions function suffix MESA | |
Platform Name Clover |
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
;; async-run function | |
(defparameter *async-shell* (uiop:launch-program "bash" :input :stream :output :stream)) | |
(defun async-run (command) | |
(write-line command (uiop:process-info-input *async-shell*)) | |
(force-output (uiop:process-info-input *async-shell*)) | |
(let* ((output-string (read-line (uiop:process-info-output *async-shell*))) | |
(stream (uiop:process-info-output *async-shell*))) | |
(if (listen stream) | |
(loop while (listen stream) | |
do (setf output-string (concatenate 'string |
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
(defun linarcx-keyboard-layout (ml) | |
(declare (ignore ml)) | |
(let ((cmd "xkb-switch -p")) | |
(string-trim '(#\Newline) (run-shell-command cmd t)))) | |
(add-screen-mode-line-formatter #\L #'linarcx-keyboard-layout) | |
Also the output of: `(run-shell-command "xkb-switch -p"" t)` is: | |
"us | |
" |
NewerOlder