Skip to content

Commit c0fca5f

Browse files
committed
moar updates to the notes
1 parent 83df123 commit c0fca5f

13 files changed

+239
-15
lines changed

Apache/configure-apache2.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Configuring Apache2
22

3-
43
## Virtual Hosts
54

65
An Apache2 virtual host is a powerful feature that allows you to host multiple websites (or applications) on a single server using a single Apache2 instance. It essentially tricks your server into thinking it's serving content from multiple machines, even though it's all on the same physical hardware.

IRC.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ replace #channel with the channel you want to set the option
5353
/version
5454
/help [command]
5555
/dcc send nickname filename
56-
/dcc get nickname filename
56+
/dcc get nickname filename

Node_JavaScript_Programming/javascript-programming.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -732,4 +732,4 @@ The scope of a JavaScript identifier refers to the region of the code where the
732732

733733
- Global scope: Identifiers declared outside of any function or block have global scope and are accessible throughout the code.
734734
- Local scope: Identifiers declared within a function or block have local scope and are only accessible within that function or block.
735-
- Block scope: Identifiers declared with let and const have block scope, meaning they are only accessible within the block where they are defined
735+
- Block scope: Identifiers declared with let and const have block scope, meaning they are only accessible within the block where they are defined

Node_JavaScript_Programming/make-a-package-json-file.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,4 @@ In a package.json file, the:
112112

113113
## Some other notes
114114

115-
"eslintConfig" must be in JSON
115+
"eslintConfig" must be in JSON.
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
`npm outdated`
2+
`npm list`
3+
`npm ls`
4+
`npm update`

PHP/php-development.md

+174
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,177 @@ I don't know a great deal about PHP development nor have I used a lot of PHP in
77
<?php
88
99
?>
10+
11+
## PHP keywords
12+
13+
### Control Structures
14+
15+
abstract
16+
and
17+
array
18+
as
19+
break
20+
callable
21+
case
22+
catch
23+
class
24+
clone
25+
const
26+
continue
27+
declare
28+
default
29+
die
30+
do
31+
echo
32+
else
33+
elseif
34+
empty
35+
endfor
36+
endforeach
37+
endwhile
38+
enum
39+
eval
40+
exit
41+
extends
42+
final
43+
finally
44+
for
45+
foreach
46+
function
47+
global
48+
goto
49+
if
50+
implements
51+
import
52+
instanceof
53+
insteadof
54+
interface
55+
isset
56+
list
57+
namespace
58+
new
59+
or
60+
print
61+
private
62+
protected
63+
public
64+
require
65+
return
66+
static
67+
switch
68+
throw
69+
trait
70+
try
71+
unset
72+
use
73+
var
74+
while
75+
xor
76+
77+
### Error Handling
78+
79+
@
80+
error_reporting
81+
set_error_handler
82+
restore_error_handler
83+
set_exception_handler
84+
restore_exception_handler
85+
register_shutdown_function
86+
87+
### Language Constructs
88+
89+
__construct
90+
__destruct
91+
__get
92+
__set
93+
__isset
94+
__unset
95+
__call
96+
__toString
97+
__invoke
98+
__set_state
99+
__clone
100+
__sleep
101+
__wakeup
102+
__serialize
103+
__unserialize
104+
__debugInfo
105+
__tostring
106+
__invoke
107+
__isset
108+
__unset
109+
__call
110+
__get
111+
__set
112+
__toString
113+
__set_state
114+
__clone
115+
__sleep
116+
__wakeup
117+
__serialize
118+
__unserialize
119+
__debugInfo
120+
121+
### Other Keywords
122+
123+
Other Keywords
124+
125+
abstract
126+
and
127+
array
128+
as
129+
break
130+
callable
131+
case
132+
catch
133+
class
134+
clone
135+
const
136+
continue
137+
declare
138+
default
139+
die
140+
do
141+
echo
142+
else
143+
elseif
144+
empty
145+
endwhile
146+
enum
147+
eval
148+
exit
149+
extends
150+
final
151+
finally
152+
for
153+
foreach
154+
function
155+
global
156+
goto
157+
if
158+
implements
159+
import
160+
instanceof
161+
insteadof
162+
interface
163+
isset
164+
list
165+
namespace
166+
new
167+
or
168+
print
169+
private
170+
protected
171+
public
172+
require
173+
return
174+
static
175+
switch
176+
throw
177+
trait
178+
try
179+
unset
180+
use
181+
var
182+
while
183+
xor

React_Development/commonpackages.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,14 @@ This is a list of packages commonly installed in NodeJs and React projects
3030
"@hapi/boom": "^10.0.1", HTTP-friendly error objects
3131
"@hookform/resolvers": "^3.3.1",
3232
"@mui/base": "^5.0.0-alpha.110",
33-
"@mui/icons-material": "^5.11.0",
33+
"@mui/icons-material": "^5.11.0", Material UI icons package
3434
"@mui/icons-material": "^5.11.16",
3535
"@mui/icons-material": "^5.14.3",
3636
"@mui/icons-material": "^5.14.9",
3737
"@mui/icons-material": "^5.15.13",
3838
"@mui/icons-material": "^5.15.15",
3939
"@mui/lab": "^5.0.0-alpha.145",
40-
"@mui/material": "^5.11.0",
40+
"@mui/material": "^5.11.0", \ asdfasdfasdfasdfasdfasdf
4141
"@mui/material": "^5.12.3",
4242
"@mui/material": "^5.13.0",
4343
"@mui/material": "^5.13.5",
@@ -212,7 +212,7 @@ This is a list of packages commonly installed in NodeJs and React projects
212212
"supertest": "^6.3.4", SuperAgent driven library for testing HTTP servers
213213
"sweetalert2": "^11.7.28", A beautiful, responsive, customizable and accessible (WAI-ARIA) replacement for .js popup boxes, supported fork of sweetalert
214214
"tmi.js": "^1.8.4",
215-
"typescript": "4.9.4": Self explanatory.
215+
"typescript": "4.9.4": Self explanatory.
216216
"uuid": "^9.0.0", RFC4122 (v1, v4, and v5) UUIDs
217217
"web-vitals": "^2.1.4" Easily measure performance metrics in JavaScript
218218
"web-vitals": "^3.3.1"

about-serviceworkers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ Common Challenges:
4545

4646
Lifecycle Management: Understanding the lifecycle of service workers, including installation, activation, and updates, is crucial for effective usage
4747

48-
In summary, service workers have various use cases, contribute to improved website performance by enabling offline access and reducing loading times, and come with challenges such as the HTTPS requirement, complexity, and lifecycle management.
48+
In summary, service workers have various use cases, contribute to improved website performance by enabling offline access and reducing loading times, and come with challenges such as the HTTPS requirement, complexity, and lifecycle management.

bash-shell-stuff.md

+2
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ Make the script executable: Use the `chmod +x` command to make the script execut
1515
Run the script: You can run the script by using the ./ notation followed by the script name. For example, you can use the command `./scriptname.sh` to run the script called scriptname.sh.
1616

1717
These are the basic steps to create a bash shell script. You can then add more advanced features and functionality as needed.
18+
19+
// TODO ulimit -a shows system limits

dotnet/using-dotnet.md

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Using .NET
2+

using-apt.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# using apt
2+
3+
`apt list --upgradable`
4+
`apt update`
5+
`apt upgrade`

using-gnu-ld-linker.md

+27-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,44 @@
11
# Using GNU linker ld
22

3+
## ld flags
34

4-
ld -d `ld: no input files`
5-
ld -g `ld: no input files`
5+
My tests were done with doing these flags individually on a single command line. ld usually exists at /usr/bin/ld. My ld is GNU ld (GNU Binutils for Debian) 2.31.1.
6+
7+
### Lowercase flags
8+
9+
ld -d `ld: no input files` used to enable dynamic linking of libraries. tells the linker to generate dynamic rather than static object files
10+
ld -g `ld: no input files` used to generate debugging information in the output file.
611
ld -i `ld: no input files`
7-
ld -m `ld: missing argument to -m`
12+
ld -m `ld: missing argument to -m` used to specify the output format. The argument to -m is the name of the output format, such as elf's
813
ld -n `ld: no input files`
914
ld -q `ld: no input files`
10-
ld -r `ld: no input files`
15+
ld -r `ld: no input files` used to generate a relocatable output file.
1116
ld -s `ld: no input files`
12-
ld -t `ld: no input files`
17+
ld -t `ld: no input files` used to generate debugging information in the output file.
1318
ld -v reports the version
1419
ld -x `ld: no input files`
1520

21+
### Uppercase flags
22+
1623
ld -E `ld: no input files`
1724
ld -G `ld: no input files`
18-
ld -M `ld: no input files`
25+
ld -M `ld: no input files` used to generate a map file that shows how the linker mapped input sections to output section
1926
ld -N `ld: no input files`
2027
ld -Q `ld: no input files`
2128
ld -S `ld: no input files`
2229
ld -U `ld: no input files`
2330
ld -V returns the version plus supported emulations
24-
ld -X `ld: no input files`
31+
ld -X `ld: no input files`
32+
33+
## untested flags
34+
35+
ld -T used to specifiy the linker file used
36+
ld -o Specifies the name of the output file (executable or library) to be generated
37+
ld -l Links against the specified library, searching for it in the standard library directories.
38+
ld -pie Creates a position-independent executable (PIE), which can be loaded at any address in memory
39+
ld -u Prevents garbage collection of the specified external symbol.
40+
ld -L Adds a directory to the library search path.
41+
42+
## Use of ld
43+
44+
`ld -T linker.script input1.o input2.o -o output`

using-ls-command.md

+18
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,21 @@ Anything not in this list doesn't return anything.
2424
`ls -v`
2525
`ls -w` requires some sort of argument to work
2626
`ls -x`
27+
28+
`ls -A`
29+
`ls -B`
30+
`ls -C`
31+
`ls -D`
32+
`ls -F` ends each entry with / in a wide format
33+
`ls -G`
34+
`ls -H`
35+
`ls -I` requires an argument
36+
`ls -L`
37+
`ls -N`
38+
`ls -Q` all entries appear in between double quotes in a wide format
39+
`ls -R` very interesting output when done by itself
40+
`ls -S`
41+
`ls -T` requires an argument.
42+
`ls -U`
43+
`ls -X` lists dirs/folders on the left half of a wide format output
44+
`ls -Z` lists all entries with a ? in a wide format

0 commit comments

Comments
 (0)