An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| ((document, limit) => { | |
| const data = Array.from(document.querySelectorAll('*')) | |
| .map((el) => ({zIndex: Number(getComputedStyle(el).zIndex), element: el })) | |
| .filter(({ zIndex }) => !isNaN(zIndex)) | |
| .sort((r1, r2) => r2.zIndex - r1.zIndex) | |
| .slice(0, limit); | |
| console.table(data); | |
| })(document, 50); |
| # 安装ntfs-3g模块 | |
| sudo apt-get install ntfs-3g -y | |
| # 更新内核模块 | |
| sudo moprobe fuse | |
| # 重启 | |
| sudo reboot |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| import json | |
| import requests | |
| # Authentication for user filing issue (must have read/write access to | |
| # repository to add issue to) | |
| USERNAME = 'CHANGEME' | |
| PASSWORD = 'CHANGEME' | |
| # The repository to add this issue to | |
| REPO_OWNER = 'CHANGEME' |
| Raspbian change swap size | |
| Raspberry PI - increase swap size | |
| Stop the swap. sudo dphys-swapfile swapoff. | |
| Modify the size of the swap. As root , edit the file /etc/dphys-swapfile and modify the variable CONF_SWAPSIZE : CONF_SWAPSIZE=1024. ... | |
| Start the swap. sudo dphys-swapfile swapon. |
在.ovpn或.conf文件末尾加上以下配置
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf
完成后使用 openvpn ./client1.conf 重新连接openvpn
| checkout([$class: 'GitSCM', | |
| branches: [[name: '*/master']], | |
| userRemoteConfigs: [[url: 'https://<token>@<bbgithub_git_url>']], | |
| extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: 'tp-fdm-monitor-bcl']] | |
| ]) |
| # As per this guide -- http://raspberrypi.stackexchange.com/questions/3617/how-to-install-unrar-nonfree#3618 | |
| # Uninstall unrar-free. | |
| sudo apt-get remove unrar-free | |
| # Make sure you have a source repository by editing /etc/apt/sources.list. | |
| cat /etc/apt/sources.list | |
| # Sync the apt database. | |
| sudo apt-get update |