On Bambu Studio, edit the printer settings, go to Machine gcode then paste these codes.
This file contains hidden or 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
| #!/bin/sh | |
| # Original: https://stackoverflow.com/a/55499152 | |
| BUCKET=bucket # Replace with your actual bucket name | |
| BPATH=path # Replace with the path within the bucket | |
| DAYS=5 # Number of days to keep in the Standard type | |
| S3BUCKET="s3://$BUCKET$BPATH" |
Based on https://stackoverflow.com/a/25387310
git config --global alias.hide 'update-index --assume-unchanged'
git config --global alias.unhide 'update-index --no-assume-unchanged'
git config --global alias.hidden '! git ls-files -v | grep '^h' | cut -c3-'Usage
I hereby claim:
- I am matriphe on github.
- I am matriphe (https://keybase.io/matriphe) on keybase.
- I have a public key ASD-YZEOxh6jNzeWvspqDVh9_E6gseTzN0PAdc-ray852wo
To claim this, I am signing this object:
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/41764e07727d9a86b0f8a077117dc7876ca294c4/Formula/kubernetes-cli.rb
This file contains hidden or 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
| #!/bin/bash | |
| docker run \ | |
| --interactive \ | |
| --rm \ | |
| --user $(id -u):$(id -g) \ | |
| --volume ~/.composer:/tmp \ | |
| --volume /etc/passwd:/etc/passwd:ro \ | |
| --volume /etc/group:/etc/group:ro \ | |
| --volume $(pwd):/app \ | |
| composer "$@" |
This file contains hidden or 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
| <?php | |
| /** | |
| * Parse raw HTTP request data | |
| * | |
| * Pass in $a_data as an array. This is done by reference to avoid copying | |
| * the data around too much. | |
| * | |
| * Any files found in the request will be added by their field name to the | |
| * $data['files'] array. |
This file contains hidden or 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
| [Unit] | |
| Description=Redis In-Memory Data Store | |
| After=network.target | |
| [Service] | |
| Type=forking | |
| User=redis | |
| Group=redis | |
| ExecStart=/usr/local/bin/redis-server /etc/redis/6379.conf | |
| ExecStop=/usr/local/bin/redis-cli shutdown |
This file contains hidden or 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
| <?php | |
| $examples = [ | |
| // kendaraan umum | |
| 'B 1', | |
| 'B 1234 ABC', | |
| 'B-1234-ABC', | |
| 'AD-1234 - XYZ', | |
| 'AB1234LD', | |
| 'D1', |
This file contains hidden or 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
| # save it as /etc/profile.d/ssh-telegram.sh | |
| # use jq to parse JSON from ipinfo.io | |
| # get jq from here http://stedolan.github.io/jq/ | |
| USERID="<target_user_id>" | |
| KEY="<bot_private_key>" | |
| TIMEOUT="10" | |
| URL="https://api.telegram.org/bot$KEY/sendMessage" | |
| DATE_EXEC="$(date "+%d %b %Y %H:%M")" | |
| TMPFILE='/tmp/ipinfo-$DATE_EXEC.txt' | |
| if [ -n "$SSH_CLIENT" ]; then |
NewerOlder