Step-by-step installtion of cGit on nginx without funky rewrite rules.
This is for
Accounting | |
Active Lifestyle | |
Ad Targeting | |
Adult | |
Advanced Materials | |
Adventure Travel | |
Advertising | |
Advertising Exchanges | |
Advertising Networks | |
Advertising Platforms |
#!/usr/bin/env PYTHONIOENCODING=utf-8 python | |
# encoding: utf-8 | |
"""Git pre-commit hook which lints Python, JavaScript, SASS and CSS""" | |
from __future__ import absolute_import, print_function, unicode_literals | |
import os | |
import subprocess | |
import sys |
# Example nginx + git HTTP Smart mode (git-http-backend) + HTTP Authentication + HTTPS redirect | |
# jeroen@massar.ch - http://jeroen.massar.ch | |
server { | |
listen 192.0.1.1:80; | |
listen [2001:db8::1]:80; | |
# Redirect all non-HTTPS traffic to the HTTPS variant | |
return 301 https://$host$request_uri; | |
} |
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
package main | |
import ( | |
"fmt" | |
"os" | |
"path/filepath" | |
) | |
func main() ([]string, error) { | |
searchDir := "c:/path/to/dir" |
name | url | id | followers | investors | startups | jobs | |
---|---|---|---|---|---|---|---|
Information Technology | https://angel.co/information-technology | 25 | 6860 | 2381 | 84617 | 12929 | |
Consumers | https://angel.co/consumers | 24 | 3969 | 1268 | 58531 | 7753 | |
Enterprises | https://angel.co/enterprises | 733 | 3465 | 1172 | 36913 | 6727 | |
Media | https://angel.co/media-1 | 11 | 4699 | 1549 | 10186 | 1097 | |
Health Care | https://angel.co/health-care | 13 | 113123 | 22508 | 7750 | 1154 | |
Education | https://angel.co/education | 43 | 11233 | 3727 | 7495 | 993 | |
Finance | https://angel.co/finance | 321 | 5029 | 1681 | 7143 | 1362 | |
Life Sciences | https://angel.co/life-sciences | 9 | 3871 | 1285 | 4467 | 274 | |
Platforms | https://angel.co/platforms | 152 | 3742 | 1218 | 4119 | 669 |
codecov: | |
token: uuid # Your private repository token | |
url: "http" # for Codecov Enterprise customers | |
slug: "owner/repo" # for Codecov Enterprise customers | |
branch: master # override the default branch | |
bot: username # set user whom will be the consumer of oauth requests | |
ci: # Custom CI domains if Codecov does not identify them automatically | |
- ci.domain.com | |
- !provider # ignore these providers when checking if CI passed | |
# ex. You may test on Travis, Circle, and AppVeyor, but only need |
FROM gliderlabs/alpine:3.3 | |
COPY myawesomescript /bin/myawesomescript | |
COPY root /var/spool/cron/crontabs/root | |
RUN chmod +x /bin/myawesomescript | |
CMD crond -l 2 -f |
/*<?php | |
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
//\u000A\u002F\u002A | |
class PhpJava { | |
static function main() { | |
echo(//\u000A\u002A\u002F | |
"Hello World!"); | |
}} | |
//\u000A\u002F\u002A | |
PhpJava::main(); |