$ sha256sum Suyu-Linux_x86_64.AppImage
176313966d0e81c13f9b31304bb009e149282e51f27f7b539d2f454512d3e509 Suyu-Linux_x86_64.AppImage
$ ail-cli integrate ./Suyu-Linux_x86_64.AppImage
Processing /home/xxxx/Applications/Suyu-Linux_x86_64.AppImage
Moving AppImage to integration directory
ERROR: appimage_register_in_system : Entry doesn't exists: org.suyu_emu.suyu.desktop
Error: Failed to register AppImage in system via libappimage
$ chmod +x ./Suyu-Linux_x86_64_d949365ea94fd9fad8e9d572fcdc67da.AppImage
$ ./Suyu_d949365ea94fd9fad8e9d572fcdc67da.AppImage --appimage-extract | grep org.suyu_emu.suyu.desktop
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
-module(compile_duplicate). | |
-export([ | |
get_id/1 | |
]). | |
get_id({1, 1, 1}) -> | |
10111; |
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
* . * .' * ★ * '* * | |
* . ' +:..:+ ' ' * | |
. * ☆☆☆ * . | |
* ' +:...+....:+ * | |
' ' ☆☆☆☆☆ * ' | |
* * ' +:...:+@+:...:+ ' * | |
* . .☆☆☆☆☆☆☆ * ' * . | |
. +:..:+&+:...:+:...:+ | |
* . ☆☆☆☆☆☆☆☆☆ * ' * | |
' . +:...:+♡+:...:+§+:..:+ |
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
#lang racket | |
; author ka__ka__ | |
(define (quick-sort array) | |
(cond | |
[(empty? array) empty] ; 快排的思想是分治+递归 | |
[else (append | |
(quick-sort (filter (lambda (x) (< x (first array))) array)) ; 这里的 array 就是闭包 | |
(filter (lambda (x) (= x (first array))) array) | |
(quick-sort (filter (lambda (x) (> x (first array))) array)))])) |
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 | |
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | gpg --dearmor | sudo tee /usr/share/keyrings/mongodb.gpg > /dev/null | |
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list | |
sudo apt update | |
sudo apt install mongodb-org |
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
all: | |
@makepkg -si | |
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
#!/usr/bin/python | |
# | |
# Notes on intersection: | |
# | |
# https://bryceboe.com/2006/10/23/line-segment-intersection-algorithm/ | |
# | |
# https://stackoverflow.com/questions/3838329/how-can-i-check-if-two-segments-intersect | |
# | |
# Permalink: | |
# |
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
#!/usr/bin/env bash | |
function register_gcc_version { | |
local version=$1 | |
local priority=$2 | |
update-alternatives \ | |
--install /usr/bin/gcc gcc /usr/bin/gcc-${version} ${priority} \ | |
--slave /usr/bin/c++ c++ /usr/bin/g++-${version} \ | |
--slave /usr/bin/g++ g++ /usr/bin/g++-${version} \ |
compile mysql-otp failed, relate to issue
$ erl +Version
Erlang (SMP,ASYNC_THREADS) (BEAM) emulator version 13.0
$ rebar3 version
rebar 3.18.0 on Erlang/OTP 25 Erts 13.0
$ rebar3 compile
===> Verifying dependencies...
===> Analyzing applications...
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 | |
function __curl() { | |
read proto server path <<<$(echo ${1//// }) | |
DOC=/${path// //} | |
HOST=${server//:*} | |
PORT=${server//*:} | |
[[ x"${HOST}" == x"${PORT}" ]] && PORT=80 | |
exec 3<>/dev/tcp/${HOST}/$PORT |
NewerOlder