Skip to content

Commit 70277b8

Browse files
committed
Added a TIL on curl and a cli TIL for macOS
1 parent 6376d8e commit 70277b8

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

.wordlist.txt

+3
Original file line numberDiff line numberDiff line change
@@ -2211,3 +2211,6 @@ scrollback
22112211
fullscreen
22122212
Scrollback
22132213
Holywell
2214+
Spacelift
2215+
aws
2216+
Simonewebdesign

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@
276276
<a id="curl"></a>
277277
### curl - a commandline tool for transferring data with URL syntax
278278

279+
- [Learn curl](curl/learn_curl.md)
279280
- [More POST Parameters](curl/more_post_parameters.md)
280281
- [Handling shell sensitive characters in URL](curl/handling_shell_sensitive_characters_in_url.md)
281282
- [Pipe output to less](curl/pipe_output_to_less.md)
@@ -712,6 +713,7 @@
712713
- [Translate Release Names](osx/translate_release_names.md)
713714
- [Find timezones](osx/find_timezones.md)
714715
- [Remove backgrounds from images](osx/remove_backgrounds_from_images.md)
716+
- [Switch to and from Dark Mode Using Command Line](osx/switch_to_and_from_dark_mode_using_cli.md)
715717

716718
<a id="perl"></a>
717719
### Perl - Swiss Army Knife of programming languages

curl/learn_curl.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Learn curl
2+
3+
My **curl** collection is growing constantly, `curl` truly is a powertool.
4+
5+
For some of the more basic stuff I will try go collect some notes and learning resources here, starting with:
6+
7+
- ["Everything curl"][EVERYTHING]
8+
9+
More to come...
10+
11+
## Resources and References
12+
13+
- ["Everything curl"][EVERYTHING]
14+
15+
[EVERYTHING]: https://everything.curl.dev/index.html
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Switch to and from Dark Mode Using Command Line
2+
3+
I got a new place to sit at work and sometimes the sun light is too much.
4+
5+
Luckily I found [a brief blog post][SIMONE] on how to switch to and from dark mode from the command line.
6+
7+
```shell
8+
osascript -e 'tell app "System Events" to tell appearance preferences to set dark mode to not dark mode'
9+
```
10+
11+
The setting is a boolean so it works both ways, as a light switch practically.
12+
13+
This is one those small things, where open menus a click around and when you finally get around to doing something about, you do not understand why you did not do it earlier - the dishwasher acquisition syndrome.
14+
15+
## Resources and References
16+
17+
- [Simonewebdesign blog: "How to enable Dark Mode on macOS with the command line"][SIMONE]
18+
19+
[SIMONE]: https://simonewebdesign.it/how-to-enable-dark-mode-macos-command-line/

0 commit comments

Comments
 (0)