Are you over 18 and want to see adult content?
More Annotations
A complete backup of https://chinaq.tv/jp181009b/
Are you over 18 and want to see adult content?
A complete backup of https://ulziibat.blogspot.com/
Are you over 18 and want to see adult content?
A complete backup of https://chinaq.tv/kr171014/
Are you over 18 and want to see adult content?
A complete backup of https://daysofadomesticdad.com/acura-mdx-a-spec/
Are you over 18 and want to see adult content?
A complete backup of https://nr2k3.weebly.com/
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of balochistan.gov.pk
Are you over 18 and want to see adult content?
A complete backup of sunmandearborn.k12.in.us
Are you over 18 and want to see adult content?
A complete backup of tropheesdiffusion.com
Are you over 18 and want to see adult content?
A complete backup of haushalt-krausse.de
Are you over 18 and want to see adult content?
Text
mode
WAGTAIL AND STREAMFIELDS Wagtail and Streamfields. Django was always great for developers out of the box, but creating friendly admin interfaces was always a little too much work. This post explains why I now consider using Wagtail to make this task easier. 2016-02-09. Over the years I've tried pretty much every available Django CMS out there. FUSE: BAD MOUNT POINT Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected. It took me a little time to find out how to fix this problem: kill the sshfs process (es) umount -l /mnt/foo (as root) mount the sshfs again. I suppose this happens with other networkedfilesystems as
MIGRATING DJANGO PROJECTS WITH FIXTURES When migrating a Django project it's often useful to work with the built-in dumpdata and loaddata management commands. However, this can easily lead to errors like django.db.utils.IntegrityError: Problem installing fixture Could not load foo.Bar(pk=ba): (1062, "Duplicate entry for key 'app_label'"). Such errors indictate that a similar object already exists in DUMP ALL BITCOIN PRIVATE KEYS I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase). No warranty. FILESYSTEM WITH HUGE FILES CANNOT BE MOUNTED READ-WRITE Since the problem is caused by mke2fs.ext4 that by default formats with the huge_file feature on, one can format a new partition giving a set of features that overrides the default and that does not includethe huge_file one:
BLOG – NICOLAS KUTTLER Force pinentry tool for gnupg. 2021-01-18. While interacting with gnupg on Debian/Ubuntu it is often necessary to input a passphrase. I found the most reliable way to do this from the command line is to use gpg-agent and configure the pinentry tool to be command line based. This may break GUI apps though that need a more. DJANGO-FILTER AND CUSTOM QUERYSETS Django-filter is a powerful tool, but the documentation is a little sparse. If you want to see examples of custom Filters you have to dive into the source code.. I recently wanted to add a filter for methods on a custom QuerySet.Unlike custom managers, custom QuerySets allow you to chain methods. You can read this introduction or refer to the official documentation (at the time of this writing USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPY I was recently working on a very CRUDy prototype and decided to use some Django applications and tools together I hadn't combined yet: Django-tables2, an excellent application that allows you to quickly build tables Django-filter for easy filtering Django-crispy-forms for easy form creation A view that uses all three apps DOCKER-COMPOSE WITH MYSQL/MARIADB AND HEALTHCHECK I have a few old Django projects still running MySQL/MariaDB. Getting docker-compose to work with MySQL images is a little tricky, as the database needs too much time to start up. Below is a configuration that starts one application host and one database host. /usr/bin/mysql is used for MariaDB because MY SCREEN LOCKING CONFIGURATION The manual locking is done by hitting the Print key twice, I use a mode for this as shown below. The mode is called "switch" because that's what I use it mostly for, to switch between workspaces, but that's not relevant for this post. mode "switch" { bindsym Print exec ~/local/scripts/lock.sh force; mode "default" # Abort bindsym Returnmode
WAGTAIL AND STREAMFIELDS Wagtail and Streamfields. Django was always great for developers out of the box, but creating friendly admin interfaces was always a little too much work. This post explains why I now consider using Wagtail to make this task easier. 2016-02-09. Over the years I've tried pretty much every available Django CMS out there. FUSE: BAD MOUNT POINT Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected. It took me a little time to find out how to fix this problem: kill the sshfs process (es) umount -l /mnt/foo (as root) mount the sshfs again. I suppose this happens with other networkedfilesystems as
MIGRATING DJANGO PROJECTS WITH FIXTURES When migrating a Django project it's often useful to work with the built-in dumpdata and loaddata management commands. However, this can easily lead to errors like django.db.utils.IntegrityError: Problem installing fixture Could not load foo.Bar(pk=ba): (1062, "Duplicate entry for key 'app_label'"). Such errors indictate that a similar object already exists in DUMP ALL BITCOIN PRIVATE KEYS I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase). No warranty. FILESYSTEM WITH HUGE FILES CANNOT BE MOUNTED READ-WRITE Since the problem is caused by mke2fs.ext4 that by default formats with the huge_file feature on, one can format a new partition giving a set of features that overrides the default and that does not includethe huge_file one:
DJANGO-FILTER AND CUSTOM QUERYSETS Django-filter is a powerful tool, but the documentation is a little sparse. If you want to see examples of custom Filters you have to dive into the source code.. I recently wanted to add a filter for methods on a custom QuerySet.Unlike custom managers, custom QuerySets allow you to chain methods. You can read this introduction or refer to the official documentation (at the time of this writingEXPERIMENTS
Experiments. This is my online playground where I publish small toys I build to learn about various technologies, or just for fun. I keep most of my experiments private, but some are good enough to RUNNING DJANGO AS A HIDDEN ONION SERVICE Not really, but it's a nice technological experiment to run a Django site as a hidden service. The setup was quite easy: there is a gunicorn instance running on the server, and a nginx proxy in front of it. The onion traffic has to go through nginx as static files and media are not served by gunicorn. In the relevant nginx config sectionI
WHAT HAPPENED TO BITCOIN-24.COM? Bad: Licensing, Data leak, Password security, Accounting, DB integrity and Float arithmetic. Donations: No BTC? 2020-04-16 Bitcoin24 and Corona Virus Who would have thought seven years later and there are still things happening around Bitcoin24. The refund effort started by Jeff has made slow, steady progress over the years BITCOIN TESTNET BLOCKCHAIN SIZE IN 2020 Bitcoin testnet blockchain size in 2020. I tried to look this up yesterday but couldn't find any current numbers for the size of the testnet blockchain. So here are my stats, with txindex enabled. Raw. 2021-01-07 32G .bitcoin/testnet3/. Published on Jan. 7, 2021, lastupdate Jan. 7,
DUMP ALL BITCOIN PRIVATE KEYS I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase). No warranty. ORDER POSTS IN A $WP_QUERY MANUALLY Build a custom WordPress query and order the posts however you want them. Notice that this won't work properly if you page results, so it is only useful in very specific cases. Btw, wrap everything into your class and get rid o the global var when you use this ;-) SHORT SCRIPT TO INSTALL MINIKUBE Yes, I felt like I had to automate this after installing minikube on a few machines in a row. GIT CLONE, SSH: COULD NOT RESOLVE HOSTNAME Stable Django deployments without downtime; Detecting fraudulent activity on a bitcoin testnet faucet; The day I fell in love withcomputers; Using
ACCOUNT SCHEDULED FOR DELETION "Hi Nicolas, We have received a request to permanently delete your account. Your account has been deactivated from the site and will be permanently deleted within 14 days. BLOG – NICOLAS KUTTLER Force pinentry tool for gnupg. 2021-01-18. While interacting with gnupg on Debian/Ubuntu it is often necessary to input a passphrase. I found the most reliable way to do this from the command line is to use gpg-agent and configure the pinentry tool to be command line based. This may break GUI apps though that need a more. DJANGO-FILTER AND CUSTOM QUERYSETS Django-filter is a powerful tool, but the documentation is a little sparse. If you want to see examples of custom Filters you have to dive into the source code.. I recently wanted to add a filter for methods on a custom QuerySet.Unlike custom managers, custom QuerySets allow you to chain methods. You can read this introduction or refer to the official documentation (at the time of this writing USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPY I was recently working on a very CRUDy prototype and decided to use some Django applications and tools together I hadn't combined yet: Django-tables2, an excellent application that allows you to quickly build tables Django-filter for easy filtering Django-crispy-forms for easy form creation A view that uses all three apps DOCKER-COMPOSE WITH MYSQL/MARIADB AND HEALTHCHECK I have a few old Django projects still running MySQL/MariaDB. Getting docker-compose to work with MySQL images is a little tricky, as the database needs too much time to start up. Below is a configuration that starts one application host and one database host. /usr/bin/mysql is used for MariaDB because MY SCREEN LOCKING CONFIGURATION The manual locking is done by hitting the Print key twice, I use a mode for this as shown below. The mode is called "switch" because that's what I use it mostly for, to switch between workspaces, but that's not relevant for this post. mode "switch" { bindsym Print exec ~/local/scripts/lock.sh force; mode "default" # Abort bindsym Returnmode
FUSE: BAD MOUNT POINT Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected. It took me a little time to find out how to fix this problem: kill the sshfs process (es) umount -l /mnt/foo (as root) mount the sshfs again. I suppose this happens with other networkedfilesystems as
WAGTAIL AND STREAMFIELDS Wagtail and Streamfields. Django was always great for developers out of the box, but creating friendly admin interfaces was always a little too much work. This post explains why I now consider using Wagtail to make this task easier. 2016-02-09. Over the years I've tried pretty much every available Django CMS out there. MIGRATING DJANGO PROJECTS WITH FIXTURES When migrating a Django project it's often useful to work with the built-in dumpdata and loaddata management commands. However, this can easily lead to errors like django.db.utils.IntegrityError: Problem installing fixture Could not load foo.Bar(pk=ba): (1062, "Duplicate entry for key 'app_label'"). Such errors indictate that a similar object already exists in BLOG – NICOLAS KUTTLER Force pinentry tool for gnupg. 2021-01-18. While interacting with gnupg on Debian/Ubuntu it is often necessary to input a passphrase. I found the most reliable way to do this from the command line is to use gpg-agent and configure the pinentry tool to be command line based. This may break GUI apps though that need a more. DJANGO-FILTER AND CUSTOM QUERYSETS Django-filter is a powerful tool, but the documentation is a little sparse. If you want to see examples of custom Filters you have to dive into the source code.. I recently wanted to add a filter for methods on a custom QuerySet.Unlike custom managers, custom QuerySets allow you to chain methods. You can read this introduction or refer to the official documentation (at the time of this writing USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPY I was recently working on a very CRUDy prototype and decided to use some Django applications and tools together I hadn't combined yet: Django-tables2, an excellent application that allows you to quickly build tables Django-filter for easy filtering Django-crispy-forms for easy form creation A view that uses all three apps DOCKER-COMPOSE WITH MYSQL/MARIADB AND HEALTHCHECK I have a few old Django projects still running MySQL/MariaDB. Getting docker-compose to work with MySQL images is a little tricky, as the database needs too much time to start up. Below is a configuration that starts one application host and one database host. /usr/bin/mysql is used for MariaDB because MY SCREEN LOCKING CONFIGURATION The manual locking is done by hitting the Print key twice, I use a mode for this as shown below. The mode is called "switch" because that's what I use it mostly for, to switch between workspaces, but that's not relevant for this post. mode "switch" { bindsym Print exec ~/local/scripts/lock.sh force; mode "default" # Abort bindsym Returnmode
FUSE: BAD MOUNT POINT Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected. It took me a little time to find out how to fix this problem: kill the sshfs process (es) umount -l /mnt/foo (as root) mount the sshfs again. I suppose this happens with other networkedfilesystems as
WAGTAIL AND STREAMFIELDS Wagtail and Streamfields. Django was always great for developers out of the box, but creating friendly admin interfaces was always a little too much work. This post explains why I now consider using Wagtail to make this task easier. 2016-02-09. Over the years I've tried pretty much every available Django CMS out there. MIGRATING DJANGO PROJECTS WITH FIXTURES When migrating a Django project it's often useful to work with the built-in dumpdata and loaddata management commands. However, this can easily lead to errors like django.db.utils.IntegrityError: Problem installing fixture Could not load foo.Bar(pk=ba): (1062, "Duplicate entry for key 'app_label'"). Such errors indictate that a similar object already exists in DJANGO-FILTER AND CUSTOM QUERYSETS Django-filter is a powerful tool, but the documentation is a little sparse. If you want to see examples of custom Filters you have to dive into the source code.. I recently wanted to add a filter for methods on a custom QuerySet.Unlike custom managers, custom QuerySets allow you to chain methods. You can read this introduction or refer to the official documentation (at the time of this writingEXPERIMENTS
Experiments. This is my online playground where I publish small toys I build to learn about various technologies, or just for fun. I keep most of my experiments private, but some are good enough to RUNNING DJANGO AS A HIDDEN ONION SERVICE Not really, but it's a nice technological experiment to run a Django site as a hidden service. The setup was quite easy: there is a gunicorn instance running on the server, and a nginx proxy in front of it. The onion traffic has to go through nginx as static files and media are not served by gunicorn. In the relevant nginx config sectionI
WHAT HAPPENED TO BITCOIN-24.COM? Bad: Licensing, Data leak, Password security, Accounting, DB integrity and Float arithmetic. Donations: No BTC? 2020-04-16 Bitcoin24 and Corona Virus Who would have thought seven years later and there are still things happening around Bitcoin24. The refund effort started by Jeff has made slow, steady progress over the years BITCOIN TESTNET BLOCKCHAIN SIZE IN 2020 Bitcoin testnet blockchain size in 2020. I tried to look this up yesterday but couldn't find any current numbers for the size of the testnet blockchain. So here are my stats, with txindex enabled. Raw. 2021-01-07 32G .bitcoin/testnet3/. Published on Jan. 7, 2021, lastupdate Jan. 7,
DUMP ALL BITCOIN PRIVATE KEYS I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase). No warranty. SHORT SCRIPT TO INSTALL MINIKUBE Yes, I felt like I had to automate this after installing minikube on a few machines in a row. ORDER POSTS IN A $WP_QUERY MANUALLY Build a custom WordPress query and order the posts however you want them. Notice that this won't work properly if you page results, so it is only useful in very specific cases. Btw, wrap everything into your class and get rid o the global var when you use this ;-) GIT CLONE, SSH: COULD NOT RESOLVE HOSTNAME Stable Django deployments without downtime; Detecting fraudulent activity on a bitcoin testnet faucet; The day I fell in love withcomputers; Using
ACCOUNT SCHEDULED FOR DELETION "Hi Nicolas, We have received a request to permanently delete your account. Your account has been deactivated from the site and will be permanently deleted within 14 days.EXPERIMENTS
Experiments. This is my online playground where I publish small toys I build to learn about various technologies, or just for fun. I keep most of my experiments private, but some are good enough to RUNNING DJANGO AS A HIDDEN ONION SERVICE Not really, but it's a nice technological experiment to run a Django site as a hidden service. The setup was quite easy: there is a gunicorn instance running on the server, and a nginx proxy in front of it. The onion traffic has to go through nginx as static files and media are not served by gunicorn. In the relevant nginx config sectionI
DOCKER-COMPOSE WITH MYSQL/MARIADB AND HEALTHCHECK I have a few old Django projects still running MySQL/MariaDB. Getting docker-compose to work with MySQL images is a little tricky, as the database needs too much time to start up. Below is a configuration that starts one application host and one database host. /usr/bin/mysql is used for MariaDB because WAGTAIL AND STREAMFIELDS Wagtail and Streamfields. Django was always great for developers out of the box, but creating friendly admin interfaces was always a little too much work. This post explains why I now consider using Wagtail to make this task easier. 2016-02-09. Over the years I've tried pretty much every available Django CMS out there. USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPY I was recently working on a very CRUDy prototype and decided to use some Django applications and tools together I hadn't combined yet: Django-tables2, an excellent application that allows you to quickly build tables Django-filter for easy filtering Django-crispy-forms for easy form creation A view that uses all three apps FUSE: BAD MOUNT POINT Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected. It took me a little time to find out how to fix this problem: kill the sshfs process (es) umount -l /mnt/foo (as root) mount the sshfs again. I suppose this happens with other networkedfilesystems as
MY SCREEN LOCKING CONFIGURATION The manual locking is done by hitting the Print key twice, I use a mode for this as shown below. The mode is called "switch" because that's what I use it mostly for, to switch between workspaces, but that's not relevant for this post. mode "switch" { bindsym Print exec ~/local/scripts/lock.sh force; mode "default" # Abort bindsym Returnmode
DUMP ALL BITCOIN PRIVATE KEYS I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase). No warranty. ORDER POSTS IN A $WP_QUERY MANUALLY Build a custom WordPress query and order the posts however you want them. Notice that this won't work properly if you page results, so it is only useful in very specific cases. Btw, wrap everything into your class and get rid o the global var when you use this ;-) SHORT SCRIPT TO INSTALL MINIKUBE Yes, I felt like I had to automate this after installing minikube on a few machines in a row.EXPERIMENTS
Experiments. This is my online playground where I publish small toys I build to learn about various technologies, or just for fun. I keep most of my experiments private, but some are good enough to RUNNING DJANGO AS A HIDDEN ONION SERVICE Not really, but it's a nice technological experiment to run a Django site as a hidden service. The setup was quite easy: there is a gunicorn instance running on the server, and a nginx proxy in front of it. The onion traffic has to go through nginx as static files and media are not served by gunicorn. In the relevant nginx config sectionI
WAGTAIL AND STREAMFIELDS Wagtail and Streamfields. Django was always great for developers out of the box, but creating friendly admin interfaces was always a little too much work. This post explains why I now consider using Wagtail to make this task easier. 2016-02-09. Over the years I've tried pretty much every available Django CMS out there. DOCKER-COMPOSE WITH MYSQL/MARIADB AND HEALTHCHECK I have a few old Django projects still running MySQL/MariaDB. Getting docker-compose to work with MySQL images is a little tricky, as the database needs too much time to start up. Below is a configuration that starts one application host and one database host. /usr/bin/mysql is used for MariaDB because USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPY I was recently working on a very CRUDy prototype and decided to use some Django applications and tools together I hadn't combined yet: Django-tables2, an excellent application that allows you to quickly build tables Django-filter for easy filtering Django-crispy-forms for easy form creation A view that uses all three apps FUSE: BAD MOUNT POINT Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected. It took me a little time to find out how to fix this problem: kill the sshfs process (es) umount -l /mnt/foo (as root) mount the sshfs again. I suppose this happens with other networkedfilesystems as
MY SCREEN LOCKING CONFIGURATION The manual locking is done by hitting the Print key twice, I use a mode for this as shown below. The mode is called "switch" because that's what I use it mostly for, to switch between workspaces, but that's not relevant for this post. mode "switch" { bindsym Print exec ~/local/scripts/lock.sh force; mode "default" # Abort bindsym Returnmode
DUMP ALL BITCOIN PRIVATE KEYS I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase). No warranty. ORDER POSTS IN A $WP_QUERY MANUALLY Build a custom WordPress query and order the posts however you want them. Notice that this won't work properly if you page results, so it is only useful in very specific cases. Btw, wrap everything into your class and get rid o the global var when you use this ;-) SHORT SCRIPT TO INSTALL MINIKUBE Yes, I felt like I had to automate this after installing minikube on a few machines in a row. BLOG – NICOLAS KUTTLER Force pinentry tool for gnupg. 2021-01-18. While interacting with gnupg on Debian/Ubuntu it is often necessary to input a passphrase. I found the most reliable way to do this from the command line is to use gpg-agent and configure the pinentry tool to be command line based. This may break GUI apps though that need a more.EXPERIMENTS
Experiments. This is my online playground where I publish small toys I build to learn about various technologies, or just for fun. I keep most of my experiments private, but some are good enough to DJANGO-FILTER AND CUSTOM QUERYSETS Django-filter is a powerful tool, but the documentation is a little sparse. If you want to see examples of custom Filters you have to dive into the source code.. I recently wanted to add a filter for methods on a custom QuerySet.Unlike custom managers, custom QuerySets allow you to chain methods. You can read this introduction or refer to the official documentation (at the time of this writing RUNNING DJANGO AS A HIDDEN ONION SERVICE Not really, but it's a nice technological experiment to run a Django site as a hidden service. The setup was quite easy: there is a gunicorn instance running on the server, and a nginx proxy in front of it. The onion traffic has to go through nginx as static files and media are not served by gunicorn. In the relevant nginx config sectionI
WHAT HAPPENED TO BITCOIN-24.COM? Bad: Licensing, Data leak, Password security, Accounting, DB integrity and Float arithmetic. Donations: No BTC? 2020-04-16 Bitcoin24 and Corona Virus Who would have thought seven years later and there are still things happening around Bitcoin24. The refund effort started by Jeff has made slow, steady progress over the years SIMPLE BASH DEPLOYMENT SCRIPT FOR DJANGO This is an update for my post about automated django deployments. Edit 09-2020: I've expanded the script to fetch remote data and load it into the local Django dev instance.Make sure you never run this script anywhere except than a development environment. USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPY Pagination and the SingleTableView. The view above is nice, but if you have to paginate your table you might be interested in using a ListView or the SingleTableView that comes with django-tables2. If you want to use several views like this in your application you would also benefit from using a generic view that takes additional parameters like filter_class and formhelper_class. BITCOIN TESTNET BLOCKCHAIN SIZE IN 2020 Bitcoin testnet blockchain size in 2020. I tried to look this up yesterday but couldn't find any current numbers for the size of the testnet blockchain. So here are my stats, with txindex enabled. Raw. 2021-01-07 32G .bitcoin/testnet3/. Published on Jan. 7, 2021, lastupdate Jan. 7,
WORDPRESS EMERGENCY ADMIN WordPress emergency admin. I received an emergency call from a client, his WordPress site didn't work. None of the logins either. Well, here's another script to the rescue if all you have left is an ftp login or some other way to upload files. It will create a new admin user with the credentials you specify. Upload this file to thewp-content
SHORT SCRIPT TO INSTALL MINIKUBE Stable Django deployments without downtime; Detecting fraudulent activity on a bitcoin testnet faucet; The day I fell in love with computers; Using django-tables2, django-filter and django-crispy-formstogether
EXPERIMENTS
Experiments. This is my online playground where I publish small toys I build to learn about various technologies, or just for fun. I keep most of my experiments private, but some are good enough to RUNNING DJANGO AS A HIDDEN ONION SERVICE Not really, but it's a nice technological experiment to run a Django site as a hidden service. The setup was quite easy: there is a gunicorn instance running on the server, and a nginx proxy in front of it. The onion traffic has to go through nginx as static files and media are not served by gunicorn. In the relevant nginx config sectionI
DOCKER-COMPOSE WITH MYSQL/MARIADB AND HEALTHCHECK I have a few old Django projects still running MySQL/MariaDB. Getting docker-compose to work with MySQL images is a little tricky, as the database needs too much time to start up. Below is a configuration that starts one application host and one database host. /usr/bin/mysql is used for MariaDB because WAGTAIL AND STREAMFIELDS Wagtail and Streamfields. Django was always great for developers out of the box, but creating friendly admin interfaces was always a little too much work. This post explains why I now consider using Wagtail to make this task easier. 2016-02-09. Over the years I've tried pretty much every available Django CMS out there. USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPYDJANGO TABLES2 TUTORIALDJANGO TABLES2 TEMPLATEDJANGO TABLES2 COLUMNSDJANGO TABLES2 DEMODJANGO OBJECTS GET FILTERDJANGO HTML TABLE I was recently working on a very CRUDy prototype and decided to use some Django applications and tools together I hadn't combined yet: Django-tables2, an excellent application that allows you to quickly build tables Django-filter for easy filtering Django-crispy-forms for easy form creation A view that uses all three apps FUSE: BAD MOUNT POINT Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected. It took me a little time to find out how to fix this problem: kill the sshfs process (es) umount -l /mnt/foo (as root) mount the sshfs again. I suppose this happens with other networkedfilesystems as
MY SCREEN LOCKING CONFIGURATION The manual locking is done by hitting the Print key twice, I use a mode for this as shown below. The mode is called "switch" because that's what I use it mostly for, to switch between workspaces, but that's not relevant for this post. mode "switch" { bindsym Print exec ~/local/scripts/lock.sh force; mode "default" # Abort bindsym Returnmode
DUMP ALL BITCOIN PRIVATE KEYS I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase). No warranty. ORDER POSTS IN A $WP_QUERY MANUALLY Build a custom WordPress query and order the posts however you want them. Notice that this won't work properly if you page results, so it is only useful in very specific cases. Btw, wrap everything into your class and get rid o the global var when you use this ;-) SHORT SCRIPT TO INSTALL MINIKUBE Yes, I felt like I had to automate this after installing minikube on a few machines in a row.EXPERIMENTS
Experiments. This is my online playground where I publish small toys I build to learn about various technologies, or just for fun. I keep most of my experiments private, but some are good enough to RUNNING DJANGO AS A HIDDEN ONION SERVICE Not really, but it's a nice technological experiment to run a Django site as a hidden service. The setup was quite easy: there is a gunicorn instance running on the server, and a nginx proxy in front of it. The onion traffic has to go through nginx as static files and media are not served by gunicorn. In the relevant nginx config sectionI
DOCKER-COMPOSE WITH MYSQL/MARIADB AND HEALTHCHECK I have a few old Django projects still running MySQL/MariaDB. Getting docker-compose to work with MySQL images is a little tricky, as the database needs too much time to start up. Below is a configuration that starts one application host and one database host. /usr/bin/mysql is used for MariaDB because WAGTAIL AND STREAMFIELDS Wagtail and Streamfields. Django was always great for developers out of the box, but creating friendly admin interfaces was always a little too much work. This post explains why I now consider using Wagtail to make this task easier. 2016-02-09. Over the years I've tried pretty much every available Django CMS out there. USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPYDJANGO TABLES2 TUTORIALDJANGO TABLES2 TEMPLATEDJANGO TABLES2 COLUMNSDJANGO TABLES2 DEMODJANGO OBJECTS GET FILTERDJANGO HTML TABLE I was recently working on a very CRUDy prototype and decided to use some Django applications and tools together I hadn't combined yet: Django-tables2, an excellent application that allows you to quickly build tables Django-filter for easy filtering Django-crispy-forms for easy form creation A view that uses all three apps FUSE: BAD MOUNT POINT Occasionally the connection gets interrupted and this leads to errors like: fuse: bad mount point /mnt/foo: Transport endpoint is not connected. It took me a little time to find out how to fix this problem: kill the sshfs process (es) umount -l /mnt/foo (as root) mount the sshfs again. I suppose this happens with other networkedfilesystems as
MY SCREEN LOCKING CONFIGURATION The manual locking is done by hitting the Print key twice, I use a mode for this as shown below. The mode is called "switch" because that's what I use it mostly for, to switch between workspaces, but that's not relevant for this post. mode "switch" { bindsym Print exec ~/local/scripts/lock.sh force; mode "default" # Abort bindsym Returnmode
DUMP ALL BITCOIN PRIVATE KEYS I have used this script to export all private keys in a wallet. The blockchain does not have to be synced, but the wallet obviously has to be unlocked (with walletpassphrase). No warranty. ORDER POSTS IN A $WP_QUERY MANUALLY Build a custom WordPress query and order the posts however you want them. Notice that this won't work properly if you page results, so it is only useful in very specific cases. Btw, wrap everything into your class and get rid o the global var when you use this ;-) SHORT SCRIPT TO INSTALL MINIKUBE Yes, I felt like I had to automate this after installing minikube on a few machines in a row. BLOG – NICOLAS KUTTLER Force pinentry tool for gnupg. 2021-01-18. While interacting with gnupg on Debian/Ubuntu it is often necessary to input a passphrase. I found the most reliable way to do this from the command line is to use gpg-agent and configure the pinentry tool to be command line based. This may break GUI apps though that need a more.EXPERIMENTS
Experiments. This is my online playground where I publish small toys I build to learn about various technologies, or just for fun. I keep most of my experiments private, but some are good enough to DJANGO-FILTER AND CUSTOM QUERYSETS Django-filter is a powerful tool, but the documentation is a little sparse. If you want to see examples of custom Filters you have to dive into the source code.. I recently wanted to add a filter for methods on a custom QuerySet.Unlike custom managers, custom QuerySets allow you to chain methods. You can read this introduction or refer to the official documentation (at the time of this writing RUNNING DJANGO AS A HIDDEN ONION SERVICE Not really, but it's a nice technological experiment to run a Django site as a hidden service. The setup was quite easy: there is a gunicorn instance running on the server, and a nginx proxy in front of it. The onion traffic has to go through nginx as static files and media are not served by gunicorn. In the relevant nginx config sectionI
WHAT HAPPENED TO BITCOIN-24.COM? Bad: Licensing, Data leak, Password security, Accounting, DB integrity and Float arithmetic. Donations: No BTC? 2020-04-16 Bitcoin24 and Corona Virus Who would have thought seven years later and there are still things happening around Bitcoin24. The refund effort started by Jeff has made slow, steady progress over the years SIMPLE BASH DEPLOYMENT SCRIPT FOR DJANGO This is an update for my post about automated django deployments. Edit 09-2020: I've expanded the script to fetch remote data and load it into the local Django dev instance.Make sure you never run this script anywhere except than a development environment. USING DJANGO-TABLES2, DJANGO-FILTER AND DJANGO-CRISPY Pagination and the SingleTableView. The view above is nice, but if you have to paginate your table you might be interested in using a ListView or the SingleTableView that comes with django-tables2. If you want to use several views like this in your application you would also benefit from using a generic view that takes additional parameters like filter_class and formhelper_class. BITCOIN TESTNET BLOCKCHAIN SIZE IN 2020 Bitcoin testnet blockchain size in 2020. I tried to look this up yesterday but couldn't find any current numbers for the size of the testnet blockchain. So here are my stats, with txindex enabled. Raw. 2021-01-07 32G .bitcoin/testnet3/. Published on Jan. 7, 2021, lastupdate Jan. 7,
WORDPRESS EMERGENCY ADMIN WordPress emergency admin. I received an emergency call from a client, his WordPress site didn't work. None of the logins either. Well, here's another script to the rescue if all you have left is an ftp login or some other way to upload files. It will create a new admin user with the credentials you specify. Upload this file to thewp-content
SHORT SCRIPT TO INSTALL MINIKUBE Stable Django deployments without downtime; Detecting fraudulent activity on a bitcoin testnet faucet; The day I fell in love with computers; Using django-tables2, django-filter and django-crispy-formstogether
* Blog
* Experiments
* Contact
I am Nicolas Kuttler, a software and systems engineer from France, currently living in Germany moreNetwork
Bitcoin Automation Xorg i3 security desktop shell bash installKubernetes Django
Python Wagtail
Firefox git GNOME
MATE google AmazonKindle SSH Linux
Debian SaltStack Tortesting Fabric
Deployment Docker YAMLMySQL MariaDB AWS
StreamField CSS
PHP WordPress Androidnginx SEO
reputation management continuous integration CacheJavaScript CBV
context rewrite hotlinktheme plugin
minify rant HTML
redirect
Github activity
* nkuttler commented on issue celery/celery#6136 * nkuttler opened an issue in wagtail/django-modelcluster * nkuttler commented on issue jazzband/django-taggit#675 * nkuttler commented on issue wagtail/wagtail#4576 * nkuttler created a branch master in nkuttler/flaskwalletBLOG
SUPERVISORD CONFIGURATION FOR BITCOIND2020-06-08
While migrating my website that also runs a bitcoin testnet faucet I decided to finally automate the bitcoind startup using supervisord. I had already done that in other locations but had forgotten some important settings. Bitcoind takes some time to start, and supervisord needs to know. I also had to … more MY SCREEN LOCKING CONFIGURATION2020-06-02
Inspired by a comment on reddit I am sharing my screen locking configuration in this post, I use i3, xautolock and a custom lockscript. more
MY I3LOCK WRAPPER SCRIPT2020-06-02
I use a custom screen locking script together with xautolock for automatic locking and manual locking when needed. To prevent multiple i3lock instances from starting I use an atomically created mutex. The script has somewhat excessive logging that still remains from the timeit was buggy. more
SET RANDOM BACKGROUND IMAGE AND I3LOCK WALLPAPER2020-06-02
I use the same script on multiple machines to pick a random desktop background and i3lock wallpaper. It performs a few sanity checks before running and selects an image from a directory based on the current screen size. more SHORT SCRIPT TO INSTALL MINIKUBE2020-05-25
Yes, I felt like I had to automate this after installing minikube on a few machines in a row. more WAGTAIL QUERY FOR SCHEDULED PAGES2020-05-21
Wagtail has "scheduled" pages that are not yet visible on the site. I think the interface is not ideal as you need to click the Publish button after setting a publication date on the Settings tab. I'm not sure how exactly the data models work, but the actual publication is… more
CLOSE FIREFOX REMOTELY2020-05-13
I have a custom sync script for Firefox because the built-in sync is simply not thorough enough. To make the sync more reliable I wanted to close Firefox when it is running. This was surprisingly hard to accomplish, but once I found wmctrl the problem was solved. Noticethat this … more
UPDATE TIMESTAMP ON GIT COMMIT TO NOW2020-05-05
Do you know the feeling? You have implemented a massive optimization, slashed a nasty bug or built a complex feature and made the commit. Then you check the time, and there's absolutely no way you could have finished this yet. Now you can either be a good worker bee and …more
LIST OBSOLETE GIT BRANCHES2020-05-03
When using git in a project it is easy to create lots of branches. This is one of the strengths of git, but it can also mean that the local branch list gets quite long. I created an alias for the command below to get an overview of which branches … more UNLOCK GNOME/MATE/I3 LOCKS FROM THE COMMAND LINE2020-05-02
I run multiple desktop environments, and they all come with their own screen locking tool. Sometimes I want to unlock a system remotely, that means from the command line. The script below can unlock mate, gnome and i3lock. more* 1
* 2
* 3
* 4
* 5
* 6
* 7
* 8
* 9
* 10
* 11
* 12
* 13
* 14
* 15
* 16
* 17
Latest updates
* Supervisord configuration for bitcoind * My screen locking configuration * My i3lock wrapper script * Set random background image and i3lock wallpaper * Short script to install minikube * Wagtail query for scheduled pages * Close Firefox remotely * Update timestamp on git commit to now * List obsolete git branches * Unlock gnome/mate/i3 locks from the command lineLatest comments
* By the way, fabric finally released a python 3 version a few days ago: http://www.fabfile.org/ * it is possible to filter with to model at the same time ? * I am getting __init__() takes 1 positional argument but 2 weregiven error
* In some scenarios a HUP can work, but not if you upgrade your requirements for … * Would killing gunicorn with HUP instead of TERM work? That should do a graceful reloading, … Copyright © 2003-2020 by Nicolas KuttlerDetails
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0