Skip to content

Instantly share code, notes, and snippets.

View engalar's full-sized avatar

wengao liu engalar

  • https://www.mendix.com/
  • zhuhai/guangdong/china
  • 10:50 (UTC +08:00)
View GitHub Profile
@engalar
engalar / base64-to-blob.js
Last active August 8, 2022 00:21
cordova file集成
//https://stackoverflow.com/a/16245768
//const blob = b64toBlob(b64Data, contentType);
const b64toBlob = (b64Data, contentType='', sliceSize=512) => {
const byteCharacters = atob(b64Data);
const byteArrays = [];
for (let offset = 0; offset < byteCharacters.length; offset += sliceSize) {
const slice = byteCharacters.slice(offset, offset + sliceSize);
const byteNumbers = new Array(slice.length);
@engalar
engalar / README.md
Last active August 30, 2022 10:17
mendix offline install

使用方法

  • 执行批处理,选择你想下载的版本

运行效果

Active code page: 65001
已经存在 listing.txt

请选择一个你想要安装的Studio Pro版本号?
[162] 9.9.2.35886
例如你输入162表示安装9.9.2.35886
@engalar
engalar / bashrc.sh
Last active May 10, 2022 08:45
windows wsl proxy localhost
export all_proxy=http://host.docker.internal:29759
@engalar
engalar / .ideavimrc
Last active October 9, 2020 06:45 — forked from dewaka/.ideavimrc
inoremap jk <ESC>
:map \r :action ReformatCode<CR>
:map gb :action Back<CR>
:map gw :action Forward<CR>
set rnu
set ignorecase
set smartcase
set scrolloff=3 " 3 lines above/below cursor when scrolling
@engalar
engalar / mirrorlist
Last active August 13, 2020 04:04
manjaro
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################
# With: reflector --protocol https --age 1 --sort rate --save /etc/pacman.d/mirrorlist
# When: 2020-07-25 07:53:02 UTC
# From: https://www.archlinux.org/mirrors/status/json/
# Retrieved: 2020-07-25 07:49:41 UTC
# Last Check: 2020-07-25 07:37:38 UTC
@engalar
engalar / init.vim
Created February 10, 2020 03:51 — forked from benawad/init.vim
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'scrooloose/nerdtree'
"Plug 'tsony-tsonev/nerdtree-git-plugin'
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons'
Plug 'airblade/vim-gitgutter'
@engalar
engalar / VOCDetection.py
Created July 31, 2019 01:29
pytorch voc dataset
import torch, torchvision
from PIL import Image
import sys
if sys.version_info[0] == 2:
import xml.etree.cElementTree as ET
else:
import xml.etree.ElementTree as ET
import os
import collections
@engalar
engalar / frpc
Last active July 17, 2019 06:03 — forked from NemoAlex/frpc
/etc/init.d/frpc on OpenWrt
#!/bin/sh /etc/rc.common
START=99
USE_PROCD=1
start_service() {
procd_open_instance "frpc"
procd_set_param command /root/frp/frpc -c /root/frp/frpc.ini
procd_set_param stdout 1
procd_set_param stderr 1
@engalar
engalar / gpg_git_signing.md
Last active May 10, 2018 05:12 — forked from alopresto/gpg_git_signing.md
Steps to enable GPG signing of git commits.

If anyone is interested in setting up their system to automatically (or manually) sign their git commits with their GPG key, here are the steps:

windows

cd C:\Program Files (x86)\GNU\GnuPG
.\gpg.exe --gen-key # 4096
.\gpg.exe --list-secret-keys --keyid-format LONG

.\gpg.exe --armor --export 3AA5C34371567BD2
# Installation of basic build dependencies
## Debian / Ubuntu
sudo apt-get install --no-install-recommends gettext build-essential autoconf libtool libpcre3-dev asciidoc xmlto libev-dev libc-ares-dev automake libmbedtls-dev libsodium-dev
## CentOS / Fedora / RHEL
#sudo yum install gettext gcc autoconf libtool automake make asciidoc xmlto c-ares-devel libev-devel
## Arch
#sudo pacman -S gettext gcc autoconf libtool automake make asciidoc xmlto c-ares libev
# Installation of Libsodium
export LIBSODIUM_VER=1.0.13