Skip to content

Instantly share code, notes, and snippets.

View sun363587351's full-sized avatar
💭
编码中

Sunc sun363587351

💭
编码中
  • CCN
View GitHub Profile
@sun363587351
sun363587351 / offline_mdn_docs.md
Created November 15, 2020 07:56 — forked from zed-dz/offline_mdn_docs.md
Offline MDN Docs
@sun363587351
sun363587351 / Android.mk
Created March 4, 2020 05:28 — forked from jayrambhia/Android.mk
FFmpeg with OpenCV on Android
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
OPENCV_LIB_TYPE:=STATIC
OPENCV_INSTALL_MODULES:=on
include /home/jay/Android_OpenCV/OpenCV-2.4.8-android-sdk/sdk/native/jni/OpenCV.mk
LOCAL_MODULE := tutorial02
[therbert@Fedora21 vpp]$ make dist
make verstring=vpp-17.04-rc0~395_gd96bad8 prefix=vpp distversion
make[1]: Entering directory '/home/therbert/tmp/vpp'
/home/therbert/tmp/vpp/build-root/scripts/verdist /home/therbert/tmp/vpp/build-root vpp-17.04 vpp-17.04-rc0~395_gd96bad8
mv vpp-17.04-rc0~395_gd96bad8.tar.gz /home/therbert/tmp/vpp/build-root/rpm
make[1]: Leaving directory '/home/therbert/tmp/vpp'
[therbert@Fedora21 vpp]$ pwd
/home/therbert/tmp/vpp
[therbert@Fedora21 vpp]$ cd ..
[therbert@Fedora21 tmp]$ mkdir dist
@sun363587351
sun363587351 / ubuntu18.04-vfio.md
Created July 3, 2019 05:22 — forked from TomFaulkner/ubuntu18.04-vfio.md
VFIO Setup on Ubuntu 18.04
@sun363587351
sun363587351 / openvpn-config.sh
Created June 25, 2019 02:38 — forked from ilude/!edgerouter_notes.sh
Edgerouter X OpenVPN configuration
configure
set interfaces openvpn vtun0
set interfaces openvpn vtun0 mode site-to-site
# set interfaces openvpn vtun0 protocol tcp-active
set interfaces openvpn vtun0 remote-port <remote-host-port>
set interfaces openvpn vtun0 local-address 192.168.52.10
set interfaces openvpn vtun0 remote-address 192.168.52.9
set interfaces openvpn vtun0 remote-host <remote-host>
set interfaces openvpn vtun0 encryption aes256
set interfaces openvpn vtun0 hash sha256
@sun363587351
sun363587351 / KVM Attempt 1
Created June 25, 2019 01:47 — forked from ilude/KVM Attempt 1
KVM virt-install command
qemu-img create -f qcow2 /pool/vms/xp.qcow2 50G
sudo virt-install --connect qemu:///system -n xp -r 512 --disk path=/pool/vms/xp.qcow2,size=50 \
-c /pool/iso/windows/en_windows_xp_professional_with_service_pack_3_x86_cd_vl_x14-73974.iso \
--graphics vnc,listen=0.0.0.0,port=65322 --noautoconsole \
--os-type windows --os-variant winxp
@sun363587351
sun363587351 / kvm-qemu.sh
Created June 21, 2019 14:26 — forked from doomedraven/kvm-qemu.sh
Linux - KVM + QEMU installer from sources :)
#!/bin/bash
#
# For latest version please check https://github.com/doomedraven/Tools/blob/master/Virtualization/kvm-qemu.sh
#
# https://www.doomedraven.com/2016/05/kvm.html
# Use Ubuntu 18.04 LTS
@sun363587351
sun363587351 / centos_bstick.sh
Created June 17, 2019 03:41 — forked from vkanevska/centos_bstick.sh
Custom CentOS 7 bootable ISO / Support UEFI & Secure boot
#!/bin/bash
# create custom bootable iso for CentOS 7 with kickstart
if [ $# -lt 2 ]
then
echo "Usage1: $0 path2iso path2kickstart"
exit 1
else
if [ ! -f $1 ]
then
@sun363587351
sun363587351 / .gitignore
Created June 10, 2019 06:52 — forked from chrisdone/.gitignore
Linux + BusyBox + QEMU/VirtualBox/USB boot recipe
output/
private void refreshHeroList(JSONArray heroes) throws JSONException {
heroList.clear();
for (int i = 0; i < heroes.length(); i++) {
JSONObject obj = heroes.getJSONObject(i);
heroList.add(new Hero(
obj.getInt("id"),
obj.getString("name"),
obj.getString("realname"),