This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
| # $HOME/.config/alacritty/alacritty.toml | |
| # by Rito Ghosh 2023-10-06 | |
| # Alacritty now uses TOML formatting for its config files. | |
| # This is a simple example. | |
| # There are the specification here: https://github.com/alacritty/alacritty/blob/master/extra/man/alacritty.5.scd | |
| # It is not obvious how it translates to TOML. But it is extremely straightforward. | |
| # example: WINDOW, COLORS, etc. are tables, and should be represented as [window], [colors], respectively. |
| on escape_quotes(string_to_escape) | |
| set AppleScript's text item delimiters to the "\"" | |
| set the item_list to every text item of string_to_escape | |
| set AppleScript's text item delimiters to the "\\\"" | |
| set string_to_escape to the item_list as string | |
| set AppleScript's text item delimiters to "" | |
| return string_to_escape | |
| end escape_quotes | |
| tell application "Spotify" |
| #!/usr/bin/env bash | |
| # Exports a flat yaml key:value pairs as environment variables | |
| # | |
| # To source a yaml file as environment variables run | |
| # | |
| # . yaml-source env.yml | |
| # | |
| eval $( | |
| cat $1 | |
| """ | |
| Remove likes (favorite) from your tweets using twitter API | |
| you need to install twitter-client for python to use this code: | |
| pip install python-twitter ( more info https://github.com/bear/python-twitter) | |
| to use this you need to generate authntication tokens for your account | |
| find more info on (https://developer.twitter.com/en/docs/basics/authentication/guides/access-tokens) | |
| """ | |
| import asyncio |
>>> docker exec -it CONTAINERID /bin/sh
/app # telnet
/bin/sh: telnet: not found
/app # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
v3.7.0-243-gf26e75a186 [http://dl-cdn.alpinelinux.org/alpine/v3.7/main]
v3.7.0-229-g087f28e29d [http://dl-cdn.alpinelinux.org/alpine/v3.7/community]
Preferences | Appearance | Tabs | Theme > Darkdstr > ttf, install all font files by double clicking)Preferences | Profiles | Text
Font to 14pt Fira code regular and Check Use Ligatures checkboxNon ASCII Font to 14pt Fira mono and Check Use Ligatures checkboxPreferences | Profiles | Color Presets > Snazzy| # Set the control character to Ctrl+Spacebar (instead of Ctrl+B) | |
| set -g prefix C-space | |
| unbind-key C-b | |
| bind-key C-space send-prefix | |
| # Set new panes to open in current directory | |
| bind c new-window -c "#{pane_current_path}" | |
| bind '"' split-window -c "#{pane_current_path}" | |
| bind % split-window -h -c "#{pane_current_path}" |
| # using: | |
| # for set proxy: | |
| # $ setproxy 127.0.0.1 8118 | |
| # for unset: | |
| # $ unsetproxy | |
| function setproxy() { | |
| export {http,https,ftp,HTTP,HTTPS}_proxy=http://$1:$2 | |
| export no_proxy="localhost,127.0.0.1,master.cafecluster" | |
| echo "Proxy variable(http,https,ftp) set to $1:$2" |