repos.txt
contains a list of repository names in{UserName}/{RepoName}
format, e.g.IanZhao/to-be-deleted
. use this file to track all repositories you want to delete.- Open
fetchSaveRepo.js
and update url with your github username. - you need
node-fetch
to fetch contents, just do anpm init
with default settings and runnpm install node-fetch
. - run
node fetchSaveRepo.js
- Generate a Authorization Token for repo delete access token
- Copy the token and put in in place
TOKEN_HERE
indeleteRepos.sh
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
# UPDATED 17 February 2019 | |
# Redirect all HTTP traffic to HTTPS | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name www.domain.com domain.com; | |
return 301 https://$host$request_uri; | |
} | |
# SSL configuration |
# 0 is too far from ` ;) | |
set -g base-index 1 | |
# reset keys | |
unbind-key -n S-Left | |
unbind-key -n S-Right | |
# custom binding | |
set -g prefix C-s | |
bind C-s send-prefix |
import bs4 | |
import cssutils | |
import logging | |
import urlparse | |
class HTML_cleaner(object): | |
soup = None; | |
highlighting_selectors = {} |
Django documentation says to use:
WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com
<Directory /path/to/mysite.com/mysite>
<Files wsgi.py>
Require all granted
Debounce a function when you want it to execute only once after a defined interval of time. If the event occurs multiple times within the interval, the interval is reset each time.
Example A user is typing into an input field and you want to execute a function, such as a call to the server, only when the user stops typing for a certain interval, such as 500ms.
Debounce a function when you want it to execute only once after a defined interval of time. If the event occurs multiple times within the interval, the interval is reset each time.
Example A user is typing into an input field and you want to execute a function, such as a call to the server, only when the user stops typing for a certain interval, such as 500ms.
Install Package Control for easy package management.
- Open the console with
Ctrl+`
- Paste in the following:
# Compiled Python files | |
*.pyc | |
# Folder view configuration files | |
.DS_Store | |
Desktop.ini | |
# Thumbnail cache files | |
._* | |
Thumbs.db |