Skip to content

Instantly share code, notes, and snippets.

💪
working

Larry Li larryli

💪
working
Block or report user

Report or block larryli

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@larryli
larryli / Vagrantfile
Last active Apr 28, 2019
ESP-IDF Vagrantfile
View Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
class VagrantPlugins::ProviderVirtualBox::Config < Vagrant.plugin("2", :config)
def update_customizations(customizations)
@customizations = customizations
end
end
class VagrantPlugins::ProviderVirtualBox::Action::Customize
@larryli
larryli / .profile
Created Dec 27, 2018
set zh LANG for ssh
View .profile
#!/bin/bash
if tty | fgrep -q pts ; then
export LANG=zh_CN.UTF-8
fi
@larryli
larryli / .gitlab-ci.yml
Created Dec 26, 2018
esp32 idf ci build
View .gitlab-ci.yml
image: larryli/esp-idf-ci-env:latest
stages:
- build
# https://github.com/espressif/esp-idf-template
build_app:
stage: build
script:
- make defconfig
@larryli
larryli / .gitlab-ci.yml
Created Dec 26, 2018
esp32 idf ci build
View .gitlab-ci.yml
image: espressif/esp32-ci-env
cache:
paths:
- esp-idf/
variables:
IDF_PATH: $CI_PROJECT_DIR/esp-idf
IDF_VERSION: v3.1.1
@larryli
larryli / openpgp.txt
Created Sep 7, 2018
OpenKeychain 关联用户标识
View openpgp.txt
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:b4448800f2129cd9e136bfffb64fdf3b2d8b022c]
View 440300.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@larryli
larryli / .gitlab-ci.yml
Created May 17, 2018
Gitlab CI build for go project
View .gitlab-ci.yml
stages:
- build
compile:
stage: build
script:
- go build -ldflags "-s -w -X main.Version=$CI_COMMIT_TAG"
artifacts:
name: "$CI_PROJECT_NAME-$CI_COMMIT_TAG"
paths:
@larryli
larryli / buttons.go
Last active Aug 16, 2017
Orange Pi Zero TTP224
View buttons.go
package main
import (
"fmt"
"github.com/davecheney/gpio"
"os"
"os/signal"
"time"
)
View trans_china_districts.php
<?php
$directly = ['11', '12', '31', '50', '81', '82'];
$names = [
'拉祜族佤族布朗族傣族自治县', '保安族东乡族撒拉族自治县', '彝族哈尼族拉祜族自治县', '傣族拉祜族佤族自治县',
'哈尼族彝族傣族自治县', '彝族回族苗族自治县', '布依族苗族自治县', '布依族苗族自治州', '白族普米族自治县',
'苗族瑶族傣族自治县', '傣族景颇族自治州', '独龙族怒族自治县', '哈尼族彝族自治县', '哈尼族彝族自治县', '哈尼族彝族自治州',
'满族蒙古族自治县', '蒙古族藏族自治州', '苗族布依族自治县', '苗族土家族自治县', '土家族苗族自治县', '壮族苗族自治州',
'土家族苗族自治州', '仡佬族苗族自治县', '藏族羌族自治州', '傣族佤族自治县', '傣族彝族自治县', '哈萨克族自治县',
'回族土族自治县', '回族彝族自治县', '柯尔克孜自治州', '黎族苗族自治县', '苗族侗族自治县', '苗族侗族自治州',
@larryli
larryli / GIT_SSH_COMMAND.sh
Last active Aug 16, 2018
Git ssh socks proxy
View GIT_SSH_COMMAND.sh
#!/bin/sh
export GIT_SSH_COMMAND='ssh -o ProxyCommand="connect -S 127.0.0.1:1080 %h %p"'
git config --global core.sshCommand 'ssh -o ProxyCommand="connect -S 127.0.0.1:1080 %h %p"'
git clone -c=core.sshCommand 'ssh -o ProxyCommand="connect -S 127.0.0.1:1080 %h %p"' git@github.com:larryli/ipv4.git
git config core.sshCommand 'ssh -o ProxyCommand="connect -S 127.0.0.1:1080 %h %p"'
You can’t perform that action at this time.