Author Archives: Siddharth Jain

Terrible English by PT sir of a school in village:

Terrible English by PT sir of a school in village: 1) There is no wind in the football.. 2) I talk, he talk, why you middle talk? . 3) You rotate the ground 4 times.. 4) You go and understand … Continue reading

Posted in Jokes | Leave a comment

Using GPG

As an example let’s say we want to verify integrity of following file from https://hashcat.net/hashcat/ First download the file and its PGP signature (ends with .asc) 2. Next download and import the key from PGP keyserver with following command: 3. … Continue reading

Posted in Software | Leave a comment

Migrating Docker Volumes

By default Docker stores its persistent data in /var/lib/docker folder on Linux systems. This folder is part of the OS disk and in a production (or even dev) setup you might want to store persistent data on a data disk. … Continue reading

Posted in Software | Leave a comment

Understanding Internals of Chaincode getState/putState calls

If we look at the ChaincodeStub class in $/hyperledger/fabric-chaincode-node/libraries/fabric-shim/lib/stub.js we can see following code The code for the handler (which is of type ChaincodeSupportClient) can be found in $/hyperledger/fabric-chaincode-node/libraries/fabric-shim/lib/handler.js and it looks like this handler is instantiated in $/hyperledger/fabric-chaincode-node/libraries/fabric-shim/lib/chaincode.js which … Continue reading

Posted in Software | Leave a comment

PHP Interactive Shell

I keep forgetting this so many times that I need to make a note of this. This is how you use it: Don’t forget the semicolons and remember PHP variables start with a $

Posted in Software | Leave a comment

Useful SO Queries

CDF of User Reputation https://data.stackexchange.com/stackoverflow/query/1265631/cdf-of-so-reputation#graph According to this, 71% of users have reputation <= 1. These are users who just created an account on the site. 74% of users have reputation <= 10 92% of users have reputation <= 100 … Continue reading

Posted in Software | Leave a comment

failed to create runc console socket: mkdir /tmp/pty064803763: no space left on device: unknown

Got this error today when trying to log into a docker container Then I tried which did not indicate any problem. /tmp is only 24% used. Above is showing all the inodes have been exhausted under /tmp. On listing /tmp … Continue reading

Posted in Software | Leave a comment

Understanding the internals of wordpress php-fpm-alpine image

This post describes the internals of wordpress:php7.4-fpm-alpine Docker image. The wordpress container does nothing but run the following command and wait for it to end which it never does as it spins up a server that listens for incoming connections … Continue reading

Posted in Software | Tagged | Leave a comment

Debugging File Upload Issues with WordPress

First make sure you have adequately increased the maximum file size that can be uploaded to wordpress. It is possible that uploads may still not work. On php-fpm-alpine image (and even on apache) wordpress runs under the credentials of www-data … Continue reading

Posted in Software | Tagged | Leave a comment

How to change the maximum file size you can upload to wordpress on nginx w/ php-fpm

Apache is a solid web server but my goto environment for wordpress has now changed to running it on Docker with NGINX + php7.4-fpm-alpine. To change the max file size you can upload to wordpress, you will need to make … Continue reading

Posted in Software | Tagged | Leave a comment