Skip to content

Instantly share code, notes, and snippets.

ouweiya ouweiya

Block or report user

Report or block ouweiya

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
View safari-reaper.html
<!DOCTYPE html>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
body {
ritwickdey / face-detection-chrome-api.js
Last active Oct 18, 2019
Face Detection using Google Chrome API (Experimental)
View face-detection-chrome-api.js
const detectFace = () => {
if(!window.FaceDetector) return console.log('Unsupported Version or Feature is not enabled')
const img = document.querySelector('#targetImg');
const faceDetector = new FaceDetector();
const scale = img.width / img.naturalWidth;
.then(faces => => face.boundingBox)
yzf / debian_9_ali.list
Last active May 17, 2019
debian 9 阿里云源
View debian_9_ali.list
deb stretch main contrib non-free
deb stretch-proposed-updates main contrib non-free
deb stretch-updates main contrib non-free
deb-src stretch main contrib non-free
deb-src stretch-proposed-updates main contrib non-free
deb-src stretch-updates main contrib non-free
deb stretch/updates main non-free contrib
deb-src stretch/updates main non-free contrib
View bs-config.js
module.exports = {
server: '.',
files: [
ui: false,
notify: false
vbsessa /
Last active Jan 2, 2020
How to customize Chrome devtools fonts
  1. Enable #enable-devtools-experiments flag in chrome://flags section.

  2. Open Chorme Devtools and check Settings > Experiments > Allow custom UI themes.

  3. Create the following four files in a dedicated folder.

    3.1. devtools.html

    <body><script src="devtools.js"></script></body>
rmkpatchaa /
Last active Jan 10, 2020
Bulk delete github repos

Use this trick to bulk delete your old repos or old forks

(Inspired by

  1. Open in a new tab all to-be-deleted github repositores (Use the mouse’s middle click or Ctrl + Click)

  2. Use one tab to shorten them to a list.

  3. Save that list to some path

  4. The list should be in the form of “ur_username\repo_name” per line. Use regex search (Sublime text could help). Search for ' |.*' and replace by empty.

moehlone / make_writable.js
Created Mar 17, 2016
Make JavaScript readonly propertys writable (example for overwriting navigator.userAgent; useful for unit tests -> browser detection)
View make_writable.js
* Creates a read/writable property which returns a function set for write/set (assignment)
* and read/get access on a variable
* @param {Any} value initial value of the property
function createProperty(value) {
var _value = value;

npm rank

This gist is updated daily via cron job and lists stats for npm packages:

  1. Top 1,000 most depended-upon packages
  2. Top 1,000 packages with largest number of dependencies
  3. Top 1,000 packages with highest PageRank score
View ctlr+s (cmd+s) save all in atom
'.workspace, .workspace, .editor, .text-editor':
'cmd-s': 'window:save-all' # ctrl-s for Linux/Windows
famousgarkin / powershell-proxy-set-clear.ps1
Last active Dec 25, 2019
PowerShell Set-Proxy, Clear-proxy
View powershell-proxy-set-clear.ps1
# NOTE: registry keys for IE 8, may vary for other versions
$regPath = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings'
function Clear-Proxy
Set-ItemProperty -Path $regPath -Name ProxyEnable -Value 0
Set-ItemProperty -Path $regPath -Name ProxyServer -Value ''
Set-ItemProperty -Path $regPath -Name ProxyOverride -Value ''
[Environment]::SetEnvironmentVariable('http_proxy', $null, 'User')
You can’t perform that action at this time.