Skip to content

Instantly share code, notes, and snippets.

@justin-himself
justin-himself / badapple
Last active December 27, 2023 21:17
bad apple 26x26
This file has been truncated, but you can view the full file.
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
@justin-himself
justin-himself / self-compile-gephgui.md
Last active December 7, 2023 00:59
自编译迷雾通 Self compile GephGui

自编译迷雾通 Self compile GephGui

下面介绍如何编译 GephGui, 成品就是你从官网上下载的那样子, tar.gz 解压后的内容
为什么要自己编译? 因为 flatpak 就是一坨热气腾腾的💩

方法 1: 自编译

  1. 准备一个纯净的 debian 系统, 这里就直接使用 docker 的 debian:buster 进行编译
<?xml version='1.0' standalone='yes'?>
<PLUGIN>
<!--
A simple plugin to add tmux to unraid
-->
<FILE Name="/boot/packages/libevent-2.1.12-x86_64-3.txz" Run="upgradepkg --install-new">
<URL>http://slackware.cs.utah.edu/pub/slackware/slackware64-15.0/slackware64/l/libevent-2.1.12-x86_64-3.txz</URL>
</FILE>
@justin-himself
justin-himself / example.bf
Last active October 12, 2023 17:45
C++ Brainfuck Interpreter (Obfuscated)
++++[->++++++++<]>..[->+++<]>-....+[->+++<]>.[->+++<]>-....+[->+++<]>.....[->+++<]>-....+[->+++<]>.[->+++<]>-.+[->+++<]>.......[->+++<]>-.>++++++++++.[->+++<]>++.[-->+++<]>-.+[--->++<]>.[->+++<]>-...-[-->+<]>.+[--->++<]>.[->+++<]>-...[->++++<]>.[---->+<]>+...[-->+++<]>-.+[--->++<]>.[->+++<]>-...[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+++<]>++.+[->+++<]>...[->+++<]>-.[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+++<]>++..>++++++++++.>--[-->+++<]>-.[---->+<]>+.-[->++++<]>.[---->+<]>+...-[->+++<]>-.+++...+[->+++<]>.-[->+++<]>-.+[--->+<]>+..-[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+<]>+...-[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+<]>+.+++++++.-[-->+++++<]>.+[->+++<]>.-[->+++<]>-.[++>---<]>.>--[-->+++<]>-.[---->+<]>+.-[->++++<]>.[---->+++<]>++...+[->+++<]>.[->+++<]>-...++++[->+++<]>.---------.-[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+++<]>++...[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+<]>+.-[->++++<]>.[---->+++<]>++.[->
@justin-himself
justin-himself / gutenberg.patch
Last active May 16, 2021 07:02
Wordpress Plugin Enlighter Style Patch
diff -uprN ./gutenberg.orig/enlighterjs.gutenberg.min.css ./gutenberg/enlighterjs.gutenberg.min.css
--- ./gutenberg.orig/enlighterjs.gutenberg.min.css 2021-05-16 14:30:03.000000000 +0800
+++ ./gutenberg/enlighterjs.gutenberg.min.css 2021-01-06 21:53:16.000000000 +0800
@@ -1 +1,2 @@
-/*! EnlighterJS Syntax Highlighter Gutenberg Plugin 1.1.1 | Mozilla Public License 2.0 | https://enlighterjs.org */div[data-type="enlighter/codeblock"]{border:1px solid #cccbcb;border-radius:5px;padding:15px;padding-block-end:1px}div[data-type="enlighter/codeblock"] .block-editor-plain-text{font-family:Menlo,Consolas,monaco,monospace;font-size:14px;color:#23282d;white-space:pre-wrap;outline:0!important;box-shadow:none!important;transition:none;background-color:#f9f9f9;padding:2px;direction:ltr;text-align:left;border-radius:0}div[data-type="enlighter/codeblock"] .enlighter-header .enlighter-title{font-weight:700}div[data-type="enlighter/codeblock"] .enlighter-footer-label{text-align:right;font-size:10px;font-family:Menlo,Consolas,m
@justin-himself
justin-himself / install-wasm-for-qt5.15-on-mac-m1.md
Last active December 21, 2022 12:06
Install wasm for qt 5.15 on Apple M1

Install wasm for qt 5.15 on Apple M1

  1. Install Docker for Apple M1

  2. Pull docker image maukalinow/qtwasm_builder

    docker pull maukalinow/qtwasm_builder
    
  3. Compile cpp file below and move the binary to /usr/local/bin/qtwasm

FINISHIED!