ClusterBomb

joined 2 years ago
[–] [email protected] 1 points 5 days ago

J'y ai pensé mais à part sa page BookAnArtist, je n'ai rien. Je voulais lui demander si elle a un site ou autre mais je n'ai pas eu l'occasion encore (et je pense que la réponse est non).

[–] [email protected] 3 points 1 week ago (1 children)

C'est mon bureau. Je suis en télétravail total alors j'ai voulu me faire plaisir. Quand le travail me gonfle, je peux me retourner et regarder le mur ! 😊

[–] [email protected] 10 points 1 week ago

J'ai payé 1800€.

 

Je suis tellement content-e du résultat ! La représentation n'est pas issue de la série mais du clip de "Ma Meilleure Ennemie".

Photo de mon mur avec Jinx et Ekko peint-es sur un fond vert foncé avec quelques confettis. La scène est triste. Ekko est derrière Jinx, un bras autour d'elle, la tête contre la sienne, les yeux fermés, alors qu'elle est les bras ballants, yeux fermés avec le fard à paupière qui a coulé.

[–] [email protected] 6 points 1 week ago

It may not be the strangest, but it shows how some teachers just don't like you personnally for no reason. I don't know the English grade system so I was around 14-15yrs old I'd say. Drawing teacher gave me 2 hours of detention which I didn't know (I learned it because I stood in school as my parents couldn't take me early). So I learned that, I had an exercise to draw again the same exercise because my previous drawing was "bad" and he thought I didn't spend enough time on it. Surprise, the girl who has had the greatest grades in art, and happened to be my friend, suggested to draw it for me. So I said yes and she drew for me, I didn't do anything.

I gave that back to the teacher, he did not even gave me 10/20 (that's how grade works here). So I had a bad grade, I don't remember exactly but he said I had not worked enough as habits.

Bastard.

[–] [email protected] 1 points 1 week ago

Je vais rester chez BNP alors 😅

Même si y a des frais de "tenue de compte" (je sais plus comment ça s'appelle en vrai) + les frais à chaque ordre...

 

Bonjour,

J'ai une question simple, j'ai un PEA à la BNP. Je l'ai ouvert là-bas car c'est ma banque où j'ai mon emprunt immobilier et mes comptes mais je crois qu'il y a des différences d'un établissements à un autre, que sur certaines banque en ligne il y a moins de frais.

Y a-t-il des recommandations de où détenir son PEA ?

Merci par avance !

[–] [email protected] 2 points 2 weeks ago (1 children)

Elle a laissé ses pots de peinture chez moi. Je suis allé-e voir car je n'y connais rien. C'est bien ça. Ça veut dire quoi ? 😂

[–] [email protected] 5 points 2 weeks ago (4 children)

L'avancée de mon mur. Je fais que de le regarder je sais pas pourquoi. Les personnages vont s'envoler peut-être !

Photo de l'avancement de la peinture sur mon mur. Les deux personnages sont quasiment entièrement coloriés.

[–] [email protected] 5 points 2 weeks ago

Smoking should be banned. Full stop. When my neighbours smoke I can't even open my window, I have asthma. The smell attaches to the walls. There is also my kitchen where I cook and I can't enjoy my little place outside because it constantly smells cigarette because they smoke regulary.

[–] [email protected] 1 points 2 weeks ago

Je l'ai vue en VOST. Le doublage français me fait peur. J'ai entendu des extraits et je suis pas convaincu-e. Après c'est difficile de mon convaincre en doublage.

[–] [email protected] 2 points 2 weeks ago (3 children)

Je fais peindre mon mur en ce moment. Voilà où ça en est ! Je suis plutôt content-e ! Hâte de le voir fini !

Photo d'un mur peint. Deux personnages sont dessinés mais non colorié (sauf les cheveux d'un des personnages). Le fond est peint en vert.

[–] [email protected] 44 points 3 weeks ago (2 children)
  1. Supervise command (run every 2s)
watch "ls -larth"
  1. Kill program using one port
sudo fuser -k 8000/tcp
  1. Limit memory usage for following commands
ulimit -Sv 1000       # 1000 KBs = 1 MB
ulimit -Sv unlimited  # Remove limit
  1. Rename selected files using a regular expression
rename 's/\.bak$/.txt/' *.bak
  1. Get full path of file
readlink -f file.txt
  1. List contents of tar.gz and extract only one file
tar tf file.tgz
tar xf file.tgz static
  1. List files by size
ls -lS
  1. Nice trace route
mtr google.com
  1. Find files tips
find . -size 20c             # By file size (20 bytes)
find . -name "*.gz" -delete  # Delete files
find . -exec echo {} \;      # One file by line
./file1
./file2
./file3
find . -exec echo {} \+      # All in the same line
./file1 ./file2 ./file3
  1. Print text ad infinitum
yes
yes hello
  1. Who is logged in?
w
  1. Prepend line number
ls | nl
  1. Grep with Perl like syntax (allows chars like \t)
grep -P "\t"
  1. Cat backwards (starting from the end)
tac file
  1. Check permissions of each directory to a file

It is useful to detect permissions errors, for example when configuring a web server.

namei -l /path/to/file.txt
  1. Run command every time a file is modified
while inotifywait -e close_write document.tex
do
    make
done
  1. Copy to clipboard
cat file.txt | xclip -selection clipboard
  1. Spell and grammar check in Latex
detex file.tex | diction -bs

You may need to install the following: sudo apt-get install diction texlive-extra-utils.

  1. Check resources' usage of command
/usr/bin/time -v ls
  1. Randomize lines in file
cat file.txt | sort -R
cat file.txt | sort -R | head  # Pick a random sambple

# Even better (suggested by xearl in Hacker news):

shuf file.txt
  1. Keep program running after leaving SSH session

If the program doesn't need any interaction:

nohup ./script.sh &

If you need to enter some input manually and then want to leave:

./script.sh
<Type any input you want>
<Ctrl-Z>          # send process to sleep
jobs -l           # find out the job id
disown -h jobid   # disown job
bg                # continue running in the background

Of course, you can also use screen or tmux for this purpose.

  1. Run a command for a limited time
timeout 10s ./script.sh

# Restart every 30 minutes

while true; do timeout 30m ./script.sh; done
  1. Combine lines from two sorted files
comm file1 file2

Prints these three columns:

Lines unique to file1.
Lines unique to file2.
Lines both in file1 and file2.

With options -1, -2, -3, you can remove each of these columns.

  1. Split long file in files with same number of lines
split -l LINES -d file.txt output_prefix
  1. Flush swap partition

If a program eats too much memory, the swap can get filled with the rest of the memory and when you go back to normal, everything is slow. Just restart the swap partition to fix it:

sudo swapoff -a
sudo swapon -a
  1. Fix ext4 file system with problems with its superblock
sudo fsck.ext4 -f -y /dev/sda1
sudo fsck.ext4 -v /dev/sda1
sudo mke2fs -n /dev/sda1
sudo e2fsck -n <first block number of previous list> /dev/sda1
  1. Create empty file of given size
fallocate -l 1G test.img
  1. Manipulate PDFs from the command line

To join, shuffle, select, etc. pdftk is a great tool:

pdftk *.pdf cat output all.pdf        # Join PDFs together
pdftk A=in.pdf cat A5 output out.pdf  # Extract page from PDF

You can also manipulate the content with cpdf:

cpdf -draft in.pdf -o out.pdf      # Remove images
cpdf -blacktext in.pdf -o out.pdf  # Convert all text to black color
  1. Monitor the progress in terms of generated output

# Write random data, encode it in base64 and monitor how fast it is being sent to /dev/null

cat /dev/urandom | base64 | pv -lbri2 > /dev/null

# pv options:
#   -l,  lines
#   -b,  total counter
#   -r,  show rate
#   -i2, refresh every 2 seconds
  1. Find packages that have a given file in Ubuntu
apt-file update
apt-file search dir/file.h
[–] [email protected] 2 points 3 weeks ago

J'ai besoin d'un meuble sur mesure. J'ai eu un devis : 2500€ et je dois le monter moi-même ptdr. Je vais essayer de trouver ailleurs mais je suis un peu deg' !

 

Je sais qu'ici on n'est pas efficace sur la planification des repas et donc on va souvent en courses car on décide ce qu'on mange 2h avant de manger ou la veille.

 

Moi c'est médicaments, Posca, de quoi prodiguer des premiers soins, une clef USB, un stylo, du gel hydroalcoolique.

Je pense rajouter des bouchons d'oreille et un éventail l'été.

 

It's been a while since I noticed that but I can't find the reason. I selfhost :

  • a linkding with docker
  • a writefreely
  • a bludit blog
  • a CalDav (radicale)

There is a syncthing running for backups done with borg at night (automated with a crontab).

When I htop, I don't see anything to hint me to what is causing the heating.

Any ideas of what I could do to investigate that?

Thanks a lot.

 

Je me demandais si on avait fait des applications utiles sur la blockchain hors finance décentralisée. On parlait de traçabilité, de preuve d'identité, de preuve de possession. Au final est-ce que ça sert vraiment ? Quels exemples a-t-on d'applications sur la blockchain qui fonctionnent ?

 

Hey there! I'm starting my journey to the learning of Rust. I have been coding only with Python for 6 years now and last year, I had to code in JavaScript using VueJS for my job (I never workedeon frontend).

Now, I have a personal project idea which I'd like to create. I could do it in Python but I want to learn Rust. I've looked up on the Internet but may be some answers are too old or someone here can point me to something I haven't seen yet.

What do you recommand for webdev? I guess I need to code the back in Rust and use a JavaScript framework for the front. My backend will be for a REST API (my app will need to manage users and organisations).

Bonus question if you can recommend a BDD framework. I think there is something named Cucumber. Is it good?

Thanks a lot ♥️🦀

 

I've only been coding with Python/Javascript since I started my career. I do APIs and websites frontend. I don't really understand what is interesting in learning an other language. For example, I could learn Ruby, but I'd do the same thing I already do.

Rust, C/C++ tho seem to me to be languages to code other things. Hence my question : what do you code? If possible, make distinction between personal projects and professional projects.

 

Partagez vos passions, et si vous voulez, vous pouvez partager des choses dont vous êtes fier-ères également !

 

Au-delà de Reddit, Lemmy, les channels Discord ou IRC, y a-t-il des forums que vous utilisez encore ? Si oui, lesquels ?

 

Je mange tout le temps du sucre. Le matin au petit-déjeuner, aux desserts (j'en prends parfois plusieurs), au goûter et devant la télé le soir avant de dormir. Je n'arrive pas à arrêter. Des gens qui ont été dans ce cas ici ? Comment vous en êtes vous sevré ?

view more: next ›