Skip to content

Instantly share code, notes, and snippets.

View d80ep08th's full-sized avatar
🎯
Focusing

Parth Dode d80ep08th

🎯
Focusing
  • Hamilton
  • 19:06 (UTC -04:00)
View GitHub Profile
@d80ep08th
d80ep08th / final-submission-gsoc22.sh
Created September 12, 2022 14:56
Google Summer of Code 22 - Final Submission
'https://uptanedemo.org
- The website demonstrated how uptane`s over-the-air-community-edition works when deployed to server to new users of the project.
- It runs ota-community-edition in the backend with its setup fully automated by ansible.
- The website provides script to create a virtual device and describes the steps to create an update for the specified virtual device
and then pulling that update to your virtual device, with simple tools without using complex ota-ce internal apis, hence demonstrating the power of ota-community-edition.
https://github.com/uptane/ota-community-edition/pull/8
- PR with commits including documentation and deploying it to server with ansible, for the Official Release of Open-source Uptane Server (“OTA Community Edition”).
https://github.com/uptane/uptane-demo-server/pull/1
@d80ep08th
d80ep08th / docker logs
Created July 10, 2022 23:31
So this is what happens on the docker logs when I try to generate a device
ota-lith-db-1 | 2022-07-10 23:29:08 9 [Warning] Aborted connection 9 to db: 'tuf_repo' user: 'tuf_repo' host: '172.18.0.6' (Got timeout reading communication packets)
ota-lith-db-1 | 2022-07-10 23:29:08 10 [Warning] Aborted connection 10 to db: 'tuf_repo' user: 'tuf_repo' host: '172.18.0.6' (Got timeout reading communication packets)
ota-lith-db-1 | 2022-07-10 23:29:08 11 [Warning] Aborted connection 11 to db: 'tuf_repo' user: 'tuf_repo' host: '172.18.0.6' (Got timeout reading communication packets)
ota-lith-db-1 | 2022-07-10 23:29:08 12 [Warning] Aborted connection 12 to db: 'tuf_repo' user: 'tuf_repo' host: '172.18.0.6' (Got timeout reading communication packets)
ota-lith-db-1 | 2022-07-10 23:29:08 13 [Warning] Aborted connection 13 to db: 'tuf_repo' user: 'tuf_repo' host: '172.18.0.6' (Got timeout reading communication packets)
ota-lith-db-1 | 2022-07-10 23:29:08 14 [Warning] Aborted connection 14 to db: 'tuf_repo' us
@d80ep08th
d80ep08th / gist:c5d11b45364f8672b52d845d79365974
Created June 22, 2022 11:19
same thing with my fork repo ssh url
depth@ubuntu:~/Public/Node/1/geewallet$ git remote add parthFork git@gitlab.com:dodecoder/geewallet.git
depth@ubuntu:~/Public/Node/1/geewallet$ git push -u parthFork HEAD
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
depth@ubuntu:~/Public/Node/1/geewallet$ git remote add parthFork git@gitlab.com:nblockchain/geewallet.git
depth@ubuntu:~/Public/Node/1/geewallet$ git push -u parthFork HEAD
git@gitlab.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
depth@ubuntu:~/Public/Node/1/geewallet$
@d80ep08th
d80ep08th / python tests
Created June 20, 2022 09:54
TDD for candidates
#basic unit test that tests that true is true
#############IMPLEMENT################
# Product A [cost 10] & B [cost 20], we have to return its cost
def cart(buyList):
#match the product in
return 20
#############TEST################
@d80ep08th
d80ep08th / make
Created June 9, 2022 11:33
After reverting commit and facing merge conflicts
depth@ubuntu:~/Public/Node/1/geewallet$ ./configure.sh --prefix=/usr/local
\
checking for a working F# REPL... found
checking for mono... found
checking for pkg-config... found
checking for mono v6.6... found
checking for make... found
checking for fsharpc... found
checking for curl... found
checking for msbuild... found
@d80ep08th
d80ep08th / gist:b4fe546fa18dc0c837fc632d230ab613
Created June 9, 2022 11:07
merge conflict during revert
depth@ubuntu:~/Public/Node/1/geewallet/src/GWallet.Frontend.XF.Gtk/bin/Debug$ git revert 513c00646c25192d36d4d55e6cbc7ec3dd3413ab
Auto-merging src/GWallet.Frontend.XF/WelcomePage.xaml.fs
[frontend ee220a0c] Revert "Frontend.XF(WelcomePage): clarify form is not an account signup/login"
2 files changed, 33 deletions(-)
depth@ubuntu:~/Public/Node/1/geewallet/src/GWallet.Frontend.XF.Gtk/bin/Debug$ git revert e1e0531c76f640b231726c8516843461cf3c876f
Auto-merging src/GWallet.Frontend.XF/WelcomePage.xaml.fs
CONFLICT (content): Merge conflict in src/GWallet.Frontend.XF/WelcomePage.xaml.fs
error: could not revert e1e0531c... Frontend.XF: init WelcomePage's picker with a valid default date
hint: after resolving the conflicts, mark the corrected paths
@d80ep08th
d80ep08th / mono geewallet.exe
Created June 9, 2022 11:01
geewallet crash
depth@ubuntu:~/Public/Node/1/geewallet/src/GWallet.Frontend.XF.Gtk/bin/Debug$ mono geewallet.exe
Gtk-Message: 16:28:37.608: Failed to load module "canberra-gtk-module"
(geewallet:146066): Gdk-WARNING **: 16:28:38.472: gdk_window_set_icon_list: icons too large
(geewallet:146066): Gtk-CRITICAL **: 16:28:55.669: IA__gtk_container_remove: assertion 'GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed
(geewallet:146066): Gtk-CRITICAL **: 16:28:58.884: IA__gtk_container_remove: assertion 'GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed
(geewallet:146066): Gtk-CRITICAL **: 16:29:03.756: IA__gtk_container_remove: assertion 'GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed
@d80ep08th
d80ep08th / console error
Created June 9, 2022 10:33
geewallet crashes after filling form
depth@ubuntu:~/Public/Node/1/geewallet/src/GWallet.Frontend.XF.Gtk/bin/Debug$ mono geewallet.exe
Gtk-Message: 16:00:53.224: Failed to load module "canberra-gtk-module"
(geewallet:129845): Gdk-WARNING **: 16:00:54.001: gdk_window_set_icon_list: icons too large
(geewallet:129845): Gtk-CRITICAL **: 16:01:15.530: IA__gtk_container_remove: assertion 'GTK_IS_TOOLBAR (container) || widget->parent == GTK_WIDGET (container)' failed
=================================================================
Native Crash Reporting
=================================================================
@d80ep08th
d80ep08th / make
Created June 9, 2022 09:52
1 error
+ BUILD_CONFIG=./scripts/build.config
+ '[' '!' -f ./scripts/build.config ']'
+ source ./scripts/build.config
++ FsxRunner=/home/depth/Public/Node/1/geewallet/bin/fsx/bin/fsx
++ BuildTool=xbuild
++ MonoPkgConfigVersion=6.8.0.105
++ Prefix=/usr/local
+ FsxRunner=/home/depth/Public/Node/1/geewallet/bin/fsx/bin/fsx
+ BuildTool=xbuild
+ /home/depth/Public/Node/1/geewallet/bin/fsx/bin/fsx ./scripts/make.fsx