Skip to content

Commit e005d7c

Browse files
committed
Fixed formatting
1 parent fd05354 commit e005d7c

6 files changed

+28
-33
lines changed

LinuxCommands.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,17 @@ git commit -m "commit message"
3939

4040
git commit --amend
4141
git commit --amend -m "revise message"
42-
```
43-
4442

4543
git branch feature132
4644
git checkout feature132
4745

4846
# Create branch and checkout
4947
git checkout -b feature132
50-
48+
```
5149

5250
##### Disable IPTables
5351

52+
```sh
5453
iptables -F
5554
iptables -X
5655
iptables -t nat -F
@@ -60,12 +59,12 @@ iptables -t mangle -X
6059
iptables -P INPUT ACCEPT
6160
iptables -P OUTPUT ACCEPT
6261
iptables -P FORWARD ACCEPT
63-
62+
```
6463

6564
##### Find suspicious process
6665

66+
```sh
6767
lsof -i | less
68-
69-
note the PID
70-
71-
lsof | grep pid
68+
# note the PID
69+
lsof | grep pid
70+
```

Phonegap.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
##### Create App
1111

12-
`phonegap create path/to/my-app --id "com.example.app" --name "My App"
12+
`phonegap create path/to/my-app --id "com.example.app" --name "My App"`
1313

1414
###### App Templates
1515

PostgreSQL.md

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1+
## PostgreSQL Commands
12

2-
#### Switch User to Postgres
3+
```sh
34
root@server$: su - postgres
4-
55
postgres@server$: psql
6-
7-
#### Switch Database
86
postgres=# \c mydatabase
9-
107
postgres=# \list
11-
128
postgres=# \dt
9+
```
1310

11+
```sql
1412
GRANT ALL PRIVILEGES ON DATABASE mydatabase TO myuser
1513
ALTER DATABASE mydatabase OWNER TO myuser;
16-
1714
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO mydatabase;
1815
GRANT ALL PRIVILEGES ON ALL SEQUENCES IN SCHEMA public TO mydatabase;
16+
```
1917

20-
21-
18+
```sh
2219
sudo su - postgres
2320
createuser -d -E -i -l -P -r -s myuser
2421
psql -U postgres
@@ -27,5 +24,5 @@ CREATE DATABASE mydatabase
2724
psql -h localhost -U myuser -W
2825
\q
2926
psql -h localhost -d mydatabase -U myuser -W < schema.sql
30-
31-
psql -h localhost -d mydatabase -U myuser -W
27+
psql -h localhost -d mydatabase -U myuser -W
28+
```

README.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ QuickRef
33

44
A collection of commands, scripts and config I have used and need to refer often
55

6-
[iOS](iOS.md)
7-
[LinuxCommands](LinuxCommands.md)
8-
[NGINX](NGINX.md)
9-
[Phonegap](Phonegap.md)
10-
[RaspberryPi](RaspberryPi.md)
11-
[SSL](SSL.md)
12-
[VPSSetup](VPSSetup.md)
13-
[Wordpress](Wordpress.md)
6+
- [iOS](iOS.md)
7+
- [LinuxCommands](LinuxCommands.md)
8+
- [NGINX](NGINX.md)
9+
- [Phonegap](Phonegap.md)
10+
- [RaspberryPi](RaspberryPi.md)
11+
- [SSL](SSL.md)
12+
- [VPSSetup](VPSSetup.md)
13+
- [Wordpress](Wordpress.md)

RaspberryPi.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ sudo vim /etc/wpa_supplicant/wpa_supplicant.conf
66

77
add to last
88

9-
`
9+
```
1010
network={
1111
ssid="your_wifi_ssid"
1212
psk="your_wifi_password"
1313
}
14-
`
14+
```
1515

1616
restart wifi network interface
1717

SSL.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ SSL
33

44
Generate a private key from within the Start SSL control panel. Save it securely.
55

6-
cat key.crt sub.class3.server.ca.pem ca.pem > key.crt
6+
`cat key.crt sub.class3.server.ca.pem ca.pem > key.crt`
77

88

99
##### Remove password from private key
1010

11-
openssl rsa -in ssl.key -out ssl.key
12-
11+
`openssl rsa -in ssl.key -out ssl.key`
1312

1413
If you get a PEM_read_bio error on `nginx -t`
1514
Open concatenated .crt file in vim and add a new line in between where the new line is missing

0 commit comments

Comments
 (0)