Notes and Useful Info

devel

Read more...

Nextcloud 23 Installation on Debian – Emanuel Pina How to install Nextcloud with SSL using snap; either thru Let's Encrypt or self-signed certificate nextcloud 21 installation on ubuntu | Nextcloud 20 Installation on Ubuntu – Emanuel Pina |

How to install NextCloud 18 on Ubuntu 16.04/18.04/19.04/19.10 – Marksei | How to install Nextcloud 18 on Ubuntu Server – TechRepublic | The complete guide to installing Nextcloud on Debian 10 Nice article on installing Nextcloud with nginx (reverse proxy) and Let's Encrypt | more nc from Rog | Nextcloud backup/restore shell scripts Nextcloud security scanner | Nextcloud download files server | Nextcloud 17 online user manual | Using the OCC command |

To backup Nextcloud: there are four major components to deal with:   folder nextcloud/config   folder nextcloud/data   folder nextcloud/theme   folder nextcloud/config (added by me)   (also possibly .htaccess) The database (can be MySQL/MariaDB, SQLite, or PostgreSQL) It's possible to manually back up folders, files, and the database. Have a look at the Nextcloud documentation to find out how to achieve that. It basically involves shutting down the application, letting it store its internal state on disk, backing up all files, and restarting Nextcloud. from: How to back up Nextcloud with Bareos – Nextcloud

Followup: Header Strict-Transport-Security (HSTS) in /etc/apache2/conf-available/ssl-params.conf

GitHub | NC Forum | Security scan of instance | Blog | Free instances | Free Providers | thegood.cloud 2gb free | HowTo: backup files | nc backup doc | nc restore doc | Sync files on Windows with WebDAV | on RaspPi | New collaborative rich text editor | NC Projects | Markdown editor | User Manual | Nextcloud at home | How To Backup Nextcloud, by Kev Quirk |

Security guidance doc | Security checker |

NextCloud Bookmarks has a browser bookmarklet.

Read more...

5 Ways to Undo Mistakes with Git: Discarding Some of Your Local Changes, Resetting a Specific File to a Previous State, Recovering a Lost Revision with the Reflog, Recovering a Deleted Branch, Moving a Commit to a Different Branch

Removing a git commit and force pushing to remove it from history; simonw TILs

How to push to a repo to maintain only one commit – useful if you would otherwise have a whole bunch of data-hogging commits that aren't necessary to keep. From simonw: The latest til.db file is now stored in https://github.com/simonw/til-db – every time I push a new copy of the file there I use git commit --amend to rewrite history followed by git push --force – so that repo only ever contains a single commit which is the commit that added the file. [source]

How to change git master to main note the caveats in the thread

How to remove a pushed commit Committed and pushed incorrect file otd-tweets-by-mcnees (forgot the html extension). I could have dealt with the unpushed change but was in a rush and instead went ahead and committed/pushed corrected version otd-tweets-by-mcnees.html But later I wanted to remove that bad commit/push. Here's how I did it, using procedure from the above web page: git revert e98adc579131244c56913e0d5afbd5ba395bc6c8 Then git status said local repo was ahead of remote by 1 and that a push was needed. So I did the git push. The file then did not show up in the jrdmb/jrdmb github repo.

How to Squash the First Two Commits in a Git Repository — Marius Schulz

Github account security log

Learn to change history with git rebase; git rebase in depth | How does Git Rebase work and compare with Git Merge and Git Interactive Rebase | What is Git Rebase and How Is it Different than Merging? | Change a Git Commit in the Past with Amend and Rebase Interactive – Nick Janetakis | Top 20 git commands and examples caltlgin git wiki tips and commans ref Git: Clear local and remote repo and start over | Git HowTo: revert commit already pushed to remote repository; delete earlier commits | Git and GitHub: How to Revert a Single File | Wiki on git GitHub: Everything you need to know

Git Alternatives Launchpad

Git articles/Tutorials How to Host Your Blog for Free with Jekyll and GitHub Pages | How writers can use github, nice setup/config info | GitHub Project Management | 15 git commands you may not know Especially see #15 on optimizing local repo with 'git gc' jermity Git Notes Glossary with Step Procs | Getting Started | Tutorials | BitBucket 101 | Pro Git online eBook | Learning Git online eBook | How to place the git folder out of your working tree |

Read more...

Read more...

Full Stack Python t.o.c. Python cheat sheet cat test.json | python -m json.tool (pretty-print json) | RealPython site | Matplotlib cheat sheets List all installed modules: pydoc modules Show help for a module: pydoc sys Python: Timezone and Daylight savings

Analyze data with Python and Jupyter Notebook — First Python Notebook 1.0 documentation | Used for this free course recommended by simonw |

PyNaCl: Python binding to the libsodium library — PyNaCl 1.3.0 documentation Data Analysis Made Simple: Python Pandas Tutorial

Python tutorials as ipynb/Jupyter notebooks: stats, plotting, astronomy | source |

long list of python resources

Space Science with Python — A Data Science Tutorial Series Ultimate Guide to Python Debugging ReadTheDocs: Python | Scrapy |

Build web apps to automate sysadmin tasks, with Python, Flask, etc Working with SQLite in Python

Python Flask project: This is a remix of the original app by cjeller1592. His source code for it. Also, his Writeas-Search github page which uses his write.as API. WTForms documentation | Flask Tutorial | Flask github repo | Flask documentation | Flask Resources List | Glitch Support Forum | Flask-Python tutorials | The Glitch console and editor now automatically sync. Previously, you had to manually run the refresh command from the console and to force a refresh, updating the editor with any files created/edited via the console or programmatically. glitch: how to link to other pages from index.html |

Important Notes: TutorialsPoint online python3 compiler | pyfiddle.io | Python re test page | python fiddle | trinket.io python fiddle | The Standard Python Library | Python3 good reference | PythonAnywhere | PythonAnywhere web db example | How do I Extract Specific Portions of a Text File Using Python? | Python3 regex tutorial | Python TutorialsPoint | Official Python Tutorial | Google's Python Tutorial | Dive Into Python3 book | Pyzo | Full Stack Python | Install PyQt5 and build gui app | Another gui app | Spyder github repo | Spyder site | Spyder docs incl debug |

Simple python debugging with pdb, PhysicsForum series Scientific computing with python .ipynb | matplotlib – 2D and 3D plotting in Python | Jupyter nbviewer | Guide to Python Plotting with Matplotlib |

Read more...