curl -H "Authorization: token OAUTH-TOKEN" https://api.github.com/users/codertocat -I
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list instancess with ip | |
aws ec2 describe-instances --filters "Name=tag:Team,Values=Tools" --query 'Reservations[*].Instances[*].{Instance:InstanceId,Name:Tags[?Key==`Name`]|[0].Value,IP:PrivateIpAddress}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## delete files | |
# rm indexed | |
rm a_{000750..000850} | |
# delete old | |
find . -type f -mtime +30 -delete | |
# delete by size | |
find . -type f -size 1k -delete | |
# delete dir | |
find . -depth -mtime +30 -execdir rm -rf {} + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# local | |
git tag -d <tag_name> | |
# remote | |
git push --delete origin tagname | |
# Delete all local tags and get the list of remote tags: | |
git tag -l | xargs git tag -d | |
git fetch | |
# Remove all remote tags | |
git tag -l | xargs -n 1 git push --delete origin |
A set of Hacks and scripts for WSL2 Ubuntu distro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=== Symlink Support in Windows | |
The first step is installing Polsedit - User Policies Editor. When you open it, look for Create symbolic links. | |
http://www.southsoftware.com/polsedit.zip | |
Double click the row, click Add User or Group... and look for your username in the list. | |
Closing the app will automatically save your choices, and you'll need to reboot your machine. | |
=== Updating fresh system | |
;; Edit /etc/yum.conf and set installonly_limit: 2 | |
yum upgrade | |
reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MySQL config files | |
/usr/sbin/mysqld --verbose --help | grep -A 1 "Default options" | |
# composer install | |
curl -sSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
NewerOlder