I might have missed something, but I haven't found any simple way to change my admin password (with emailing not active) in gogs. It was quite easy to find the hash location, but as I didn't know how it was generated... Luckily I eventually found the parameters used, so here it is for you if you need them embedded in a script : var pbkdf2 = require('pbkdf2-sha256'); var key = 'YourChosenPasword'; var salt = 'AnyRandomValue'; var hash = pbkdf2(key, salt, 10000, 50); console.log(hash.toString('hex')); All I had to do was then to update the table user , setting passwd to the generated value (and updating salt with the value used in the script).
Original article published my new blog blog.assad.fr If I have no definitive answer on this, the Business Insider has some insights: HackerRank polled 116000 developers about their salaries and got interesting results: Perl is associated with an average global salary of $84,025.50 (54.2% higher than the global average salary) Scala is associated with an average global salary of $77,159.60 Go is associated with an average global salary of $72,691.30 Python is associated with an average global salary of $56,670.90 JavaScript is associated with an average global salary of $55,690 Without more information about the polled panel it's hard to state this results as “Truth” but they seems to confirm personal beliefs: The salary is more linked to the scarsity of resources than to the trendyness of the associated technology. Perl resources are less and less available. You know what ? It's good to be a Perl programmer :-)
L'épisode 08 du podcast est en ligne (avec un nouveau format plus court) https://soundcloud.com/arnaud-assad/gofr-episode-08 https://soundcloud.com/arnaud-assad/gofr-episode-04 On y parle de Machine Learning, d'outils golang et des évènements de la communauté Go.
Commentaires