An update on recent GitHub security incident
Recently, github.com fell victim to a hacking attack. What started as an attack on coinbase, became an internet-wide attack that exposed sensitive data in some 23,000 repositories.
Recently, github.com fell victim to a hacking attack. What started as an attack on coinbase, became an internet-wide attack that exposed sensitive data in some 23,000 repositories.
For the purposes of backup and resilience, it may be useful to maintain two identical git remotes for a repo. Maybe one is on github, and another one is on a machine on another cloud. Then, you may want to automate pushing every change to the two repos at once.
git remote set-url --push origin git@github.com:<username>/<reponame>.git
git remote set-url --add --push origin git@git:/home/git/repos/
git push origin
Push to multiple remotes. Add the hosted Git server as a remote:
If you want to recursively delete all .DS_Store files in a subfolder, you can run the following commands. First, see what is being deleted:
find . -name '.DS_Store' -type f
Then, delete those files:
find . -name '.DS_Store' -type f -delete
And also:
find . -name "\._*" -exec rm {} \;
.^.
Hello everyone. I recently noticed that sometimes on youtube, I would be unable to change the playback speed from normal (x1) to anything else. It would just say "custom" or "normal", with no way of clicking out of normal, or adjusting it to e.g. 1.5 or 1.75 times the speed.
When writing a bug report, please include a brief, relevant title.
Hi there,
I want to inform you about a very bad situation for you. However, you can benefit from it, if you will act wisely.
Have you heard of Pegasus?
This is a spyware program that installs on computers and smartphones and allows hackers to monitor the activity of device owners. It provides access to your webcam, messengers, emails, call records, etc.
It works well on Android, iOS, and Windows. I guess, you already figured out where I'm getting at.
[FIXED]: Drupal 9 Error: Call to a member function transformDimensions() on null in template_preprocess_image_style() (line 263 of core/modules/image/ image.module)
In many domains, critical information is deliberately written down twice in two different places. While this might appear redundant, the practice is a safeguard against errors, loss, and failure. The underlying principle is simple: no single point of failure should be able to compromise the system.
React is a very nice front-end framework, javascript is nice, but what if you need an android app? Or an iOS app for that matter? You have all read of apps that embed a browser, and in the browser javascript runtime, you'd load a full application, written in react or angular or what have you. Maybe pure javascript.
...of course this took longer than anticipated, but I have achieved this milestone, writing and executing a complete functional test in Drupal. It was not an easy, trivial test - and the path I took in implementing it highlights the gotchas and difficulty of writing such tests. As well, my process is likely not be unique, and the challenges I faced appear common. It there appears valuable for me to put down a quick writeup on quirks and tricks I saw along the way. In this article, I assume the reader is an intermediate Drupal developer.
Turns out, our client needs to have Client authentication enabled:
then you will have a new tab credentials where you will see the client secret.
Lost my laptop, possibly due to a virus, and now I have to rebuild it. Yeah, losing a laptop is hard. On the one hand, I have to be ready for such unfortunate events. And I actually am ready - I have a recent backup. I have non-recent backups, as well. Most important things are also duplicated in the cloud. Some heavy files like videos aren't backed up, but I'm actually not losing much there. And I managed to back up text files and important small files of the most recent days, via a tether. So I'm good, overall.
For testing ansible roles, I need a docker container that runs systemd or init - a container in which services can be enabled. I also need this container to be accessible via ssh. This way, I don't have to spin up cloud resources (which are not free) in order to test doing something on a remote.
Molecule is a testing framework designed for Ansible roles, collections, and playbooks. In the Ansible ecosystem, it provides a structured workflow to develop and verify infrastructure as code.
I see the following error when compiling ruby from scratch using rbenv:
In file included from debug.c:27:
./vm_callinfo.h:183:9: error: use of undeclared identifier 'RUBY_FUNCTION_NAME_STRING'
rp(ci);
^
./internal.h:89:72: note: expanded from macro 'rp'
#define rp(obj) rb_obj_info_dump_loc((VALUE)(obj), __FILE__, __LINE__, RUBY_FUNCTION_NAME_STRING)I updated rbenv and rbenv-build to latest, to no avail.
According to stack overflow, the solution, that worked for me, was to update xcode:
In order to improve my writing skills, I should write on a regular basis. The amount of writing is measured in either the number of words written, or the hours spent writing. Of course, there is an inherent conflict of interest, an inherent corruption when measuring work in such a way. See The Inherent Corruption of the Employee.
How will I promote and market my material? And for what purpose? What am I selling? What is the path (karate-do) that I'm pursuing, what is in my DNA? These and other questions are answered succinctly in The Core.
To create an image for a Raspberry Pi, you generally have two main scenarios:
Here, I'll explain the first method. The steps are:
Here’s a clear, step-by-step tutorial on using WireGuard to route all your internet traffic through a VPN.
We’ll go through installation, configuration, and making sure all traffic (not just some) goes through the tunnel.
WireGuard: Full-Tunnel VPN Setup
Gamification is the use of game design elements, principles, and mechanics in non-game contexts to engage people, motivate action, and solve problems.
This is an example of setting up a NAT inside docker - in a fairly self-explanatory and minimal way. There are three examples that you can run in this setup: a positive example, a negative example, and a chatty positive example for debugging and demonstration purposes.
There are plenty of different painting styles that you can see in art throughout the centuries.
Famous Artists: Wassily Kandinsky, Pablo Picasso, Elaine de Kooning, Henri Matisse, Georgia O’Keeffe
Significant Works: Full Fathom Five by Jackson Pollock, Composition VII by Wassily Kandinsky, Mountains, and Sea by Helen Frankenthaler, Orange, Red, Yellow by Mark Rothko, Red Canna by Georgia O’Keeffe
I recently wrote this utility... a mere function, really, to resize and scale a python image at the center. This way, I don't have to worry about how my images are being fed into an AI pipeline, if they all get scaled and cropped the same.
Additionally, while previously I used bash to rename files in a folder to sequential names such as 1.jpg , the current implementation ignores filenames, which saves me time when massaging the data.
The issue stems from the preview being in an undefined style.
1. Go to configuration -> image styles and review the styles available. I have a style called "200x200 thumb".
2. After adding an image field to a content type, go to manage form display, expand the display of the image, and specify an existing style from step 1 as the preview style.
After taking these steps, the page for adding/editing this content type should render correctly.
By Alexander Van de Kleut. But you may also want to read the VAE by Reza Kalantar.
Motivation
The problem was naming a local module with the same name as an imported module. I had a file called ./tokenize.py and moving it to ./run_tokenize.py solved the problem.
By Reza Kalantar. Also, take a look at another VAE by Alexander Van de Kleut.
Via chatgpt.
An easier example is to set the default title first:
From Forward Data Science.
First of all let us build some ground rules. We will define few things we need to know like the back of our hands to understand KL divergence.
Running this worked for me:
mysqlcheck --repair --all-databasesYou may need to add your credentials and hostname to the command.
Here are some examples of Email newsletter designs - enjoy if you find them useful!
Below are generated some UIUX examples - enjoy if you find them useful!
Here is a quick list of modules that I find very useful. If you are a drupal developer, I encourage you to look into each of them and consider using them.