Skip to content

Instantly share code, notes, and snippets.

View pwrliang's full-sized avatar

Liang Geng pwrliang

View GitHub Profile
@jakublipinski
jakublipinski / install_tensorflow_custom_gcc.md
Last active February 8, 2024 02:54
How to install Tensorflow with custom GCC

How to install the latest version of Tensorflow (2.3.0) on a machine where the default gcc is too old or too new and you don't have root access

This solves the following issue when compiling Tensorflow:

ERROR: /home/users/*/tensorflow/tensorflow/core/framework/BUILD:1324:1: ProtoCompile tensorflow/core/framework/op_def.pb.h failed (Exit 1)
bazel-out/host/bin/external/com_google_protobuf/protoc: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by bazel-out/host/bin/external/com_google_protobuf/protoc)
bazel-out/host/bin/external/com_google_protobuf/protoc: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by bazel-out/host/bin/external/com_google_protobuf/protoc)
bazel-out/host/bin/external/com_google_protobuf/protoc: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by bazel-out/host/bin/external/com_google_protobuf/protoc)
bazel-out/host/bin/external/com_google_protobuf/protoc: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by b
@kabili207
kabili207 / Rclone systemd service.md
Last active October 29, 2024 20:52
Rclone systemd user service

rclone systemd service

Preparation

This service will use the same remote name you specified when using rclone config create. If you haven't done that yet, do so now.

Next, create the mountpoint for your remote. The service uses the location ~/mnt/<remote> by default.

mkdir ~/mnt/dropbox
@Windsooon
Windsooon / leetcode_retag.md
Last active October 7, 2024 04:20
Retag most popular Leetcode problems

osjobs

海外兔

website

# GLiNet MT300N-V2 安装 SSR plus 插件
GLiNet 是一家 生产 便携路由的国内厂商 好像外销为主。
最主要的是他家 路由系统采用的是开源 OpenWrt 系统 并在github 上开源 并提供sdk 和 很多插件
但是国内政策的关系 国内买到的路由器固件内 并没有提供直接安装 SS SSR V2ray 的方法。
经过在 恩三论坛 学习了下(www.right.com.cn) 已经成功把lean 开源的(https://github.com/coolsnowwolf/lede.git) SSR plus 插件 成功的安装到了 MT300N-V2 固件中,下面记录一些安装步骤。
@icpz
icpz / v2ray-as-ss-over-v2plugin-server-config.json
Last active February 15, 2023 16:50
`shadowsocks over v2ray-plugin' as client work with `v2ray' as server
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "info"
},
"inbounds": [
{
"port": "10000", /* this is the server port for client */
"listen": "127.0.0.1",
@KyonLi
KyonLi / S22v2ray
Created February 10, 2019 07:52
entware v2ray
#!/bin/sh
ENABLED=yes
PROCS=v2ray
ARGS="-config /opt/etc/v2ray/config.pb -format=pb"
PREARGS=""
DESC=$PROCS
PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SRC_BYPASS_IP_FILE=/opt/etc/v2ray/src_bypass_ip.txt

Hello World In Python 10 Ways

1. general

print('Hello World')

2. sys stdout

import sys
@srivathsanmurali
srivathsanmurali / dynamicParallelismCMAKE.md
Last active August 12, 2024 15:47
Compileing CUDA with dynamic parllelism using CMAKE

Dynamic parallelism using CUDA and CMAKE

Requirements:

  • compute_35 or higher cards. I am using Pascal (compute_61)

CMAKE MAGIC

  • set(CUDA_SEPARABLE_COMPILATION TRUE)
  • list(APPEND CUDA_NVCC_FLAGS -gencode arch=compute_61,code=sm_51;)
  • target_link_libraries(yourCudaLib ${CUDA_cudadevrt_LIBRARY}
@abhishekcs10
abhishekcs10 / install-gcc-5.4.0.sh
Last active September 11, 2024 02:17 — forked from jtilly/install-gcc-4.9.3.sh
Install GCC 5.4.0
#!/bin/bash
# this script installs GCC 5.4.0
# to use it navigate to your home directory and type:
# sh install-gcc-5.4.0.sh
# download and install gcc 4.9.3
wget https://github.com/gcc-mirror/gcc/archive/gcc-5_4_0-release.tar.gz
tar xzf gcc-5_4_0-release.tar.gz
cd gcc-5_4_0-release