Skip to content

Commit

Permalink
(chore) Links: lint formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SensehacK committed Jun 6, 2024
1 parent ef59789 commit b7bc951
Show file tree
Hide file tree
Showing 15 changed files with 153 additions and 39 deletions.
10 changes: 6 additions & 4 deletions architecture/concurrency/composable/ReadMe_composable.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,20 @@ Composable Architecture for keeping track of different states across the app. Ju

## References

[an-ios-architecture-approach-for-uiviewcontroller-states-error-management-in-swift](https://blog.smartnsoft.com/an-ios-architecture-approach-for-uiviewcontroller-states-error-management-in-swift-a353b0e53d94)

https://blog.smartnsoft.com/an-ios-architecture-approach-for-uiviewcontroller-states-error-management-in-swift-a353b0e53d94

ViewStates current state

https://swiftwithmajid.com/2019/01/23/maintaining-state-in-view-controllers/
[maintaining-state-in-view-controllers](https://swiftwithmajid.com/2019/01/23/maintaining-state-in-view-controllers/)

[HWS | reflecting-loading-error-states-on-api-calls](https://www.hackingwithswift.com/forums/swiftui/reflecting-loading-error-states-on-api-calls/2561)

https://www.hackingwithswift.com/forums/swiftui/reflecting-loading-error-states-on-api-calls/2561

[swift by sundell | handling-loading-states-in-swiftui](https://www.swiftbysundell.com/articles/handling-loading-states-in-swiftui/)

https://www.swiftbysundell.com/articles/handling-loading-states-in-swiftui/

[Documentation by Point free](https://pointfreeco.github.io/swift-composable-architecture/0.54.0/tutorials/meetcomposablearchitecture)


[The Composable Architecture: My 3 Year Experience](https://rodschmidt.com/posts/composable-architecture-experience/)
2 changes: 1 addition & 1 deletion backend/README_backend.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@

## Reference

https://brightdigit.com/articles/best-backend-for-your-ios-app/
[best-backend-for-your-ios-app](https://brightdigit.com/articles/best-backend-for-your-ios-app/)
17 changes: 16 additions & 1 deletion database/docker/portainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,22 @@ So sometimes when restarted it creates a race condition to map a folder / direct
Sometimes


## Reference

### deployment error - request failed with status code 500

This could be because of port being bind previously and some process still has a lock.

So we just restart our docker process by ssh the server.

```sh
sudo service docker stop
sudo service docker stop
```

[SO | relevant thread](https://stackoverflow.com/a/65559403)



## Reference

Linux Media Server Script from this [Github](https://github.com/GreenFrogSB/LMDS) also helped a lot.
Empty file removed database/mongoDB/README_mongoDB.md
Empty file.
32 changes: 19 additions & 13 deletions git/delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,40 +28,46 @@ Multiple options if we haven’t pushed the code to origin server.

Option 1 : Undo commit and keep all files staged

> git reset --soft HEAD~;
```sh
git reset --soft HEAD~;
```

Option 2 : Undo commit and un-stage all files

```text
> git reset HEAD~;
OR
> git reset --mixed HEAD~;
```sh
git reset HEAD~;
# OR
git reset --mixed HEAD~;
```

Option 3 : Undo the commit and completely remove all changes

> git reset --hard HEAD~;
```sh
git reset --hard HEAD~;
```

[Source](https://bytefreaks.net/programming-2/how-to-undo-a-git-commit-that-was-not-pushed)


## Revert Range history

If your changes have already been pushed to a public, shared remote, and you want to revert all commits between HEAD and <sha-id>, then you can pass a commit range to git revert,
If your changes have already been pushed to a public, shared remote, and you want to revert all commits between HEAD and `<sha-id>`, then you can pass a commit range to git revert,

> git revert 56e05f..HEAD
```sh
git revert 56e05f..HEAD
```

and it will revert all commits between 56e05f and HEAD (excluding the start point of the range, 56e05f).


[SO](https://stackoverflow.com/questions/1895059/revert-to-a-commit-by-a-sha-hash-in-git)
[SO | revert-to-a-commit-by-a-sha-hash-in-git](https://stackoverflow.com/questions/1895059/revert-to-a-commit-by-a-sha-hash-in-git)


## Delete till a point

If you want to go back to that commit before you made git merge commit you can specify the sha code to make the HEAD to that point.
Eg. SHA: 4e8a118f

> git reset --hard $GIT_COMMIT_SHA
[SO](https://stackoverflow.com/questions/2389361/undo-a-git-merge-that-hasnt-been-pushed-yet)
```sh
git reset --hard $GIT_COMMIT_SHA
```
[SO | undo-a-git-merge-that-hasnt-been-pushed-yet](https://stackoverflow.com/questions/2389361/undo-a-git-merge-that-hasnt-been-pushed-yet)
9 changes: 9 additions & 0 deletions git/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,12 @@ cp ~/.ssh/known_hosts ~/.ssh/known_hosts.bak
[Dealing with SSH Host Key Changes](https://cat.pdx.edu/platforms/linux/remote-access/dealing-with-ssh-host-key-changes/)
### Connection reset by peer
I don't know why it failed on this but after re-running the CI it worked fine again.

```sh
fatal: unable to access 'https://github.com/PromiseKit/Alamofire/': Recv failure: Connection reset by peer
```
1 change: 1 addition & 0 deletions ios/ui/uiScrollView.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ You can set the content offset from the scrollview to set its desired viewport.
```swift
scrollView.setContentOffset(CGPoint(x: 35, y: 200), animated: false)
```

## AutoLayout Programmatically

[Monkey Work Article](https://monkey.work/blog/2020-11-08-uiscrollview/)
12 changes: 9 additions & 3 deletions ios/xcode/build_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

## Main Command

```bash
xcodebuild clean build test -workspace iOSTravisCI.xcworkspace -scheme iOSTravisCI -sdk iphonesimulator -destination "platform=iOS Simulator,OS=12.1,name=iPhone 7" ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO
```sh
# Xcode 12
xcodebuild clean build test -workspace iOSTravisCI.xcworkspace -scheme iOSTravisCI -sdk iphonesimulator -destination "platform=iOS Simulator,OS=12.1,name=iPhone 7"

ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO

# Xcode 15.3
xcodebuild -scheme "PCore" -destination "platform=iOS Simulator,OS=17.4,name=iPhone 15" build

```


Expand All @@ -17,7 +24,6 @@ xcodebuild -scheme iOSTravisCI -workspace iOSTravisCI.xcworkspace/ build

```bash
xcodebuild build-for-testing -workspace iOSTravisCI.xcworkspace -scheme iOSTravisCI -destination generic/platform=iOS

```


Expand Down
20 changes: 16 additions & 4 deletions mobile/ionic/issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,21 @@ For example:

I was able to fix by using cocoapods:1.1.1

> \# sudo gem install -n /usr/local/bin cocoapods:1.1.1 \# sudo gem uninstall -n /usr/local/bin cocoapods \# uninstall 1.2.0.beta.1 $ pod --version \# 1.1.1 $ rm -rf platforms plugins $ cordova platform add ios
```sh
sudo gem install -n /usr/local/bin cocoapods:1.1.1 \
sudo gem uninstall -n /usr/local/bin cocoapods \ # uninstall 1.2.0.beta.1
pod --version \ # 1.1.1
rm -rf platforms plugins
cordova platform add ios
```

### EA Access Permissions

Execute command

> \# sudo chown -R $\(whoami\) $\(npm config get prefix\)/{lib/node\_modules,bin,share}
```sh
sudo chown -R $\(whoami\) $\(npm config get prefix\)/{lib/node\_modules,bin,share}
```

It changes ownership with user\(whoami\) logged in for the default npm config location.

Expand All @@ -64,11 +72,15 @@ Also if still doesn't fix your issue, you could switch to Tab "Capabilities" Scr

If you get blank screen at launch with ionic app. As for me I just executed the command

> ionic cordova platform add ios
```sh
ionic cordova platform add ios
```

But forgot the build command

> ionic cordova build ios
```sh
ionic cordova build ios
```

```text
ERROR: Start Page at 'www/index.html' was not found.
Expand Down
9 changes: 7 additions & 2 deletions os/mac/mac_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@ This markdown file list downs all the commands for Mac OS for setting up with so

Uptime for your mac

> uptime
```sh
uptime
```

For checking your reboots

> last reboot
```sh
last reboot
```


## Checking Mac Application Bundle ID

Expand Down
20 changes: 17 additions & 3 deletions process/copy_files_server_CLI.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@



## SCP

Use command `scp `

_scp_ from remote to local using a single file .
Expand All @@ -9,8 +12,19 @@ _scp_ from remote to local using a single file .
scp remoteuser@remoteserver:/remote/folder/remotefile.txt localfile.txt
```

https://www.simplified.guide/ssh/copy-file
Copy a single file from local to remote with _scp_.

```sh
scp myfile.txt remoteuser@remoteserver:/remote/folder/

```

[ssh/copy-file](https://www.simplified.guide/ssh/copy-file)


[SO | copying-files-from-server-to-local-computer-using-ssh](https://stackoverflow.com/questions/30553428/copying-files-from-server-to-local-computer-using-ssh)

[SO | subsystem-request-failed-on-channel-0-scp-connection-closed-macbook](https://stackoverflow.com/questions/74311661/subsystem-request-failed-on-channel-0-scp-connection-closed-macbook)


https://stackoverflow.com/questions/30553428/copying-files-from-server-to-local-computer-using-ssh

https://stackoverflow.com/questions/74311661/subsystem-request-failed-on-channel-0-scp-connection-closed-macbook
5 changes: 2 additions & 3 deletions tools/editors/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,8 @@ Read about [yaml](yaml.md)




## Reference

https://www.w3schools.io/
[w3schools.io](https://www.w3schools.io/)

https://placeholder.com/#How_To_Use_Our_Placeholders
[How_To_Use_Our_Placeholders](https://placeholder.com/#How_To_Use_Our_Placeholders)
9 changes: 8 additions & 1 deletion tools/terminal/Curl.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,11 @@ curl -s "http://url.something.com/filepath/filename-.m3u8?sz=asfa"
## Source

man help - curl
[Manual](https://curl.se/docs/manual.html)
[Manual](https://curl.se/docs/manual.html)


## Error

### SSL error

[SO | curl-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate](https://stackoverflow.com/questions/24611640/curl-60-ssl-certificate-problem-unable-to-get-local-issuer-certificate)
37 changes: 34 additions & 3 deletions tools/terminal/node.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@

### Installation

> \# sudo npm install -g @angular/cli \# sudo npm install -g ionic@latest \# sudo npm install $ npm run ionic $ npm run ionic:serveStatic
```sh
sudo npm install -g @angular/cli

sudo npm install -g ionic@latest

sudo npm install

npm run ionic

npm run ionic:serveStatic
```

#### Downgrade

> $ npm install -g [email protected]
```sh
npm install -g [email protected]
```

\(version number after ionic@**\_.\_.\_**\)

Expand Down Expand Up @@ -90,4 +102,23 @@ To run locally on chrome
## Node Package Manager

Package repository
https://www.npmjs.com/package/package
[npmjs packages](https://www.npmjs.com/package/package)

## Node Version Manager

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions
[NVM github](https://github.com/nvm-sh/nvm)

```sh
# Download NVM
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

# Verify Installation
command -v nvm

# Restart terminal or source your `.zhsrc` config
source ~/.zshrc

# Install Node
nvm install node
```
9 changes: 8 additions & 1 deletion tools/terminal/shell.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Bash
# Shell

## Terminal Key Tags

Expand Down Expand Up @@ -258,3 +258,10 @@ or you can use the shorter version of the command:
[SO | how-to-load-bash-profile-when-entering-bash-from-within-zsh](https://stackoverflow.com/questions/23233603/how-to-load-bash-profile-when-entering-bash-from-within-zsh)
## Arch
```sh
arch
```

0 comments on commit b7bc951

Please sign in to comment.