VirtualTam's bookmarks
21 bookmarks found
-
Reference:
- abbr - manage fish abbreviations
- argparse - parse options passed to a fish script or function
- function - create a function
- string - manipulate strings
- switch - conditionally execute a block of commands
Configuration:
- Writing your own prompt
- fish_add_path - add to the path
- fish_git_prompt - output git information for use in a prompt
- Setting up my fish shell from scratch on macOS
Plugins:
- jorgebucaran/fisher - A plugin manager for Fish
- jorgebucaran/autopair.fish - Auto-complete matching pairs in the Fish command line
- PatrickF1/fzf.fish
- kidonng/zoxide.fish
-
Note: each input source (keyboard, external keyboards) must be configured separately
-
- https://rachelbythebay.com/w/2020/03/07/costly/
- https://docs.gunicorn.org/en/stable/faq.html#does-gunicorn-suffer-from-the-thundering-herd-problem
- https://uwsgi-docs.readthedocs.io/en/latest/articles/SerializingAccept.html
- https://uwsgi-docs.readthedocs.io/en/latest/Options.html
- https://web.archive.org/web/20160117023812/http://cramer.io/2013/06/27/serving-python-web-applications
- https://circus.readthedocs.io/en/latest/
-
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html
- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html
- https://docs.aws.amazon.com/cli/latest/reference/ec2/modify-instance-metadata-options.html
- https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/
- https://aws.amazon.com/blogs/aws/new-host-based-routing-support-for-aws-application-load-balancers/
- https://aws.amazon.com/about-aws/whats-new/2018/07/elastic-load-balancing-announces-support-for-redirects-and-fixed-responses-for-application-load-balancer/
- https://www.reddit.com/r/aws/comments/e18e5n/botexploit_what_is_this_trying_to_do_and_how
- https://www.reddit.com/r/aws/comments/e18e5n/botexploit_what_is_this_trying_to_do_and_how/f8qympp/
- https://forums.aws.amazon.com/thread.jspa?threadID=316889
- https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
- https://www.wired.com/story/capital-one-paige-thompson-case-hacking-spree/
- https://krebsonsecurity.com/2019/08/what-we-can-learn-from-the-capital-one-hack/
- https://krebsonsecurity.com/2019/07/capital-one-data-theft-impacts-106m-people/
- http://www.thecloudavenue.com/2019/08/how-capital-one-hack-was-achieved-in-aws.html
- http://www.thecloudavenue.com/2019/11/changes-to-aws-ec2-instance-metadata-service.html
-
Træfik options:
- https://docs.traefik.io/configuration/backends/docker/
- https://docs.traefik.io/configuration/commons/
Relevant backend labels:
traefik.port
traefik.docker.network
traefik.backend.loadbalancer.method
traefik.backend.loadbalancer.stickiness
Examples:
Gateway timeout and overlay network setup:
-
Here are the steps I used to migrate a CentOS 7 VM from (presumably?) an ESXi server, to a local VirtualBox environment.
The LVM volumes were not detected at boot, and after the boot timeout, the OS fell back to the Dracut emergency shell.
- get a CentOS minimal installation CD
- check the VM's resources and peripherals:
- ensure there are no floppy drives (!)
- setup CPU and RAM resources
- check virtual drives
- add an SCSI optical drive if needed
- optional: convert the virtual drive images from VMDK to VDI
- mount the CentOS installation disc
- boot on the installation disc:
- select "Troubleshooting", then "Rescue"
- let the rescue utility detect filesystems and mountpoints
$ chroot
to the detected environment- backup files:
/etc/fstab
/boot/grub/grub.cfg
- under /boot, backup the initrd and initramfs for the current configuration (these will be overwritten)
- compare the current
/etc/fstab
with the output of$ lsblk
and$ blkid
- if needed, manually edit /etc/fstab to use the appropriate block device UUIDs, identifiers and mountpoints
- regenerate GRUB configuration:
$ grub2-mkconfig -o /boot/grub2/grub.cfg
- if needed, reinstall GRUB:
$ grub-install /dev/sda
- rebuild initrd:
$ mkinitrd --force /boot/<initrd_image> <kernel_version>
- rebuild initramfs:
$ dracut --force <kernel_version>
- exit the chroot
- unmount the installation disc
- reboot
- optional but highly recommended: cross your fingers
- ...
- profit!
-
Lenovo Thinkpad 13 + Linux - Feedback
2017-04-15 +++: backlit keyboard, battery ++: HDPI matte screen, touchpad+trackpad -: BIOS messages in approximative English --: no ethernet port ---: cooling / fan noise
ETH available through:
- 10$ generic USB-C adapter
- 25$ Lenovo USB-C adapter
- 150$ Lenovo USB-C dock
- 180$ Lenovo docking station
Cooling / fan control:
- triggered when the CPU reaches approx. 46° / 20% load
- slowest speed: 3400 RPM (!), goes up to 4000+ RPM
TODO:
- try updating BIOS/UEFI
- use a laptop cooling pad
- killall -9 firefox # not really an option tho
User-contributed feedback:
- https://www.reddit.com/r/thinkpad/comments/4k2kzl/debian_on_the_thinkpad_13/
- https://www.reddit.com/r/thinkpad/comments/4jh3wb/thinkpad_13_manjaroarch_impressions/
- https://www.reddit.com/r/thinkpad/comments/4lzsks/my_thinkpad_13_experience_with_ubuntu_1604/
- https://www.reddit.com/r/thinkpad/comments/4pieti/thinkpad_13_fan_vs_zenbook/
-
LaTeX / Beamer / Minted
2017-04-11 Code / minted / listings
- http://ftp.math.purdue.edu/mirrors/ctan.org/macros/latex/contrib/minted/minted.pdf
- https://tex.stackexchange.com/questions/236706/undefined-control-sequence-with-minted
- https://tex.stackexchange.com/questions/103141/set-global-options-for-inputminted
- https://github.com/gpoore/minted/issues/125
Minted formatting
- https://tex.stackexchange.com/questions/85932/mintedinconsolata-straight-quotes
- https://tex.stackexchange.com/questions/5443/use-another-monospaced-font
- http://www.tug.dk/FontCatalogue/sourcecodepro/
Columns
- https://tex.stackexchange.com/questions/32931/multiple-columns-with-images-and-wrapped-text-in-beamer
- https://tex.stackexchange.com/questions/1858/stable-vertical-alignment-of-columns-in-beamer
Icons / images
- FA - https://tex.stackexchange.com/questions/165150/how-to-use-fontawesome-icons-in-latex-with-moderncv
- FA - https://tex.stackexchange.com/questions/338657/how-to-include-socials-icons-like-github-and-linkedin-in-moderncv
- SVG - https://tex.stackexchange.com/questions/2099/how-to-include-svg-diagrams-in-latex
- SVG - https://tex.stackexchange.com/questions/122871/include-svg-images-with-the-svg-package
Overlay / Pause / step-by-step
- https://tex.stackexchange.com/questions/26987/show-a-frame-step-by-step
- https://tex.stackexchange.com/questions/117887/how-to-insert-overlays-in-latex-beamer
Titles
URL
-
Fonctionnement :
- http://verslaterre.org/viewtopic.php?f=122&t=2441
- http://forum.eco-bio.info/topic/1557-o%c3%b9-trouver-les-vers-de-lombricompostage/
- https://compost-et-vous.jimdo.com/op%C3%A9ration-lombricompostage-en-is%C3%A8re/les-bacs-%C3%A0-vers/les-mod%C3%A8les-bricol%C3%A9s/
- http://www.mondonville.fr/files/Presentation-LombriCompost_Jan_2011_V2.pdf
Trouver des vers :
À essayer :
- http://plus2vers.fr/espace-ressources/fabrication/
- http://www.instructables.com/id/Worm-bin-bag-for-indoor-vermicomposting-and-easy-s/#intro
- https://magazine.laruchequiditoui.fr/teste-pour-vous-le-lombricomposteur-sauce-krisprolls/
Modèles :
- http://www.eurolombric.fr/le_p_tit_denis_055.htm
- https://compost.ooreka.fr/fiche/voir/289903/fabriquer-un-lombricomposteur
- http://www.compostage.info/index.php?option=com_content&view=article&id=17&Itemid=16
- http://fr.jardins-animes.com/recycler-composter-lombricomposteur-c-939_72_18.html
- https://verslaterre.com/produit/lombricomposteur-city-worms/
Composants :
Options :
- http://www.eurolombric.fr/bac_de_decantation_215.htm
- http://www.pierre1911.fr/2015/11/dechets-les-lombricomposteurs-des-autres.html
Composter à Toulouse :
-
Super-fast and efficient file searching tool, also quite convenient when it comes to its options ;-)
-
ALSA: multiple USB sound cards
2015-01-12 # /etc/modprobe.d/snd_usb_audio.conf options snd_usb_audio vid=<vid1>,<vid2> pid=<pid1>,<pid2> index=<index1>,<index2> enable=1,1
example:
# 5: M-Audio Fast Track Pro # 6: Focusrite Scarlett 6i6 options snd_usb_audio vid=0x763,0x1235 pid=0x2012,0x8012 index=5,6 enable=1,1
See also: http://alsa.opensrc.org/MultipleCards
-
Starting and Accessing Jenkins
2015-01-09 To increase the memory allocated and available:
# /etc/default/jenkins JAVA_ARGS="-Xms4G -Xmx16G -Djava.awt.headless=true"
See also
- Jenkins performance hints: http://soldering-iron.blogspot.com/2014/01/jenkins-performance-hints.html
- Java commandline options: http://docs.oracle.com/javase/7/docs/technotes/tools/windows/java.html