Skip to content

Instantly share code, notes, and snippets.

🐷
Peppa

alswl alswl

🐷
Peppa
Block or report user

Report or block alswl

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
@alswl
alswl / command.sh
Created Jun 21, 2019
macOS codesign
View command.sh
codesign --entitlements gdb-entitlement.xml -fs gdbc /usr/local/Cellar/cgdb/0.7.0_1/bin/cgdb
codesign --entitlements gdb-entitlement.xml -fs gdbc /usr/local/Cellar/gdb/8.3/bin/gdb
View robbyrussell-alswl.zsh-theme
local ret_status="%(?:%{$fg_bold[green]%}$:%{$fg_bold[red]%}$)"
PROMPT='%{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)${ret_status}%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
@alswl
alswl / bin scripts for Python(uWSGI)
Last active May 27, 2019
bin scripts for Python(uWSGI)
View bin scripts for Python(uWSGI)
bin scripts for Python(uWSGI)
@alswl
alswl / repositories
Created Mar 30, 2019
sbt repositories in China
View repositories
[repositories]
local
aliyun-ivy: https://maven.aliyun.com/repository/public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
aliyun-maven: https://maven.aliyun.com/repository/public/
netease-ivy: http://mirrors.163.com/maven/repository/maven-public/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
netease-maven: http://mirrors.163.com/maven/repository/maven-public/
huaweicloud-ivy: https://mirrors.huaweicloud.com/repository/ivy/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
huaweicloud-maven: https://mirrors.huaweicloud.com/repository/maven/
bintray-typesafe-ivy: https://dl.bintray.com/typesafe/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext]
jcenter: http://jcenter.bintray.com
@alswl
alswl / index.html
Last active Feb 10, 2019
dijingchao.com/index.html
View index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv=Content-Type content="text/html;charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>一个编程笔记</title>
<link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<style>
/* Sticky footer styles
@alswl
alswl / basic-auth.xml
Created Dec 25, 2018
spring basic auth for HTTP bean configuration
View basic-auth.xml
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd">
<bean id="restTemplate" class="org.springframework.web.client.RestTemplate">
<constructor-arg ref="httpClientFactory" />
<property name="messageConverters">
View emp-dept-mysql.sql
DROP TABLE IF EXISTS dept;
DROP TABLE IF EXISTS salgrade;
DROP TABLE IF EXISTS emp;
CREATE TABLE salgrade(
grade int(4) not null primary key,
losal decimal(10,2),
hisal decimal(10,2));
CREATE TABLE dept(
View arch-docker-fox.md

Build Foxone in Docker

Docker start in macOS:

docker-machine start default
eval $(docker-machine env default)
We couldn’t find that file to show.
View migration-db-offline-readonly.gv
digraph G {
compound = true;
fontsize = 14;
margin = "0,0";
ranksep = 0.2;
nodesep = 0.5;
penwidth = 0.5;
colorscheme = spectral7;
You can’t perform that action at this time.