m1 Flashcards
1
Q
git switch -c
A
creates AND switches to a branch
2
Q
git rm <FILE></FILE>
A
removes AND stages removal of file
3
Q
<stdio.h>
</stdio.h>
A
input/output function
4
Q
0 Binary
A
0b 0000
5
Q
1 Binary
A
0b 0001
6
Q
2 Binary
A
0b 0010
7
Q
3 Binary
A
0b 0011
8
Q
4 Binary
A
0b 0100
9
Q
5 Binary
A
0b 0101
10
Q
6 Binary
A
0b 0110
11
Q
7 Binary
A
0b 0111
12
Q
8 Binary
A
0b 1000
13
Q
9 Binary
A
0b 1001
14
Q
10 Binary
A
0b 1010
15
Q
11 Binary
A
0b 1011
16
Q
12 Binary
A
0b 1100
17
Q
13 Binary
A
0b 1101
18
Q
14 Binary
A
0b 1110
19
Q
<stdlib.h>
</stdlib.h>
A
General Utilities
20
Q
<string.h>
</string.h>
A
String manipulation
21
Q
<math.h>
</math.h>
A
Mathematical operations
22
Q
<time.h>
</time.h>
A
Data and time utilities
23
Q
gcc <file> -o name</file>
A
./name
24
Q
flush cases
A
\n is encountered
buffer is full
fflush(stdout)
25
git status possibilities
Your current branch
Changes in working directory
Files staged and are ready for commit
Untracked files
26
SHA -1 hash
16^40 or 2^160 possibilities
27
git rm --cached
Stop tracking a file without deleting it
28
>
Overwrite
29
>>
Append
30
git merge -c name
makes a new commit from a merge with name name
31
git branch -d cool-feature
Deletes a branch IF its been merged (deletes pointer)
32
git branch -D cool-feature
If a branch hasn't been merged but you still want to delete it (deletes pointer)
33
git remote -v
lists remotes linked to local Git project
34
git pull
git fetch
git merge /
35
git branch --set-upstream-to=origin/
Sets an upstream branch for , which lets you use git push/pull without specification
36
git branch -vv
Checks if a branch has an upstream branch
37
git push --set-upstream origin
Used to set an upstream branch for your local branch and push it to the remote repo.
38
Docker image
Blueprint for making a container
39
Docker container
Running instance of that image
40
Container
Shares host OS, but keeps everything else separate in a reproducible environment
41
Byte
8 bits
42
Hexit
4 bits
43
Number of numbers you can rep with n bits
2^n
44
Range of numbers you can rep with n unsigned bits
[0, 2^n-1]