Skip to content

Instantly share code, notes, and snippets.

View Axighi's full-sized avatar
💭
Rampaging

Azriel Axighi

💭
Rampaging
View GitHub Profile
@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active May 6, 2024 11:21
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@g105b
g105b / curlpool.sh
Last active March 11, 2024 06:17
Pool 100 parallel curl requests at a time
#!/bin/bash
target=${1:-http://example.com}
while true # loop forever, until ctrl+c pressed.
do
for i in $(seq 100) # perfrom the inner command 100 times.
do
curl $target > /dev/null & # send out a curl request, the & indicates not to wait for the response.
done
wait # after 100 requests are sent out, wait for their processes to finish before the next iteration.
@dzungtran89
dzungtran89 / conf_wsl2_alacritty.md
Last active December 5, 2023 12:53
Quick config for wsl2 + alacritty

Prerequisites

Config

Alacritty configuration is put in the dir %APPDATA%\alacritty, use explorer to create one if the dir is not existed

In order to have Alacritty starting wsl2 as default at your HOME dir, please update the shell key in the config