Skip to content

Instantly share code, notes, and snippets.

@tjuyy
tjuyy / lmgrd.service
Created December 8, 2020 09:50
Synopsys SCL lmgrd systemd sevice
# /etc/systemd/system/my-lmgrd.service
# ref: https://www.synopsys.com/support/licensing-installation-computeplatforms/licensing.html#start_scl
[Unit]
Description=Synopsys lmgrd and snpslmd service
After=network.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/opt/synopsys/scl_11.9/amd64/bin/lmgrd -c /opt/synopsys/license/Synopsys.dat -l /opt/synopsys/license/license.log
@tjuyy
tjuyy / 99-ipv6
Last active November 27, 2020 13:06
Openwrt Hotplug script for NAT6 (auto add ipv6 route if wan6 up)
#!/bin/sh
#/etc/hotplug.d/iface/99-ipv6
[ "$ACTION" = ifup ] || exit 0
iface=wan6
[ -z "$iface" -o "$INTERFACE" = "$iface" ] || exit 0
ip -6 route add `ip -6 route show default|sed -e 's/from [^ ]* //'`
logger -t IPv6 "Add IPv6 default route."
@tjuyy
tjuyy / NanoPi-R1S-H5.config
Last active December 17, 2019 01:55
NanoPi-R1S-H5 openwrt .config file backup 20191209, support ssr, v2ray ipv6-nat, miniDLNA, UPnP
#
# Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
CONFIG_TARGET_sunxi=y
# CONFIG_TARGET_apm821xx is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ar71xx is not set
@tjuyy
tjuyy / startWindowsEventLogService.md
Last active May 7, 2019 12:12
Solution for "Windows could not start the windows event log service on local computer. Error 5: Access is denied"

When you cannot start "Windows Event Log" service, you can do this.

  1. Erase all content in Logs folder (C:\Windows\System32\winevt\Logs).
  2. Restart the windows server or PC.