You are not logged in.
I had the same problems when I started with git. Now I have a live website that is maintained via git: https://github.com/morfikov/morfikov.github.io
And I'm not afraid changing anything because there's always `git reset HEAD~`
Offline
I'm more afraid of git than the scripts failing.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
EDIT: By the way, git status doesn't report anything abnormal.
Now it doesn't, but when you're changing files, it does. So you should type this command a lot.
Offline
git reflog:
1e93f1c (HEAD -> master, origin/master) HEAD@{0}: checkout: moving from random_photo to master
12a36a2 (random_photo) HEAD@{1}: checkout: moving from master to random_photo
1e93f1c (HEAD -> master, origin/master) HEAD@{2}: checkout: moving from random_photo to master
12a36a2 (random_photo) HEAD@{3}: merge master: Merge made by the 'recursive' strategy.
d8b0b49 HEAD@{4}: checkout: moving from master to random_photo
1e93f1c (HEAD -> master, origin/master) HEAD@{5}: commit: Fixed changelog
c4d90b7 HEAD@{6}: checkout: moving from random_photo to master
d8b0b49 HEAD@{7}: checkout: moving from master to random_photo
c4d90b7 HEAD@{8}: checkout: moving from random_photo to master
d8b0b49 HEAD@{9}: checkout: moving from random_photo to random_photo
d8b0b49 HEAD@{10}: checkout: moving from master to random_photo
c4d90b7 HEAD@{11}: checkout: moving from random_photo to master
d8b0b49 HEAD@{12}: checkout: moving from master to random_photo
c4d90b7 HEAD@{13}: checkout: moving from random_photo to master
d8b0b49 HEAD@{14}: checkout: moving from master to random_photo
c4d90b7 HEAD@{15}: checkout: moving from random_photo to master
d8b0b49 HEAD@{16}: commit: Custom script
c4d90b7 HEAD@{17}: merge master: Fast-forward
8b41a0f HEAD@{18}: checkout: moving from master to random_photo
c4d90b7 HEAD@{19}: checkout: moving from random_photo to master
8b41a0f HEAD@{20}: checkout: moving from master to random_photo
c4d90b7 HEAD@{21}: checkout: moving from random_photo to master
8b41a0f HEAD@{22}: checkout: moving from master to random_photo
c4d90b7 HEAD@{23}: checkout: moving from random_photo to master
8b41a0f HEAD@{24}: checkout: moving from master to random_photo
c4d90b7 HEAD@{25}: checkout: moving from random_photo to master
8b41a0f HEAD@{26}: checkout: moving from master to random_photo
c4d90b7 HEAD@{27}: checkout: moving from random_photo to master
8b41a0f HEAD@{28}: checkout: moving from master to random_photo
c4d90b7 HEAD@{29}: pull: Fast-forward
1f8a9e0 HEAD@{30}: commit: Fixed visibility in curr_cond file
ae96949 HEAD@{31}: reset: moving to origin/master
ae96949 HEAD@{32}: merge random_photo: Merge made by the 'recursive' strategy.
a13d770 HEAD@{33}: pull: Fast-forward
3a4f961 HEAD@{34}: pull: Merge made by the 'recursive' strategy.
a34759b HEAD@{35}: commit: Fixed
804f598 HEAD@{36}: reset: moving to HEAD@{ee8e6fc}
6d27a3e HEAD@{37}: commit: Fixed visibility in curr_cond file
2b402cc HEAD@{38}: commit: Fixed visibility in curr_cond file
ee8e6fc HEAD@{39}: checkout: moving from random_photo to master
8b41a0f HEAD@{40}: merge master: Merge made by the 'recursive' strategy.
2176ebe HEAD@{41}: checkout: moving from master to random_photo
ee8e6fc HEAD@{42}: commit: Corrected curr_cond file
9d89ad9 HEAD@{43}: checkout: moving from random_photo to master
2176ebe HEAD@{44}: checkout: moving from master to random_photo
9d89ad9 HEAD@{45}: checkout: moving from random_photo to master
2176ebe HEAD@{46}: merge master: Merge made by the 'recursive' strategy.
a02e73b HEAD@{47}: checkout: moving from master to random_photo
...
As you can see, I did try to reset the head to ee8e6fc (just before the bad 2b402cc commit), but it didn't help, the ignored files stayed there.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
Could you send me the zip?
Offline
Archive sent.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
I can't think I can save this. Have you seen how git sees the repo how? Check:
$ git log --all --oneline --graph --decorate --abbrev-commit
There's so huge mess there and there's "Merge branch 'master' of https://gitlab.com/teobigusgeekus/1_accuweather" (3a4f961) commit, which when reset, it wipes everything and sets all files to the point of "Release Candidate 2" . So why have you merged the remote branch into local one?
Do you have the backup zip file that you sent me the other day? I have the zip file you gave me (intact). So maybe you could start with it, because I wouldn't advise to go with the repo you have now.
Also I have some advice for you:
1. always check `git status`
2. after adding files, check `git status`
3. after adding files, check diff via `git diff --cached` -- it will print any change you are about to make via `git commit` .
These 3 steps will save you a lot of nerves.
Last edited by morfik (2019-10-12 15:53:18)
Offline
I can't think I can save this. Have you seen how git sees the repo how? Check:
$ git log --all --oneline --graph --decorate --abbrev-commit
That's... almost... beautiful...
I'm thinking of deleting the repository and creating it anew. I'll also abandon the stupid numbers naming scheme and I'll just call the script Accuweather, plain and simple:
https://www.youtube.com/watch?v=aCbfMkh940Q
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
I can send you the zip you sent me earlier if you like.
Offline
I can send you the zip you sent me earlier if you like.
No thanks, I'll nuke that steaming pile of crap and start from the beginning.
Enough about git, do you know a way to get wget to work under a vpn with accuweather?
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
I don't know, why doesn't it work anyway?
Offline
No idea, it works without a vpn using a random user agent, like "Hi Mark", or "supercalifragilisticexpialidocious", or whatever, but if you use a vpn it just hangs there without ever downloading the page.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
ANNOUNCEMENT
Accuweather_conky_script
Pushed everything to a brand new repository, the old one had been massacred beyond recognition. I also changed the name of the script and the script's folder to accuweather and Accuweather_conky_script respectively. The number naming scheme made no sense because problems would arise when new scripts where created or old ones abandoned. It's also a great distraction from the fact that I suck at git.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
@morfik
Can I rename a repository at gitlab?
Can I rename the folder of a script as well?
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
You can rename repo on gitlab.
You have to rename the folder in the local git repo and git will detect the change -- you will have to add a commit.
Offline
Ok, thanks.
I want to rename the 2_Wunderground script to simply WUnderground.
I'll eventually rename all scripts and repositories.
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
No idea, it works without a vpn using a random user agent, like "Hi Mark", or "supercalifragilisticexpialidocious", or whatever, but if you use a vpn it just hangs there without ever downloading the page.
I can think of a few questions/tests:
which vpn? can you try other vpns?
can you view the website normally via that same vpn? and download it through the browser? also with sth like dillo?
have you tried various proper useragents?
have you tried curl?
And... I might be wrong, but isn't a VPN a sort of proxy? So searching curl's man page for "proxy" could help?
Offline
Teo, it's working fine again!
Thank you for your tireless work.
You still have a little mistake in it.
git creates in $HOME the directory accuweather_conky_script
All paths in the script and the files have a capital Accuweather_conky_script
Offline
Teo, it's working fine again!
Thank you for your tireless work.![]()
You still have a little mistake in it.
git creates in $HOME the directory accuweather_conky_scriptAll paths in the script and the files have a capital Accuweather_conky_script
Corrected.
Thanks for the feedback mein Freund!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline
which vpn? can you try other vpns?
can you view the website normally via that same vpn? and download it through the browser? also with sth like dillo?
have you tried various proper useragents?
have you tried curl?
And... I might be wrong, but isn't a VPN a sort of proxy? So searching curl's man page for "proxy" could help?
I use Expressvpn, I cannot try other vpns.
Everything works fine with Expressvpn, graphic browsers or the command line, even the other scripts. The only thing that doesn't work is the Accuweather script, be it with wget, curl, w3m, lynx, etc. with a user agent or without, proper or fake. Without a user agent I get a message that access is forbidden to Accuweather; with a user agent (real or fake) the commands hang there indefinitely, never downloading the page.
I have tried various proper useragents, as I've said before.
Curl doesn't work either, user agent or not.
I did a search on curl's proxy settings but I couldn't find anything.
Last edited by TeoBigusGeekus (2019-10-13 16:01:16)
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Offline