Skip to content

Instantly share code, notes, and snippets.

View T2hhbmEK's full-sized avatar

T2hhbmEK T2hhbmEK

  • China
  • 02:13 (UTC +08:00)
View GitHub Profile
@T2hhbmEK
T2hhbmEK / PKGBUILD
Created October 15, 2021 11:46
anbox-git
# Maintainer: Christoph Schmidpeter <[email protected]>
# Co-Maintainer: Mubashshir <[email protected]>
# Contributor: Iwan Timmer <[email protected]>
# pkg: git
pkgname=anbox-audio-git
_pkgname=anbox-git
pkgver=r1364.8d026df
pkgrel=1
epoch=1
@T2hhbmEK
T2hhbmEK / clock.html
Created April 29, 2021 13:51 — forked from sam0737/clock.html
OBS Studio: A HTML page for showing current date and time in the video
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>A simple clock</title>
</head>
<body translate="no" >
@T2hhbmEK
T2hhbmEK / adb_captive_portal.sh
Created June 6, 2018 17:35
adb_captive_portal.sh
adb shell settings put global captive_portal_http_url http://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_https_url https://connect.rom.miui.com/generate_204
adb shell settings put global captive_portal_fallback_url http://www.google.cn/generate_204
adb shell settings put global captive_portal_other_fallback_urls http://www.qualcomm.cn/generate_204
name: "exp_113_cls"
layer {
name: "data"
type: "EnhancedImageData"
top: "data"
top: "label"
enhanced_image_data_param {
root_folder: "/data/shuhao/images/"
source: "/home/shuhao/share/mrdk/train_all_bbox.txt"
@T2hhbmEK
T2hhbmEK / Makefile.config
Created December 13, 2017 19:38
Install Caffe on macOS High Sierra
## Refer to http://caffe.berkeleyvision.org/installation.html
# Contributions simplifying and improving our build system are welcome!
# cuDNN acceleration switch (uncomment to build with cuDNN).
# USE_CUDNN := 1
# CPU-only switch (uncomment to build without GPU support).
CPU_ONLY := 1
# uncomment to disable IO dependencies and corresponding data layers
@T2hhbmEK
T2hhbmEK / ASUS-MERLIN-IPV6.md
Last active May 30, 2017 13:30
ASUS-MERLIN-IPV6

1.6relayd fireware-start

ip6tables -F
ip6tables -P INPUT ACCEPT
ip6tables -P FORWARD ACCEPT

wan-start

/jffs/bin/6relayd -d -A vlan2 br0
@T2hhbmEK
T2hhbmEK / iconpack.md
Last active December 5, 2016 09:58
Iconpack android studio project configuration

Get the original code.

  • folk the code repo.
  • git clone the project.

Install adb interface driver

  • connect the xperia device.
  • download and extract the driver from sony devlop website.
  • install the driver from device manager.
  • grant adb access in your device.
<!DOCTYPE html><html><head><meta charset="utf-8"><style>body {
width: 45em;
border: 1px solid #ddd;
outline: 1300px solid #fff;
margin: 16px auto;
}
body .markdown-body
{
padding: 30px;
@T2hhbmEK
T2hhbmEK / LongestSubstringWithoutRepeatingCharacters.c
Last active September 25, 2015 18:46
Longest Substring Without Repeating Characters
int lengthOfLongestSubstring(char* s) {
int r, c, i, j;
int hash[256] = { 0 };
unsigned char * us = s;
if (us[0] == '\0') {
return 0;
}
r = 0;
i = 0;
j = 0;
@T2hhbmEK
T2hhbmEK / AddTwoNumbers.c
Created September 25, 2015 18:44
Add Two Numbers
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* struct ListNode *next;
* };
*/
typedef struct ListNode ListNode;