Find the last two commits by:
git log -2 --format=oneline --reverse
Then run the hook by:
echo "[from-commit-id] [to-commit-id] master" | ./hooks/post-receive
| // Great for getting values, outputting context strings, and so on. | |
| console.log(variable) | |
| // Same as console.log(), but prints in yellow as a warning. Useful to show a non-breaking error in a dev env. | |
| console.warn('It is a good idea to use .map instead of a for-loop.') | |
| // Same as console.log(), but prints in red as an error. Useful to show a breaking error in a dev env. | |
| console.error(`The value must be an integer. You provided a ${typeof variable}.`) | |
| // Group console data together for better viewing. Nice to group console logs together. |
Find the last two commits by:
git log -2 --format=oneline --reverse
Then run the hook by:
echo "[from-commit-id] [to-commit-id] master" | ./hooks/post-receive
| /** | |
| * Settings | |
| */ | |
| var settings = { | |
| scripts: true, // Turn on/off script tasks | |
| polyfills: true, // Turn on/off polyfill tasks | |
| styles: false, // Turn on/off style tasks | |
| svgs: false, // Turn on/off SVG tasks | |
| static: false, // Turn on/off static file copying |
If you're using self-signed certificate for your web server on development, you might know the browser warning saying that your certificate isn't valid. If like me you had manually added an exception for this certificate error each time it showed up, this gist is for you.
You'll have to create a self-signed certificate with a custom SubjectAltName.
find /usr/lib -name openssl.cnfWhen searching for graphics card with "sudo lshw -c video" on Ubuntu 19.10 or 20.04 (beta) the following error is shown:
# list graphics/video cards
sudo lshw -c video
#[drm:amdgpu_init [amdgpu]] *ERROR* VGACON disables amdgpu kernel mode setting.