Skip to content

Instantly share code, notes, and snippets.

View liweinan's full-sized avatar
🐢

阿男 liweinan

🐢
View GitHub Profile
➤ ./standalone.sh
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/weli/works/wildfly-full-current
JAVA: /Users/weli/.sdkman/candidates/java/current/bin/java
JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true --add-exports=java.desktop/sun.awt=ALL-UNNAMED --add-exports=java.naming/com.sun.jndi.ldap=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.security=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.management/javax.management=ALL-UNNAMED --add-opens=java.naming/javax.naming=ALL-UNNAMED
Tinkering🪛
@liweinan
liweinan / install-resteasy-galleon.sh
Created September 12, 2021 23:31
Install RESTEasy Galleon Feature Pack
[wildfly-current]$ install wildfly:current
Feature pack installed.d.
======= ============ ==============
Product Build Update Channel
======= ============ ==============
wildfly 24.0.1.Final current
# https://github.com/resteasy/Resteasy/pull/2884/files#diff-f516c659d453ebc72fb73e5a37f07bcccaf553d2fa22e690b9feefb5947b5a4eR260
@liweinan
liweinan / resteasy-microprofile client diagram
Created September 10, 2021 08:28
resteasy-microprofile client diagram
resteasy-microprofile client diagram

The Freenode resignation FAQ, or: "what the fuck is going on?"

Update 2

Freenode staff have stepped down. The network that runs at freenode.org/net/com should now be assumed to be under control of a malicious party. Andrew Lee will likely gain control over the NickServ database at some point.

I recommend that you move to libera.chat as soon as possible, as the former Freenode staff has left the network that exists on the Freenode domains, and so they can no longer guarantee the safety of your information or community there. Basically, libera.chat is the continuation of Freenode.

#include<iostream>
using namespace std;
struct node {
int data;
node *next;
};
int main() {
@liweinan
liweinan / index.html
Created November 26, 2020 18:09
Vue 3 Wrapper Component Example
<div id="el"></div>
<!-- using string template here to work around HTML <option> placement restriction -->
<script type="text/x-template" id="demo-template">
<div>
<p>Selected: {{ selected }}</p>
<select2 :options="options" v-model="selected">
<option disabled value="0">Select one</option>
</select2>
</div>
@liweinan
liweinan / macro.rs
Created August 24, 2020 06:49
macro.rs
macro_rules! A {
(1+ $input:expr) => {
$input + 1
};
(2+ $input:expr) => {
$input + 2
};
}
fn main() {
@liweinan
liweinan / .vimrc
Created August 22, 2020 06:10
.vimrc
set nocompatible " be iMproved, required
filetype off " required
syntax on
let g:python3_host_prog = '/Users/weli/.pyenv/versions/3.8.5/bin/python'
let g:python_host_prog = '/Users/weli/.pyenv/versions/2.7.18/bin/python'
nmap <C-n> :NERDTreeToggle<CR>
" Specify a directory for plugins
" - For Neovim: stdpath('data') . '/plugged'
@liweinan
liweinan / JS Snippets
Last active August 19, 2020 13:09
JS Snippets
JS Snippets