Docker on Lima is one of the alternative solutions to Docker Desktop for Mac.
Many people have already described the steps to set up for that.
In addition to such a standard setup, this guide describes how to set up a Docker environment which can run multi-arch images.
For example, you will be able to run linux/amd64
images on your M1 Mac.
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
#!/usr/bin/env python3 | |
import time | |
from http.cookiejar import Cookie | |
from re import search, findall | |
from urllib.parse import urlencode | |
from urllib.request import ( | |
HTTPCookieProcessor, | |
HTTPRedirectHandler, | |
Request, |
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
git log <from commit>..<to commit> --oneline | |
# commits with a custom output format | |
# e.g. |hash|author|date|commit message | |
git log <from commit>..<to commit> --pretty=format:"|%h|%an|%cD|%s" | |
# commits within a subdirectory or module | |
git log <from commit>..<to commit> --oneline ./subdirectory | |
# git docs: https://git-scm.com/docs/git-log |
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
# sample synergy configuration file | |
# | |
# comments begin with the # character and continue to the end of | |
# line. comments may appear anywhere the syntax permits. | |
section: screens | |
# three hosts named: moe, larry, and curly | |
moe: | |
larry: | |
curly: |
After updating pg_hba.conf or postgresql.conf, the server needs the config needs to be reloaded. The easiest way to do this is by restarting the postgres service:
service postgresql restart
When the service
command is not available (no upstart on Synology NAS, for example), there are some more creative ways to reload the config. Note this first one needs to be done under the user that runs postgres (usually the user=postgres
).
user# sudo su postgres
postgres# pg_ctl reload
Proxy cache passes GET instead of HEAD to upstream... so we have a 403.
This version include these fixes.
- Remove $request_method from $string_to_sign and pass static string "GET" instead
- Remove proxy_buffering directive for allowing the nginx cache
영어지만, 조금 더 상세하게 마크다운 사용법을 안내하고 있는
"Markdown Guide (https://www.markdownguide.org/)" 를 보시는 것을 추천합니다. ^^
아, 그리고 마크다운만으로 표현이 부족하다고 느끼신다면, HTML 태그를 활용하시는 것도 좋습니다.
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
sed '1,/string/ s/string/replacement/' file |
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
#!/usr/bin/env groovy | |
import groovy.sql.Sql | |
import com.mysql.jdbc.* | |
/** | |
* A small example script on how to connect to a mysql database in a groovy script. | |
* | |
* @author: Marcel Maatkamp (m.maatkamp avec gmail dot com) | |
*/ |