Skip to content

Commit b82e8fb

Browse files
committed
Initial import
0 parents  commit b82e8fb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2839
-0
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*.md]
5+
max_line_length = 0
6+
trim_trailing_whitespace = true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
site/*

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
language: python
2+
python:
3+
- "2.7"
4+
5+
install: "pip install -r requirements.txt"
6+
7+
script: /usr/local/bin/mkdocs build

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM python:2.7.12-onbuild
2+
3+
WORKDIR /usr/src/app/
4+
5+
CMD ["/usr/local/bin/mkdocs", "build"]

docs/Dev/angular2.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Angular 2
2+
3+
## Resources
4+
5+
[typescriptlang refrence](http://www.typescriptlang.org/docs/handbook/basic-types.html)
6+
7+
[Angular Weekly Meeting Notes](http://g.co/ng/weekly-notes)
8+
9+
[angular-cli](https://github.com/angular/angular-cli)
10+
11+
## Blogs
12+
13+
[Angular](http://angularjs.blogspot.com/)
14+
15+
[http://blog.thoughtram.io/](http://blog.thoughtram.io/)
16+
17+
## Books
18+
19+
[Become a ninja with Angular 2](https://books.ninja-squad.com/angular2)
20+
21+
[ng-book2](https://www.ng-book.com/2/)
22+
23+
## UI
24+
25+
[material2](https://github.com/angular/material2)
26+
27+
[ng-bootstrap](https://ng-bootstrap.github.io/#/home)
28+
29+
Overide css in ng-bootstrap cild component
30+
31+
```javascript
32+
:host /deep/ .card-block {
33+
padding: 0;
34+
}
35+
```
36+
37+
[source-map-explorer](https://github.com/danvk/source-map-explorer)
38+
39+
## Grids
40+
41+
[angular2-data-table](https://swimlane.gitbooks.io/angular2-data-table/content/)
42+
43+
[vaadin-grid](https://vaadin.com/elements/-/element/vaadin-grid)
44+
45+
[ng2-table](http://valor-software.com/ng2-table/)

docs/Dev/c.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# C
2+
3+
Sample.c
4+
5+
```c
6+
#include <stdio.h>
7+
8+
int main()
9+
{
10+
printf("hello there person");
11+
}
12+
```
13+
14+
## Windows
15+
16+
### Visual C++
17+
18+
Compile Sample.c to Test.exe with Visual C++ compiler
19+
20+
```bat
21+
cl Sample.c /nologo /FeTest.exe /W4 /TP
22+
```
23+
24+
- `/W4` Sets warning level
25+
- `/TP` Compile all files as .cpp
26+
27+
### GCC
28+
29+
[MinGW Distro](https://nuwen.net/mingw.html)
30+
31+
```bash
32+
gcc Sample.c -Wall
33+
type sample.c
34+
gcc Sample.c -Wall -std=c99 Wextra -pedantic -o Sample
35+
```
36+
37+
## Language
38+
39+
Variables
40+
41+
```c
42+
int distance, progress, remaining;
43+
printf("%d\n", distance, progress, remaining)
44+
```

docs/Dev/editors.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Code Editors
2+
3+
## Atom
4+
5+
[https://atom.io/](https://atom.io/)
6+
7+
8+
## VS Code
9+
10+
[https://code.visualstudio.com](https://code.visualstudio.com)
11+
12+
### Integrated Terminal
13+
14+
- Use the Ctrl+` keyboard shortcut with the backtick character.
15+
16+
### Editorconfig
17+
18+
[http://editorconfig.org/](http://editorconfig.org/)
19+
20+
[EditorConfig for VS Code](https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig)
21+
22+
## Lighttable
23+
24+
[http://lighttable.com/](http://lighttable.com/)

docs/Dev/electron.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
```bash
3+
npm install electron-prebuilt -D
4+
```
5+
6+
```bash
7+
npm run
8+
```
9+

docs/Dev/hg.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
https://www.mercurial-scm.org/wiki/ConvertExtension
2+
3+
4+
## --filemap map.txt
5+
6+
```txt
7+
include "."
8+
exclude "doc"
9+
include "doc/foo bar.txt"
10+
include "doc/FAQ"
11+
rename "doc/FAQ" "faq"
12+
```
13+
14+
## --branchmap branch.txt
15+
16+
```txt
17+
original_branch_name new_branch_name
18+
```

docs/Dev/ionic2.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
2+
[https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview](https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview)
3+
4+
ionic plugin add cordova-plugin-crosswalk-webview
5+
6+
Android Jelly Bean OS (4.1.1)
7+
https://portal.motorolasolutions.com/Support/US-EN/Resolution?solutionId=98792&productDetailGUID=90803a4a97940410VgnVCM10000081c7b10aRCRD&detailChannelGUID=fea56e203763e310VgnVCM1000000389bd0aRCRD
8+
9+
http://gonehybrid.com/build-your-first-mobile-app-with-ionic-2-angular-2-part-7/
10+
11+
https://cordova.apache.org/docs/en/latest/guide/platforms/android/
12+
13+
https://crosswalk-project.org/documentation/android/android_remote_debugging.html
14+
15+
https://crosswalk-project.org/documentation/android/system_setup.html#Android
16+
17+
Could not resolve all dependencies for configuration ':_armv7DebugCompile'.
18+
19+
http://stackoverflow.com/questions/33675491/could-not-resolve-all-dependencies-for-configuration-armv7debugcompile
20+
21+
https://www.techinasia.com/talk/9-common-mistakes-ionic-developers
22+
23+
https://github.com/crosswalk-project/cordova-plugin-crosswalk-webview
24+
25+
https://library.vuforia.com/articles/Solution/How-To-install-an-APK-using-ADB
26+
27+
https://crosswalk-project.org/documentation/cordova.html
28+
29+
https://cordova.apache.org/docs/en/latest/guide/platforms/android/upgrade.html
30+

docs/DevOps/ansible.md

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# Ansible
2+
3+
Ansible is a free-software platform for configuring and managing computers which combines multi-node software deployment, ad hoc task execution, and configuration management.
4+
5+
- It manages nodes over SSH or over PowerShell.
6+
- Modules work over JSON and standard output and can be written in any programming language.
7+
- The system uses YAML to express reusable descriptions of systems.
8+
9+
[https://www.ansible.com/](https://www.ansible.com/)
10+
11+
./inventory
12+
13+
```bash
14+
[RancherHost]
15+
192.168.1.105 ansible_ssh_user=bob ansible_ssh_pass=
16+
```
17+
18+
ansible 192.168.1.105 -i inventory -u bob -m ping -k
19+
20+
## Debug Levels
21+
22+
- -v level 1 debug
23+
- -vv level 2 debug
24+
- -vvv level 3 debug
25+
26+
ansible all -i inventory -u bob -m command -a "command1"
27+
28+
command and shell module
29+
shell module can use shell modules
30+
31+
```bash
32+
[bob@unknown00155D037151 ansiblelab]$ ansible all -i inventory -m ping -k -vvv
33+
Using /etc/ansible/ansible.cfg as config file
34+
SSH password:
35+
<192.168.1.105> ESTABLISH SSH CONNECTION FOR USER: bob
36+
<192.168.1.105> SSH: EXEC sshpass -d12 ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o User=bob -o ConnectTimeout=10 -o ControlPath=/home/bob/.ansible/cp/ansible-ssh-%h-%p-%r
37+
192.168.1.105 '/bin/sh -c '"'"'( umask 77 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1475387002.67-101290707024052 `" && echo ansible-tmp-1475387002.67-101290707024052="` echo $HOM
38+
E/.ansible/tmp/ansible-tmp-1475387002.67-101290707024052 `" ) && sleep 0'"'"''
39+
<192.168.1.105> PUT /tmp/tmp1Ql_HI TO /home/bob/.ansible/tmp/ansible-tmp-1475387002.67-101290707024052/ping
40+
<192.168.1.105> SSH: EXEC sshpass -d12 sftp -o BatchMode=no -b - -C -o ControlMaster=auto -o ControlPersist=60s -o User=bob -o ConnectTimeout=10 -o ControlPath=/home/bob/.ansible/cp/a
41+
nsible-ssh-%h-%p-%r '[192.168.1.105]'
42+
<192.168.1.105> ESTABLISH SSH CONNECTION FOR USER: bob
43+
<192.168.1.105> SSH: EXEC sshpass -d12 ssh -C -q -o ControlMaster=auto -o ControlPersist=60s -o User=bob -o ConnectTimeout=10 -o ControlPath=/home/bob/.ansible/cp/ansible-ssh-%h-%p-%r
44+
-tt 192.168.1.105 '/bin/sh -c '"'"'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8 /usr/bin/python /home/bob/.ansible/tmp/ansible-tmp-1475387002.67-101290707024052/ping; rm
45+
-rf "/home/bob/.ansible/tmp/ansible-tmp-1475387002.67-101290707024052/" > /dev/null 2>&1 && sleep 0'"'"''
46+
192.168.1.105 | SUCCESS => {
47+
"changed": false,
48+
"invocation": {
49+
"module_args": {
50+
"data": null
51+
},
52+
"module_name": "ping"
53+
},
54+
"ping": "pong"
55+
}
56+
```
57+
58+
ansible-doc -l
59+
60+
```yaml
61+
62+
rancher_host.yaml
63+
---
64+
- hosts: RancherHost
65+
sudo: yes
66+
67+
tasks:
68+
- name: Add Docker Repository
69+
yum_repository:
70+
name: docker
71+
description: Docker Repository
72+
baseurl: https://yum.dockerproject.org/repo/main/centos/7/
73+
gpgkey: https://yum.dockerproject.org/gpg
74+
gpgcheck: yes
75+
76+
- name: Ensure Docker Is Installed
77+
yum: name=docker-engine state=latest
78+
79+
- name: Start Docker Service
80+
service: name=docker enabled=yes state=started
81+
82+
```
83+
84+
Jinja2 Tamplates
85+
86+
```bash
87+
88+
tasks:
89+
90+
- template:
91+
src=templates/httpd.j2
92+
dest=/etc/httpd/conf/httpd.conf
93+
owner=httpd
94+
95+
```

docs/DevOps/cloud-config.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
# cloud-config.yml
3+
4+
5+
[Using Cloud-Config](https://coreos.com/os/docs/latest/cloud-config.html#sshauthorizedkeys)
6+
7+
- ssh_authorized_keys
8+
- hostname
9+
- users
10+
- write_files
11+
12+
13+
[YAML](yaml)

docs/DevOps/docker.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Add non-root user to docker group
2+
3+
usermod -a -G docker myusername

docs/DevOps/jenkins.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Jenkins
2+
3+
## Build great things at any scale
4+
5+
The leading open source automation server, Jenkins provides hundreds of plugins to support building, deploying and automating any project.
6+
7+
[https://jenkins.io/](https://jenkins.io/)
8+
9+
[Jenkins and Docker Tutorial Series](https://github.com/maxfields2000/dockerjenkins_tutorial)

0 commit comments

Comments
 (0)