List of pastes
:

docker overlay2 folder cleanup (Plain text) 2023-08-02 18:42
2023-08-01 What happens is that sometimes the /var/lib/docker/overlay2 folder gets filled with subfolders and its size increase. No amount of `docker system prune -a -f` or 'docker image prune -a' or 'docker buildx prune -a' or simil...
style.css of neuralnetworksanddeeplearning for better printing (Plain text) 2023-01-31 01:05
Notice you also need to partially disable the div/span on the left (or make it hidden) In the HTML this means starting a comment right after the body ### <body> <!-- ### and closing it when the text starts ### </div> ...
advent of code 2022 day2. puppet (Plain text) 2022-12-03 00:44
# https://adventofcode.com/2022/day/2 #--- Day 2: Rock Paper Scissors --- # #The Elves begin to set up camp on the beach. To decide whose tent gets to be closest to the snack storage, a giant Rock Paper Scissors tournament is already ...
advent of code 2022 day1. puppet (Plain text) 2022-12-02 04:25
# https://adventofcode.com/2022/day/1 # the problem here is that one cannot reassign variables, so it bekomes tricky. node 'default' { # /opt/puppetlabs/bin/puppet apply --modulepath /Users/user/automation/config_management/puppet...
gnu bc little sum for a bernoulli trial (Plain text) 2022-11-27 20:26
# we want the following: # # \sum_{i=0}^{N} \left ( 1-\frac{1}{64^{5}} \right )^i \cdot \frac{1}{64^{5}} # see http://pier4r.wikidot.com/pierworks:articles:obscurity-could-be-secure # excel breaks, online calculators break too some...
minikube failed node delete and ghost nodes (Plain text) 2022-10-23 05:30
sometimes minikube node list shows a duplicated node name because one node is not responding. even doing: docker restart <minikube-node-name> does not work as the restarted container may not connect to the cluster properly. One sol...
examining one million digits (Plain text) 2022-09-27 04:40
# download the zip file from https://www.rand.org/pubs/monograph_reports/MR1418.html (zip file) # then compact the lines with awk and pick those that have, for example, at least 5 times or more the numbers 5 to 9. awk '{ local_st...
array of integers, sum two integers that match a certain value. #2 (Plain text) 2022-07-05 02:44
Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. Y...
sql problem "1965. Employees With Missing Information" #update 2 (Plain text) 2022-06-27 05:01
Given the table Employee (employee_id, name) and Salary (employee_id, salary) with some extra info that aren't crucial, give the list of employee_id that do not have names or salaries in ascending order. select inner_select.employee...
bash map two decks of 52 cards to numbers and select (Plain text) 2022-01-04 04:15
for number in {101..113} {201..213} {301..313} {401..413} {101..113} {201..213} {301..313} {401..413} ; do echo $number ; done | shuf -n 30 # bash map two decks of 52 cards to numbers and select a certain number of them randomly # Th...