Test Env: Magento 2.1.11 |
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
### bios flash without battery in WinPE | |
Run 3521A12.exe with wrong parameter (e.g. writehdrfile) | |
Wait for error window, but don't close it. | |
Go to %temp% folder. | |
Find folder with name looks like - 7zS62A4.tmp | |
Copy it to somewhere. | |
Close error window. | |
Edit platform.ini: replace BatteryCheck=1 to BatteryCheck=0 | |
Run InsydeFlash.exe |
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
function area(poly){ | |
var s = 0.0; | |
var ring = poly.coordinates[0]; | |
for(i= 0; i < (ring.length-1); i++){ | |
s += (ring[i][0] * ring[i+1][1] - ring[i+1][0] * ring[i][1]); | |
} | |
return 0.5 *s; | |
} |
1.Load the current xmodmap file
xmodmap ~/.Xmodmap
- Generate xkb mapping file
xkbcomp $DISPLAY $HOME/.xkbmap
- Load xkb mapping
xkbcomp /home/madalien/.xkbmap ":0"
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
xkb_keymap { | |
xkb_keycodes "evdev+aliases(azerty)" { | |
minimum = 8; | |
maximum = 255; | |
<ESC> = 9; | |
<AE01> = 10; | |
<AE02> = 11; | |
<AE03> = 12; | |
<AE04> = 13; | |
<AE05> = 14; |
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
keycode 8 = | |
keycode 9 = Escape NoSymbol Escape | |
keycode 10 = ampersand 1 UF8FF dead_acute | |
keycode 11 = eacute 2 ediaeresis doublelowquotemark | |
keycode 12 = quotedbl 3 leftdoublequotemark rightdoublequotemark | |
keycode 13 = apostrophe 4 leftsinglequotemark rightsinglequotemark | |
keycode 14 = parenleft 5 braceleft bracketleft | |
keycode 15 = section 6 paragraph aring | |
keycode 16 = egrave 7 guillemotleft guillemotright | |
keycode 17 = exclam 8 exclamdown Ucircumflex |
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
- uses: docker://[ref-to-public-image] | |
- name: "pull private image and retag it" | |
env: | |
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | |
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | |
DOCKER_REGISTRY_URL: ${{ secrets.DOCKER_REGISTRY_URL }} | |
run: | | |
docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD" ${{ secrets.DOCKER_REGISTRY_URL }} | |
docker pull [url-of-private-image] | |
docker tag [url-of-private-image] [ref-to-public-image] |
curl -XPUT 'http://localhost:9200/_cluster/settings' -H "Content-Type: application/json" -d '{ "persistent" : { "cluster.routing.allocation.disk.threshold_enabled" : false } }'
curl -XPUT 'http://localhost:9200/_all/_settings' -H "Content-Type: application/json" -d '{ "index.blocks.read_only_allow_delete": null }'