-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.xml
578 lines (481 loc) · 37 KB
/
index.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Tom's Things</title>
<link>https://tommyshem.github.io/</link>
<description>Recent content on Tom's Things</description>
<generator>Hugo -- gohugo.io</generator>
<language>en-GB</language>
<lastBuildDate>Tue, 21 Apr 2020 10:30:00 +0200</lastBuildDate>
<atom:link href="https://tommyshem.github.io/index.xml" rel="self" type="application/rss+xml" />
<item>
<title>Visual Code Editor install for Mac</title>
<link>https://tommyshem.github.io/2020/04/21/visual-code-editor-install-for-mac/</link>
<pubDate>Tue, 21 Apr 2020 10:30:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2020/04/21/visual-code-editor-install-for-mac/</guid>
<description>Install Visual Studio Code on Mac Go to the visual studio code website and follow the install instructions.
Code command install so code can be used in the shell. In Visual Studio Code Editor type below to install code command.
shift+ ⌘+ Pfor the command palette.
shell command: install 'code' command in path Setup Git for Visual Studio Code To get Visual Studio Code editor working as Git&rsquo;s default editor run the command below.</description>
</item>
<item>
<title>Rsync Notes</title>
<link>https://tommyshem.github.io/2020/02/26/rsync-notes/</link>
<pubDate>Wed, 26 Feb 2020 18:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2020/02/26/rsync-notes/</guid>
<description>Find all sockets on your Linux machine &lsquo;&lsquo;&lsquo;bash netstat -anp '&rsquo;&rsquo;
List socket with ip address &lsquo;&lsquo;&lsquo;bash ss -tanp '&rsquo;&rsquo;
List open ports on the local host &lsquo;&lsquo;&lsquo;bash nmap -p 1-65535 &ndash;open localhost '&rsquo;&rsquo;
Websites for reading about sockets https://ops.tips/blog/how-linux-creates-sockets/</description>
</item>
<item>
<title>How to add scripts nautilus menu</title>
<link>https://tommyshem.github.io/2020/02/16/how-to-add-scripts-nautilus-menu/</link>
<pubDate>Sun, 16 Feb 2020 14:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2020/02/16/how-to-add-scripts-nautilus-menu/</guid>
<description>Create a new user add sudo to the end of the command below if you want to add to sudoers group.
sudo adduser new_user_name_here Remove a user sudo userdel -r bob </description>
</item>
<item>
<title>How to change password from default</title>
<link>https://tommyshem.github.io/2020/02/16/how-to-change-password-from-default/</link>
<pubDate>Sun, 16 Feb 2020 14:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2020/02/16/how-to-change-password-from-default/</guid>
<description>The default user is pi, and the password is raspberry
Change default password passwd </description>
</item>
<item>
<title>Compression</title>
<link>https://tommyshem.github.io/2020/01/07/compression/</link>
<pubDate>Tue, 07 Jan 2020 15:27:08 +0000</pubDate>
<guid>https://tommyshem.github.io/2020/01/07/compression/</guid>
<description>Compression Notes I tested 7z command it works fast but when testing it did not save user name.
But it is still ok for backing up your own files.
You can add and remove files from the compressed file
Below command used.
Compress all current folders and files 7z a filenamehere.7z ./ Decompress 7z e filenamehere.7z list files in compressed file 7z l filenamehere.7z Mount image fuse-7z-ng files.7z /media/my_compressed_files Tested tar with new compression zstd from facebook Note need sudo for root files to be copied</description>
</item>
<item>
<title>Enable Sudoers</title>
<link>https://tommyshem.github.io/2019/12/28/enable-sudoers/</link>
<pubDate>Sat, 28 Dec 2019 21:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/12/28/enable-sudoers/</guid>
<description>Arch Linux resources website https://wiki.archlinux.org/index.php/Users_and_groups
Enable sudoers Notes Settings Open settings.
visudo Uncomment the wheel group, this allows all users in the wheel group to run all commands.
%wheel ALL=(ALL) ALL Add user Add user to the wheel group, change userName to the user name you require.
useradd -m -G wheel -s /bin/bash userName Protect the user account with a password passwd userName Adding a system user useradd -r -s /usr/bin/nologin userName Changing user login names usermod -l userNewName userOldName Changing user&rsquo;s home dir usermod -d /new/home/dir -m userName Test if sudo works by entering the command sudo whoami If you get something like this (below), then sudo is working for the set account.</description>
</item>
<item>
<title>Javascript Function Name logging</title>
<link>https://tommyshem.github.io/2019/12/02/javascript-function-name-logging/</link>
<pubDate>Mon, 02 Dec 2019 09:17:39 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/12/02/javascript-function-name-logging/</guid>
<description>Logging function name with a debug function.
Sample Example below.
#!/usr/bin/gjs // Used for debugging when tracking unknown function calls function GetFunctionName(){ print( &#34;This Function Name : &#34; + arguments.callee.name); print (&#34;Called from function : &#34; + GetFunctionName.caller.name); } // Test function function FunctionC(){ // Print this function name print ( &#34;Fuction Name : &#34; + arguments.callee.name ); // Print this function name from function call GetFunctionName(); } // Call test function FunctionC(); </description>
</item>
<item>
<title>C Tools Notes</title>
<link>https://tommyshem.github.io/2019/11/03/c-tools-notes/</link>
<pubDate>Sun, 03 Nov 2019 17:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/11/03/c-tools-notes/</guid>
<description>clang compiler error flags -wall -wextra -W -Weverything List of Trace commands pref ngrep dstat htop opensnoop strace time wireshark tcpdump flamegraghs </description>
</item>
<item>
<title>Git clear local and remote repo and start over</title>
<link>https://tommyshem.github.io/2019/11/03/git-clear-local-and-remote-repo-and-start-over/</link>
<pubDate>Sun, 03 Nov 2019 15:30:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/11/03/git-clear-local-and-remote-repo-and-start-over/</guid>
<description>Git clear local and remote repo and start over Create a new folder and copy the files you need if any into the new folder.
Example below with no files
mkdir project-name-here cd project-name-here git init git remote add origin [email protected]:user/project-here.git git add . git commit -m &#34;Initial commit&#34; git push -u origin master --force You can clone the repo and delete .git folder so there is no commit history on local copy and github repo.</description>
</item>
<item>
<title>Binary Command Tool Notes</title>
<link>https://tommyshem.github.io/2019/11/03/binary-command-tool-notes/</link>
<pubDate>Sun, 03 Nov 2019 14:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/11/03/binary-command-tool-notes/</guid>
<description>Linux binary Command Tool Notes Linux Commands for binary files gdb - debugger
nm - lookup symbols
objdump - object dump
file - info on the file format
dumpelf - show elf heads
strip - strip the symbols from binary
strings - show strings from the binary
readelf - show elf headers
ldd - show dynamic libs
lddtree - show dynamic libs
hexdump - show all hex for binary
symtree - symbols tree</description>
</item>
<item>
<title>Visual Code Testing Notes</title>
<link>https://tommyshem.github.io/2019/07/13/visual-code-testing-notes/</link>
<pubDate>Sat, 13 Jul 2019 20:30:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2019/07/13/visual-code-testing-notes/</guid>
<description>Visual Code Testing Get code scope VS Code comes with a built-in tool to easily obtain the scope of a piece of syntax.
Press ctrl + shift + P, for the command pallette to show up, then type dev, and choose &lsquo;Developer: Inspect TM Scopes&rsquo; option.
This will show you the selected token&rsquo;s scope. There are four sections:
Custom theme highlighting keywords in the settings file &ldquo;editor.tokenColorCustomizations&rdquo;: { &ldquo;[One Dark Pro]&quot;: { &ldquo;textMateRules&rdquo;: [ { &ldquo;scope&rdquo;: [ &ldquo;keyword.</description>
</item>
<item>
<title>Youtube Download tips and tricks</title>
<link>https://tommyshem.github.io/2019/06/09/youtube-download-tips-and-tricks/</link>
<pubDate>Sun, 09 Jun 2019 19:00:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2019/06/09/youtube-download-tips-and-tricks/</guid>
<description>Install youtube downloader sudo pip3 install youtube_dl Update youtube downloader sudo pip3 --update youtube_dl Download youtube videos </description>
</item>
<item>
<title>Android Studio Notes</title>
<link>https://tommyshem.github.io/2019/03/02/android-studio-notes/</link>
<pubDate>Sat, 02 Mar 2019 20:13:48 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/03/02/android-studio-notes/</guid>
<description>Android Studio Notes on Arch Linux Install packages qemu for the android emulator.
sudo pacman -S qemu virt-manager virt-viewer dnsmasq iptables vde2 bridge-utils openbsd-netcat Install Android Studio from the website https://developer.android.com/studio#downloads</description>
</item>
<item>
<title>Getting Started in Javascript</title>
<link>https://tommyshem.github.io/2019/02/07/getting-started-in-javascript/</link>
<pubDate>Thu, 07 Feb 2019 09:17:39 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/02/07/getting-started-in-javascript/</guid>
<description>Getting started with javascript in chrome Inline javascript is faster than loading external files but external files are easier to update if in larger projects or the same code is used in many html files.
Basic inline javascript in a html file &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&#34;UTF-8&#34;&gt; &lt;title&gt;Getting started with Javascript&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h1 id=&#34;header&#34;&gt;Intro to Javascript&lt;/h1&gt; &lt;!-- Javascript goes in the script tags --&gt; &lt;script&gt; var header = document.</description>
</item>
<item>
<title>Javascript Console.log</title>
<link>https://tommyshem.github.io/2019/02/07/javascript-console.log/</link>
<pubDate>Thu, 07 Feb 2019 09:17:39 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/02/07/javascript-console.log/</guid>
<description>Console log basics For testing create a html file index.html
&lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;meta charset=&#34;UTF-8&#34;&gt; &lt;title&gt;Getting started with Javascript&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;h1 id=&#34;header&#34;&gt;Intro to Javascript&lt;/h1&gt; &lt;!-- Javascript file location in relative to this html file location --&gt; &lt;script src=&#34;test.js&#34;&gt;&lt;/script&gt; &lt;/body&gt; &lt;/html&gt; File test.js
// console.log can print any variables out eg object strings numbers boolean etc // variable var firstname; firstname = &#34;Bill&#34;; // Print firstname contents to console console.</description>
</item>
<item>
<title>Rust Strings</title>
<link>https://tommyshem.github.io/2019/01/27/rust-strings/</link>
<pubDate>Sun, 27 Jan 2019 09:24:55 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/01/27/rust-strings/</guid>
<description>Rust String Notes Rust String Examples A String can be passed back from inside a function because it passes the ownership on.
fn test() -&gt; String { let mystring = String::from(&#34;test string&#34;) // create string mystring } &amp;Str a string slice can not be passed back from inside a function if the string it points to was created inside the function
fn test() -&gt; &amp;str { let mystring = String::from(&#34;test string&#34;) // create string &amp;mystring // Not allowed as it can not pass ownership from string created inside function.</description>
</item>
<item>
<title>Binary Notes</title>
<link>https://tommyshem.github.io/2019/01/23/binary-notes/</link>
<pubDate>Wed, 23 Jan 2019 11:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2019/01/23/binary-notes/</guid>
<description>Linux bin sizes Notes Size of the sections in the binary file - works with any compiled file to elf format - used on linux. size -A -t -d target/release/recode_rs | sort -k 2 -n Readelf command Display any needed linked dynamically libraries in the exec progam, for it to run. readelf -d exec-filename-here Display all information on the elf binary file readelf -a exec-filename-here objdump command file command file -d file-name-here Website for bloaty command tool https://github.</description>
</item>
<item>
<title>Gitlab API Notes</title>
<link>https://tommyshem.github.io/2018/09/23/gitlab-api-notes/</link>
<pubDate>Sun, 23 Sep 2018 18:30:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/09/23/gitlab-api-notes/</guid>
<description>General information about api&rsquo;s and tools to test website https://www.guru99.com/testing-rest-api-manually.html
Gitlab API Docs Gitlab website for information https://docs.gitlab.com/ee/api/README.html
Testing with curl curl &#34;https://gitlab.gnome.org/api/v4/ then use the docs on the website for the endpoints and just add onto the above curl command.
example to get list of projects.
curl &#34;https://gitlab.gnome.org/api/v4/projects&#34; Firefox extension website for the extension https://addons.mozilla.org/en-GB/firefox/addon/rester/
Software mto install on windows, mac and linux website for the software https://insomnia.rest/
Electron app Advanced rest client github website https://github.</description>
</item>
<item>
<title>Visual Code Notes</title>
<link>https://tommyshem.github.io/2018/09/10/visual-code-notes/</link>
<pubDate>Mon, 10 Sep 2018 10:30:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2018/09/10/visual-code-notes/</guid>
<description>Visual Code Setup visual code with a font with programming ligatures Install manualy or on linux First you will need a font with ligatures.
font fira code github https://github.com/tonsky/FiraCode
Install from github or package manager.
Mac os install using homebrew brew tap caskroom/fonts brew cask install font-fira-code Visual code setup In the menu goto File &gt; Preferences &gt; User Settings
Add below to the settings.json file
{ &#34;editor.fontFamily&#34;: &#34;Fira Code&#34;, &#34;editor.</description>
</item>
<item>
<title>Mac OS Notes</title>
<link>https://tommyshem.github.io/2018/08/31/mac-os-notes/</link>
<pubDate>Fri, 31 Aug 2018 10:30:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2018/08/31/mac-os-notes/</guid>
<description>Mac Os tips and Notes Take screen shotes website with pictures and more info https://www.wikihow.com/Take-a-Screenshot-on-a-Mac
Run the grab software and a icon will be in the dock right click for options to capture.
In short the combination keys below to take screenshots. cmd + shift + 3 for complete screen capture and save a file to desktop
cmd + shift + 4 for selection of the screen capture and save a file to desktop</description>
</item>
<item>
<title>Neovim setup and Notes</title>
<link>https://tommyshem.github.io/2018/08/31/neovim-setup-and-notes/</link>
<pubDate>Fri, 31 Aug 2018 10:30:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2018/08/31/neovim-setup-and-notes/</guid>
<description>Neovim Neovim setup files Install vim-plug Vim plug minimum file needed to load plugins Install plugins Update plugins Remove plugin Install python support for neovim plugins Keyboard for vim and Neovim. Quit without saving Close window Insert mode Command mode Neovim Website https://neovim.io/
Fully compatible with Vim&rsquo;s editing model and the Vimscript language.
Neovim setup files You need a settings file in the correct location for your custom settings for neovim.</description>
</item>
<item>
<title>Vim setup and Notes</title>
<link>https://tommyshem.github.io/2018/08/31/vim-setup-and-notes/</link>
<pubDate>Fri, 31 Aug 2018 10:30:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2018/08/31/vim-setup-and-notes/</guid>
<description>Vim setup </description>
</item>
<item>
<title>Android Termux Notes</title>
<link>https://tommyshem.github.io/2018/08/29/android-termux-notes/</link>
<pubDate>Wed, 29 Aug 2018 12:00:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2018/08/29/android-termux-notes/</guid>
<description>Termux on Github Termux github website https://github.com/termux
Termux github packages https://github.com/termux/termux-packages/
Termux building packages with docker https://github.com/termux/termux-packages/blob/master/README.md
Install Termux Go to Play store and install from there or go to the temux website https://termux.com for different install methods.
Termux Wiki page https://wiki.termux.com/wiki/Main_Page for more information.
Add repos from the Community Repositories https://wiki.termux.com/wiki/Package_Management#its-pointless_.28live_the_dream.29
Updating Packages on your device You will need to update the repo database and the upgrade any packages which need updating before you can start using the package manager.</description>
</item>
<item>
<title>Docker Notes</title>
<link>https://tommyshem.github.io/2018/08/12/docker-notes/</link>
<pubDate>Sun, 12 Aug 2018 21:00:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2018/08/12/docker-notes/</guid>
<description>Docker Notes Start docker daemon manualy sudo dockerd Start daemon with systemd when docker is installed for the first time sudo systemctl start docker check docker is running docker info Restart docker daemon sudo systemctl restart docker run docker without sudo Warning security attack can be done if you do the following see website
https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user
To create the docker group and add your user:
Create the docker group.
sudo groupadd docker Add your user to the docker group.</description>
</item>
<item>
<title>Node tips and tricks</title>
<link>https://tommyshem.github.io/2018/07/09/node-tips-and-tricks/</link>
<pubDate>Mon, 09 Jul 2018 19:00:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2018/07/09/node-tips-and-tricks/</guid>
<description>To find where global libraries are installed, you can type
npm list -g &#39;&#39;&#39; </description>
</item>
<item>
<title>Clone all my github repositories in to current directory.</title>
<link>https://tommyshem.github.io/2018/03/13/clone-all-my-github-repositories-in-to-current-directory./</link>
<pubDate>Tue, 13 Mar 2018 15:15:30 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/03/13/clone-all-my-github-repositories-in-to-current-directory./</guid>
<description>Clone all my Github repositories in to the current directory with one bash line. curl -s https://api.github.com/users/tommyshem/repos | grep \&#34;clone_url\&#34; | awk &#39;{print $2}&#39; | sed -e &#39;s/&#34;//g&#39; -e &#39;s/,//g&#39; | xargs -n1 git clone or you can use this one if jq command is installed on your system
curl -s https://api.github.com/users/tommyshem/repos | jq .[].clone_url | xargs -n1 git clone </description>
</item>
<item>
<title>Clone all my github repositories in to current directory.</title>
<link>https://tommyshem.github.io/2018/03/13/clone-all-my-github-repositories-in-to-current-directory./</link>
<pubDate>Tue, 13 Mar 2018 15:15:30 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/03/13/clone-all-my-github-repositories-in-to-current-directory./</guid>
<description>Clone all my Github repositories in to the current directory with one bash line. curl -s https://api.github.com/users/tommyshem/repos | grep \&#34;clone_url\&#34; | awk &#39;{print $2}&#39; | sed -e &#39;s/&#34;//g&#39; -e &#39;s/,//g&#39; | xargs -n1 git clone or you can use this one if jq command is installed on your system
curl -s https://api.github.com/users/tommyshem/repos | jq .[].clone_url | xargs -n1 git clone </description>
</item>
<item>
<title>How to setup Solus</title>
<link>https://tommyshem.github.io/2018/03/11/how-to-setup-solus/</link>
<pubDate>Sun, 11 Mar 2018 09:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/03/11/how-to-setup-solus/</guid>
<description>Linux Solus Setup solus for programming http://www.stuartellis.name/articles/solus-setup/
solbuild https://github.com/solus-project/solbuild
https://github.com/examachine/pisi
Linux Solus Images https://www.solus-project.com/image_root/
arch examples for making a docker image arch file http://mirror.bytemark.co.uk/archlinux/iso/2018.03.01/
bootstrap arch https://github.com/tokland/arch-bootstrap
Chroot chroot example http://www.ubuntubuzz.com/2015/09/a-basic-chroot-example-in-ubuntu.html
https://www.computerhope.com/unix/chroot.htm
https://www.cyberciti.biz/faq/unix-linux-chroot-command-examples-usage-syntax/</description>
</item>
<item>
<title>Swift GTK+3</title>
<link>https://tommyshem.github.io/2018/03/04/swift-gtk-3/</link>
<pubDate>Sun, 04 Mar 2018 17:30:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/03/04/swift-gtk-3/</guid>
<description>Setup using docker to compile code on linux as not using Ubuntu as operating system. Install docker on your linux system by the normal way.
Go to docker hub, Swift Image web address https://hub.docker.com/_/swift/ for for info.
Download the Swift docker image from docker hub from the terminal. Using the command below.
sudo docker pull swift Create the swift docker container from the Image and Attach it, the name (swiftfun) can be changed to anything you want to.</description>
</item>
<item>
<title>Git tips</title>
<link>https://tommyshem.github.io/2018/02/23/git-tips/</link>
<pubDate>Fri, 23 Feb 2018 18:30:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/02/23/git-tips/</guid>
<description>Git tips website blog https://wesbos.com/git-hot-tips/
Creating tags from the command line To create a tag on your current branch, run this:
git tag &lt;tagname&gt; If you want to include a description with your tag, add -a to create an annotated tag:
git tag &lt;tagname&gt; -a This will create a local tag with the current state of the branch you are on. When pushing to your remote repo, tags are NOT included by default.</description>
</item>
<item>
<title>Swift on Linux with MacOS</title>
<link>https://tommyshem.github.io/2018/02/23/swift-on-linux-with-macos/</link>
<pubDate>Fri, 23 Feb 2018 18:30:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/02/23/swift-on-linux-with-macos/</guid>
<description>Swift on linux Orignal blog website https://theswiftdev.com/2017/11/30/how-to-run-swift-on-linux/
website blog https://ashfurrow.com/blog/swift-on-line
Notes docker run -p 8000:8000 -v /Users:Users --privileged -i -t --name swiftfun swiftdocker/swift:latest /bin/bash docker start swiftfun docker attach swiftfun </description>
</item>
<item>
<title>How to make gtk apps</title>
<link>https://tommyshem.github.io/2018/02/18/how-to-make-gtk-apps/</link>
<pubDate>Sun, 18 Feb 2018 18:19:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/02/18/how-to-make-gtk-apps/</guid>
<description>C Gtk example example from https://developer.gnome.org/gtk3/stable/gtk-getting-started.html#id-1.2.3.5
&lsquo;&lsquo;&lsquo;c #include &lt;gtk/gtk.h&gt;
static void activate (GtkApplication* app, gpointer user_data) { GtkWidget *window;
window = gtk_application_window_new (app); gtk_window_set_title (GTK_WINDOW (window), &ldquo;Window&rdquo;); gtk_window_set_default_size (GTK_WINDOW (window), 400, 400); gtk_widget_show_all (window); }
int main (int argc, char **argv) { GtkApplication *app; int status;
app = gtk_application_new (&ldquo;org.gtk.example&rdquo;, G_APPLICATION_FLAGS_NONE); g_signal_connect (app, &ldquo;activate&rdquo;, G_CALLBACK (activate), NULL); status = g_application_run (G_APPLICATION (app), argc, argv); g_object_unref (app);
return status; } '&rsquo;&rsquo;</description>
</item>
<item>
<title>How to spell check on Linux command line</title>
<link>https://tommyshem.github.io/2018/02/11/how-to-spell-check-on-linux-command-line/</link>
<pubDate>Sun, 11 Feb 2018 18:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/02/11/how-to-spell-check-on-linux-command-line/</guid>
<description>spell check on Linux command line</description>
</item>
<item>
<title>Make a Fitbit App</title>
<link>https://tommyshem.github.io/2018/02/04/make-a-fitbit-app/</link>
<pubDate>Sun, 04 Feb 2018 09:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/02/04/make-a-fitbit-app/</guid>
<description>Register new App website for register app https://dev.fitbit.com/apps/new
Go github projectsSwagger Inspector i https://github.com/stapelberg/fitbit-backup https://github.com/ippoippo/bulkfitbitdownloader
My App details https://dev.fitbit.com/apps/details/22CLYW
OAuth 2.0 Client ID 22CLYW
Client Secret 3f453c0d41e0eb317b19aaa9e4389ce7
Callback URL http://localhost:8189/auth_code
OAuth 2.0: Authorization URI https://www.fitbit.com/oauth2/authorize
OAuth 2.0: Access/Refresh Token Request URI https://api.fitbit.com/oauth2/token
Test website for fitbit data https://dev.fitbit.com/apps/oauthinteractivetutorial?clientEncodedId=22CLYW&amp;clientSecret=3f453c0d41e0eb317b19aaa9e4389ce7&amp;redirectUri=http://localhost:8189/auth_code
fetbit web API tester https://dev.fitbit.com/build/reference/web-api/explore/
http://localhost:8189/auth_code #access_token=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2RDdNTVMiLCJhdWQiOiIyMkNMWVciLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZXMiOiJ3aHIgd251dCB3cHJvIHdzbGUgd3dlaSB3c29jIHdzZXQgd2FjdCB3bG9jIiwiZXhwIjoxNTE3ODE5MTE1LCJpYXQiOjE1MTc3MzI3MTV9.dfzgRPybQOwii8HePCE14Ba7wAfqYXK6QaF3-PgaXjQ&amp;user_id=6D7MMS&amp;scope=settings+sleep+location+social+weight+nutrition+activity+heartrate+profile&amp;token_type=Bearer&amp;expires_in=86400
Command for testing in cli. curl -i localhost:8189/auth_code#access_token=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiI2RDdNTVMiLCJhdWQiOiIyMkNMWVciLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJzY29wZXMiOiJ3aHIgd251dCB3cHJvIHdzbGUgd3dlaSB3c29jIHdzZXQgd2FjdCB3bG9jIiwiZXhwIjoxNTE3ODE5MTE1LCJpYXQiOjE1MTc3MzI3MTV9.dfzgRPybQOwii8HePCE14Ba7wAfqYXK6QaF3-PgaXjQ&amp;user_id=6D7MMS&amp;scope=settings+sleep+location+social+weight+nutrition+activity+heartrate+profile&amp;token_type=Bearer&amp;expires_in=86400 test with curl curl -i -H &#34;Authorization: Bearer eyJhbGciOiJIUdzbGUgd3dlaSB3c29jIHdzZXQgd2FjdCB3bG9jIiwiZXhwIjoxNTE3ODE5MTE1LCJpYXQiOjE1MTc3MzI3MTV9.</description>
</item>
<item>
<title>Git ignore</title>
<link>https://tommyshem.github.io/2018/01/29/git-ignore/</link>
<pubDate>Mon, 29 Jan 2018 19:30:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/01/29/git-ignore/</guid>
<description>content from this website
.gitignore file
.gitignore entry Ignores every… target/ … folder (due to the trailing /) recursively target … file or folder named target recursively /target … file or folder named target in the top-most directory (due to the leading /) /target/ … folder named target in the top-most directory (leading and trailing /) *.class … every file or folder ending with .class recursively #comment … comment in the file</description>
</item>
<item>
<title>How to add scripts nautilus menu</title>
<link>https://tommyshem.github.io/2018/01/28/how-to-add-scripts-nautilus-menu/</link>
<pubDate>Sun, 28 Jan 2018 21:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/01/28/how-to-add-scripts-nautilus-menu/</guid>
<description>How to add scripts to nautilus website</description>
</item>
<item>
<title>How to Mount a drive on linux</title>
<link>https://tommyshem.github.io/2018/01/28/how-to-mount-a-drive-on-linux/</link>
<pubDate>Sun, 28 Jan 2018 21:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/01/28/how-to-mount-a-drive-on-linux/</guid>
<description>Mount drive Find device you want to mount
fdisk -l Make a folder that will be the mount point.
Example using data as the mount point
sudo mkdir /home/yourusernamehere/data Mount the device drive, example using /dev/sdb1. Use the one you need to mount
sudo mount /dev/sdb1 /home/yourusernamehere/data Now you can access the drive at /media/data.
Auto-mount at boot We want the drive to auto-mount at boot.
This means editing /etc/fstab.</description>
</item>
<item>
<title>Setup Hugo with github pages.</title>
<link>https://tommyshem.github.io/2018/01/28/setup-hugo-with-github-pages./</link>
<pubDate>Sun, 28 Jan 2018 17:15:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/01/28/setup-hugo-with-github-pages./</guid>
<description>Read this hugo website
Then change baseURL in config.toml to your github page or your css will not work. e.g baseurl = &ldquo;https://tommyshem.github.io/&quot;</description>
</item>
<item>
<title>How to setup vscode with delve remotely</title>
<link>https://tommyshem.github.io/2018/01/28/how-to-setup-vscode-with-delve-remotely/</link>
<pubDate>Sun, 28 Jan 2018 09:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/01/28/how-to-setup-vscode-with-delve-remotely/</guid>
<description>Compile your project first if it is complex to compile Compile your project as normal but add this flag to get better debugging infomation -gcflags=&quot;-N -l&quot;.
use flag attach or exec to run your program first before running the debugger.
Visual studio Code Remote Debugging Orignal infomation from this webite
delve debugger homepage
Do not use this flag as vscode go plugin does not surport version 2 yet. --api-version=2
To remote debug using VS Code, you must first run a headless Delve server on the target machine.</description>
</item>
<item>
<title>How to setup vscode with task</title>
<link>https://tommyshem.github.io/2018/01/28/how-to-setup-vscode-with-task/</link>
<pubDate>Sun, 28 Jan 2018 09:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/2018/01/28/how-to-setup-vscode-with-task/</guid>
<description>Tasks website</description>
</item>
<item>
<title>How to make mac os x finder suck less</title>
<link>https://tommyshem.github.io/2018/01/26/how-to-make-mac-os-x-finder-suck-less/</link>
<pubDate>Fri, 26 Jan 2018 19:00:00 +0200</pubDate>
<guid>https://tommyshem.github.io/2018/01/26/how-to-make-mac-os-x-finder-suck-less/</guid>
<description>How to customize mac os x finder from below blog post. Original website post</description>
</item>
<item>
<title></title>
<link>https://tommyshem.github.io/1/01/01/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/1/01/01/</guid>
<description>title = &ldquo;Go barcode&rdquo; date = &ldquo;2018-06-26T2:00:00&rdquo; tags = [&ldquo;go,barcode&rdquo;] categories = [&ldquo;go&rdquo;] banner = &quot;&rdquo; +++
Go Barcode website to go barcode package
https://github.com/boombuler/barcode
Go install packages go get github.com/boombuler/barcode go get github.com/boombuler/barcode/qr Basic program
package main import ( &#34;image/png&#34; &#34;os&#34; &#34;github.com/boombuler/barcode&#34; &#34;github.com/boombuler/barcode/qr&#34; ) func main() { // Create the barcode qrCode, _ := qr.Encode(&#34;Hello World&#34;, qr.M, qr.Auto) // Scale the barcode to 200x200 pixels qrCode, _ = barcode.</description>
</item>
<item>
<title>Android Termux YouTube Downloader Notes</title>
<link>https://tommyshem.github.io/1/01/01/android-termux-youtube-downloader-notes/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/1/01/01/android-termux-youtube-downloader-notes/</guid>
<description>Downloading programming videos from YouTube with Termux on Android First read the Termux Notes and continue below.
Install packages first from Termux Install python
pkg install python Install ffmpeg
pkg install ffmpeg Install and setting up youtube-dl First update pip
pip install --upgrade pip Install youtube-dl using pip
pip install --upgrdae youtube-dl Edit .bashrc file using micro editor or nano
micro ~/.bashrc Add alias to .bashrc file so it downloads the best vidio format</description>
</item>
<item>
<title>Arch linux AUR Build Package Notes</title>
<link>https://tommyshem.github.io/1/01/01/arch-linux-aur-build-package-notes/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/1/01/01/arch-linux-aur-build-package-notes/</guid>
<description>Arch linux AUR build package Build Aur packages Make sure base build packages are installed before trying to make aur packages for the first time. pacman -Syu pacman -Sy base-devel Clone repo from AUR Get repo address from arch website AUR https://aur.archlinux.org/
git clone https://aur.archlinux.org/packagename.git cd packagename makepkg -s </description>
</item>
<item>
<title>Disk Usage Notes</title>
<link>https://tommyshem.github.io/1/01/01/disk-usage-notes/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/1/01/01/disk-usage-notes/</guid>
<description>Disk Usage Notes Install nsdu command sudo apt install nsdu Run nsdu command nsdu </description>
</item>
<item>
<title>Rsync Notes</title>
<link>https://tommyshem.github.io/1/01/01/rsync-notes/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/1/01/01/rsync-notes/</guid>
<description>Rsync Notes Understanding the output of rsync &ndash;itemize-changes As you may know the rsync&rsquo;s &ndash;delete options if misused could make severe damage.
To prevent this you can use the &ndash;itemize-change and the &ndash;dry-run options to figure out how the command will behave before launching the real one.
The output will be something like that:
.d..t..g... ./ .f...p.g... Something.pdf .f.....g... md5sum-2010-02-21.txt .f...p.g... prova.rb .d.....g... .metadata/ .f...p.g... .metadata/.lock .f...p.g... .metadata/.log .f...p.g... .metadata/version.ini &gt;f+++++++++ Parameter_Usage.</description>
</item>
<item>
<title>Rust Notes</title>
<link>https://tommyshem.github.io/1/01/01/rust-notes/</link>
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://tommyshem.github.io/1/01/01/rust-notes/</guid>
<description>Rust Notes Rust playground website https://play.rust-lang.org/
Tutorials websites https://stevedonovan.github.io/rust-gentle-intro/1-basics.html
Setup dev env https://hoverbear.org/2017/03/03/setting-up-a-rust-devenv/
Setup rust with Rustup website https://rustup.rs/
website on how to use it https://rust-lang-nursery.github.io/edition-guide/rust-2018/rustup-for-managing-rust-versions.html
curl https://sh.rustup.rs -sSf | sh location of all rustup install and files $HOME/.cargo/bin
Rustup use Install bash completions (Optional)
rustup completions bash &gt; /etc/bash_completion.d/rustup.bash-completion Updating rustup
rustup self update Install stable toolchain
rustup install stable Nightly Install Nightly toolchain
rustup install nightly Set Nightly as default</description>
</item>
</channel>
</rss>