Ironbin


  • 首页

  • 关于

  • 标签

  • 分类

  • 归档

  • 搜索

Gitlab Remote Rejected Error

发表于 2019-06-13 | 分类于 git | | 阅读次数:

今天迁移一个项目到 Gitlab,前面一切正常,当推送标签时

1
$ git push -u origin --tags

收到下面的错误提示:

1
2
3
4
5
6
7
...

remote: GitLab: Failed to authorize your Git request: internal API unreachable
To <...>
! [remote rejected] origin/HEAD -> origin/HEAD (pre-receive hook declined)

...
阅读全文 »

Vim 用法小结

发表于 2019-04-29 | 分类于 vim | | 阅读次数:

插件

NERDTree

这里

窗口跳转:Ctrl - W → Ctrl - h/j/k/l

TagBar

1
2
3
4
#Linux
sudo apt-get install ctags
#MacOS
brew install ctags

安装

1
Plugin 'majutsushi/tagbar'

SpaceVim

Chromium 模块

发表于 2019-03-03 | 分类于 chromium | | 阅读次数:
模块 说明 必要性
default_apps 默认安装应用的目录 ×
default_apps/external_extensions.json 默认安装的配置文件 ×
Extensions 默认安装扩展的目录 ×
Extensions/external_extensions.json 默认安装的扩展的配置文件 ×
Installer/chrmstp.exe chrome setup,和 setup.exe 完全一样 [1] ×
Installer/setup.exe 安装文件,用于升级或卸载 ×
Locales 多语言文件 √
VisualElements ? ×
WidevineCdm 自带组件(component),Widevine Content Decryption Module,用于在HTML5视频网站播放DRM加密的视频,如netflix ×?
64.0.3282.186.manifest chrome 主清单文件 √
chrome.dll chrome 主模块 √
chrome.dll.sig 签名文件? ×
chrome.exe.sig 签名文件? ×
chrome_100_percent.pak 1x 资源包 √
chrome_200_percent.pak 2x 资源包 √
chrome_child.dll chrome 子进程模块? √
chrome_child.dll.sig 签名文件? ×
chrome_elf.dll Chrome Early Loading Framework [2] √
chrome_watcher.dll Watcher进程加载 chrome_watcher.dll √
d3dcompiler_43.dll required for Windows XP。 Direct3D HLSL Compiler for Redistribution ×
d3dcompiler_47.dll required for Windows Vista and newer。 Direct3D HLSL Compiler for Redistribution ×
eventlog_provider.dll windows 的事件日志 √?
ffmpeg.dll 多媒体支持。如果不需要播放视频等 ×
icudtl.dat International Components for Unicode Data File Little Endian,ICU库是一个支持国际化,本地化的软件库[3] √
libegl.dll Embedded-System Graphics Library) [4] ×
libglesv2.dll OpenGL for Embedded Systems (OpenGL ES or GLES) ×
nacl_irt_x86_64.nexe Native Client integrated-runtime √
natives_blob.bin binary large object,V8 引擎需要的数据文件 √
resources.pak 资源文件 √
snapshot_blob.bin binary large object,V8 引擎需要的数据文件 √
v8_context_snapshot.bin Create V8 contexts from a snapshot file. It will make the initializations of V8 contexts for 1.6-3 times faster. √
wow_helper.exe win32与win64兼容工具 √
阅读全文 »

Git 常用用法

发表于 2019-02-21 | 分类于 git | | 阅读次数:

1 导出 commit 修改的文件

1
git diff-tree -r --no-commit-id --name-only --diff-filter=ACMRT $commit_id | xargs tar -rf export.tar

git diff:

  • -r $commit_id:Take a diff of the given commit to its parent(s) (including all subdirectories, not just the top directory)
  • –no-commit-id –name-only:只输出文件名,不输出 SHA1
  • –diff-filter=ACMRT:Only show files added, copied, modified, renamed or that had their type changed (eg. file → symlink) in this commit. This leaves out deleted files.

tar:

  • -r:添加文件到已经压缩的文件
  • -f:指定压缩文件
阅读全文 »

Laradock 配置 xdebug 与 phpstorm

发表于 2019-02-20 | 分类于 php | | 阅读次数:

1 配置 Laradock

1.1 修改 laradock/.env

打开 .env 文件,修改下列配置项:

1
2
WORKSPACE_INSTALL_XDEBUG=true
PHP_FPM_INSTALL_XDEBUG=true

1.2 配置 laradock/php-fpm/xdebug.ini

php-fpm 用于调试 php 的服务器模式,基于浏览器请求。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
; NOTE: The actual debug.so extention is NOT SET HERE but rather (/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini)

; xdebug.remote_host=docker.for.mac.host.internal
; 这里要注意,很多文章说无须修改此项,但我的环境不行,必须配置
; 关于 host.docker.internal,请参考:https://docs.docker.com/docker-for-mac/networking/#there-is-no-docker0-bridge-on-macos
xdebug.remote_host=host.docker.internal
xdebug.remote_connect_back=0
; 配置端口号
xdebug.remote_port=9001
; 配置 key
xdebug.idekey=PHPSTORM

; 开启
xdebug.remote_autostart=1
; 开启
xdebug.remote_enable=1
xdebug.cli_color=0
xdebug.profiler_enable=0
xdebug.profiler_output_dir="~/xdebug/phpstorm/tmp/profiling"

xdebug.remote_handler=dbgp
xdebug.remote_mode=req

xdebug.var_display_max_children=-1
xdebug.var_display_max_data=-1
xdebug.var_display_max_depth=-1
阅读全文 »

聊聊 WebRTC

发表于 2019-02-16 | 分类于 webrtc | | 阅读次数:

Web Real-Time Communication(Web实时通信,WebRTC)由一组标准、协议和JavaScript API组成,用于实现浏览器之间(端到端)的音频、视频及数据共享。WebRTC使得实时通信变成一种标准功能,任何Web应用都无需借助第三方插件和专有软件,而是通过简单地JavaScript API即可完成。

名词

1 STUN

Session Traversal Utilities for NAT (STUN) – RFC 5389

2 TURN

中继方式 NAT 穿透(Traversal Using Relay NAT (TURN) – RFC 5766)

3 ICE

交互式连接建立(Interactive Connectivity Establishment (ICE) – RFC 5245)

一种综合性的NAT穿越技术,它是一种框架,可以整合各种NAT穿越技术如STUN、TURN(Traversal Using Relay NAT 中继NAT实现的穿透)。ICE会先使用STUN,尝试建立一个基于UDP的连接,如果失败了,就会去TCP(先尝试HTTP,然后尝试HTTPS),如果依旧失败ICE就会使用一个中继的TURN服务器。

通信的两侧可能会处于不同的网络环境中,有时会存在好几层的访问控制、防火墙、路由跳转,所以我们需要一种方法在复杂的网络环境中找到对方,并且连接到相应的目标。WebRTC 使用集成了 STUN、TURN 的 ICE 来进行双方的数据通信。

阅读全文 »

解决 Windows 远程桌面连接失败

发表于 2019-02-01 | 分类于 修理 | | 阅读次数:

1 修改防火墙

  1. 打开 控制面板 > 安全 > 防火墙
  2. 打开 Allow an app or feature through Windows Firewall
  3. 找到 Remote Desktop,选中 Private

2 检查远程访问是否被允许

  1. 通过搜索,打开 Allow Remote connections to your computer
  2. 选中 Allow Remote Assistance connections to this computer
  3. 选中 Allow remote connections to this computer
阅读全文 »

网络工具:ARP

发表于 2019-02-01 | 分类于 network | | 阅读次数:

1 查看 arp 映射列表

1
$ arp -a

2 清除 arp 映射

1
2
3
4
5
# 清除一个映射
$ arp -d 192.168.199.1

# 清除全部映射
$ arp -ad
阅读全文 »

Chomium 调试方法

发表于 2019-01-31 | 分类于 chromium | | 阅读次数:

Linux 平台

基础调试

1
$ gdb -tui -ex=r --args out/Debug/chrome --disable-seccomp-sandbox http://google.com

参考

  1. Tips for debugging on Linux

Chomium 崩溃日志

发表于 2019-01-31 | 分类于 chromium | | 阅读次数:

生成 Crash 报告

打开 Chromium,通过访问 http://crash/ 来触发生成崩溃报告,保存在:

  • Linux:~/.config/google-chrome/Crash Reports/
  • Windows/Mac:/path/to/profile/Crash Reports

在 Linux 平台,通过设置环境变量,可以阻止报告发送给服务器:

1
$ env CHROME_HEADLESS=1 ./out/Debug/chrome-wrapper
阅读全文 »
123…12
程学彬

程学彬

117 日志
48 分类
99 标签
Creative Commons
Links
  • ShinySky
0%
© 2014 — 2020 程学彬