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
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 > Dark
dstr > 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
import hashlib | |
import os | |
m_list = [] | |
for i, d , e in os.walk('/home/test/'): | |
for file in e: | |
if file.endswith('mkv'): | |
with open('{}/{}'.format(i, file), 'rb') as file_read: | |
for chunk in iter(lambda: file_read.read(4096), b""): |
# 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" |