Skip to content

Commit

Permalink
Remove .Xdefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed Feb 3, 2021
1 parent a9447cb commit 2587638
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
7 changes: 7 additions & 0 deletions bin/frxvt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/sh

/usr/bin/urxvt \
-bg '#111' -fg '#ddd' \
-geometry 80x30 +sb -lsp 5 \
-fn 'xft:CourierPrimeCode:size=10' \
-e fish
3 changes: 3 additions & 0 deletions bin/wxwork
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

exec sudo -i /opt/deepinwine/apps/Deepin-WXWork/run.sh
5 changes: 0 additions & 5 deletions dotfiles/Xdefaults

This file was deleted.

1 change: 0 additions & 1 deletion dotfiles/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ alias vi='vim'
alias vr='vim -R'
alias winzip='unzip -O cp936'
alias wmount='sudo mount -o rw,uid=$UID,iocharset=utf8'
alias wxwork='sudo -i /opt/deepinwine/apps/Deepin-WXWork/run.sh'
alias xcp='xsel -b <'
alias xlock='xtrlock -f && cmatrix'
alias xtemp='redshift -PO'
2 changes: 1 addition & 1 deletion install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
- cmatrix
- curl
- di
- fish
- fonttools=3.0-1
- fping
- gnupg1
Expand Down Expand Up @@ -366,7 +367,6 @@
force: true
owner: "{{user}}"
with_items:
- Xdefaults
- bashrc
- config/Code/User/keybindings.json
- config/Code/User/settings.json
Expand Down
5 changes: 2 additions & 3 deletions roles/socks5x/files/src/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,13 @@ export function createHistory(domain: string, choose: number, duration: number,
}

export function countConnErr(domain: string) {
db.exec(`delete from history where time < ${Date.now() - 30 * 86400 * 1000}`)
return db.prepare(`
select
sum(case when choose = 0 then 1 else 0 end) as error0,
sum(case when choose = 1 then 1 else 0 end) as error1
from history
where domain = @domain and duration < 32000 and traffic < 32 and error > ''
`).get({ domain })
where domain = @domain and duration < 32000 and traffic < 32 and error > '' and time > @lastDay
`).get({ domain, lastDay: Date.now() - 86400 * 1000 })
}

export function countReadErr(domain: string, prefer: number) {
Expand Down

0 comments on commit 2587638

Please sign in to comment.