How to create skip links in Atlassian confluence wiki pages
# How to create skip links in Atlassian confluence wiki pages
1. Create headline, for example:
Test Headline 1
2. Click to the top of page and from the edit tools click Link ( Ctrl + K )
3. Paste the page URL to here, if not published yet, publish it first and then edit to get the proper URL
4. add /#Test-Headline-1 to the end of the URL ( Notice the - (dash) sign to replace white spaces )
5. Press enter
6. Edit the link again.
7. Set the 'Text to display'-text
8. Press enter.
Docker notes
# List running imagessudodockerps
# Stop docker containersudodockerstop119cbb3f26f2(containerid)#(-it runs docker in interactive mode, so you can stop it witch CTRL + c)sudodockerrun-itmyexpressapp
# Show ip:dockerexec-it[CONTAINER_ID]ipaddrshoweth0
# On browser:http://172.17.0.2:3000/
Electron building
# 1npminstallelectron-packager-g
electron-packager<sourcedir><appname>--platform=win32--arch=x64
# 2electron-builder-p--win
# Preferred way of building electron apps:Usethe#1 method and then create a portable .exe from the output build folder
MuroBBS notes
# Add embedded imgur image to muroBBS forum:[MEDIA=imgur]kaD578M[/MEDIA]# Add embedded imgur image gallery to muroBBS forum:[MEDIA=imgur]a/kaD578M[/MEDIA]
Trello notes
# Trello power-ups creation# Getting started:https://developers.trello.com/docs/get-started
https://developers.trello.com/docs/your-first-power-up
# Step 1https://trello.com/power-ups/admin/
->createnew
# Trello REST API Docshttps://developers.trello.com/reference#introduction
# Example project video:https://www.youtube.com/watch?v=dLCkcQnwAQk
# API calls:https://developers.trello.com/reference/#introduction
# Get board id ( or card id):-ForexampleifyourboardURLis:
https://trello.com/b/c0xTyrUZ/ddd
-Add.jsonattheendandpasteittobrowserurlfield:
https://trello.com/b/c0xTyrUZ/ddd.json
-id:3de884e4e0766a67efd2g1f9
Vulkan notes
Vulkan
# Instance
The very first thing you need to do is initialize the Vulkan library by creating an instance.
The instance is the connection between your application and the Vulkan library and creating
it involves specifying some details about your application to the driver.
# Extensions
Vulkan is a platform agnostic API, which means that you need an extension to interface with the window system.
Vulkan extensions are simply additional features that Vulkan implementations may provide if they so choose to.
They add new functions, structs, and valid enumerators to the API, and they can change some of the behavior of existing functions.
# Validation layers
Different layers needed for code validation, e.g. error handling. "All-round"-global validation layer can be turned on
to provide error handling for all functionaliy.
# Queue
A queue is something you submit command buffers to, and command buffers submitted to a queue are executed in order relative to each other.
Command buffers submitted to different queues are unordered relative to each other unless you explicitly synchronize them with VkSemaphore.
You can only submit work to a queue from one thread at a time, but different threads can submit work to different queues simultaneously.
Each queue can only perform certain kinds of operations:
- Graphics queues can run graphics pipelines started by vkCmdDraw* commands.
- Compute queues can run compute pipelines started by vkCmdDispatch*.
- Transfer queues can perform transfer (copy) operations from vkCmdCopy*.
- Sparse binding queues can change the binding of sparse resources to memory with vkQueueBindSparse
(note this is an operation submitted directly to a queue, not a command in a command buffer)
- Some queues can perform multiple kinds of operations.
- In the spec, every command that can be submitted to a queue have a "Command Properties" table that lists what queue types can execute the command.
# Queue family
A queue family just describes a set of queues with identical properties.
For example, the device supports three kinds of queues:
- One kind can do graphics, compute, transfer, and sparse binding operations, and you can create up to 16 queues of that type.
- Another kind can only do transfer operations, and you can only create one queue of this kind.
Usually this is for asynchronously DMAing data between host and device memory on discrete GPUs, so transfers can be done concurrently with independent graphics/compute operations.
- Finally, you can create up to 8 queues that are only capable of compute operations.
Partkeepr setup
## Setup# 1. Install phpsudoapt-getinstallphp
# 2. Find out which php.ini file is the web server usingCreateafilenamed'phpinfo.php'tothe/var/www/html/folder
Addtothefile:
<?php
phpinfo();?>
Gotothewebpagewithabrowser:http://192.168.1.35/phpinfo.php
Checkthe'Loaded Configuration File'field
# 3. edit php.initnano/etc/php/7.3/cli/php.ini
# 4. make sure that:4.1'allow_url_fopen'ison
4.2safe_mode=Off
4.3'extension=fileinfo'uncommentthis
4.4Setthetimezoneforthisfield:date.timezone=Europe/Helsinki(seeavailabletimezoneshere:https://www.php.net/manual/en/timezones.php)4.5uncomment:extension=gd2
4.6uncomment:extension=ldap
# 5. Make sure that apache is installed and running# 6. Install php curlsudoapt-getinstallphp7.3-curl
# 7. Install DoctrineORMsudoapt-getinstallcomposer
composerrequiredoctrine/doctrine-orm-module
# Had this file under the folder where I ran 'composer require', not sure if relevant:{"require":{"doctrine/orm":"^2.6.2",
"symfony/yaml":"2.*"},
"autoload":{"psr-0":{"":"src/"}}}# 8. Download partkeepr.zip and extract to /var/www/html/https://partkeepr.org/download/
# 9. Go to the setup folder with a browserhttp://192.168.1.35/partkeepr-1.4.0/web/setup/
# 10. Click next and fix all of the possible errors and warnings. I had to change these:sudonano/etc/php/7.3/cli/php.ini->set'max_execution_time'to600sudoapt-getinstallphp7.3-gd
sudoapt-getinstallphp7.3-ldap
sudoapt-getinstallphp-xml
sudoapt-getinstallphp7.3-mysql
sudoapt-getinstallphp-intl
sudoapt-getinstallphp-apcuphp-apcu-bc
sudochmod-R777/var/www/html/parkeepr-1.4.0/data
sudochmod-R777/var/www/html/parkeepr-1.4.0/app
sudochmod-R777/var/www/html/parkeepr-1.4.0/web
# Had a few warnings left, will fix them if issues occur-PHPAPCucachenotfound
-MaximumExecutionTimemightbetoolow
# 11. Fix Web Server Configuration error# Edit apache config /etc/apache2/apache2.conf and add these:# Include external configInclude/etc/apache2/httpd.conf
# Create /etc/apache2/httpd.conf and add these:<VirtualHost*:80>
ServerNamelocalhost
DocumentRoot/var/www/html/partkeepr-1.4.0/web/
AcceptPathInfoon
ErrorDocument403"<h1>Item management system update in progress. Check back in a few minutes.</h1>"<Directory/var/www/html/partkeepr-1.4.0/web/>
Requireallgranted
AllowOverrideAll
</Directory>
## LoggingErrorLog"/var/log/apache2/partkeepr_error.log"ServerSignatureOff
CustomLog"/var/log/apache2/partkeepr_access.log"combined
</VirtualHost>
# Enable .htaccess. Edit /etc/apache2/sites-available/000-default.conf, add lines:# Enable .htaccess file<Directory"/var/www/html/partkeepr-1.4.0">
AllowOverrideAll
</Directory>
# Create .htaccess filetouch/var/www/html//var/www/html/partkeepr-1.4.0/.htaccess
# Activate mod_rewritesudoa2enmodrewrite
# 12. Restart apache if there was errorssudosystemctlrestartapache2
# 13. Follow the partkeepr setup until SQL connection part ( Take a note on the database creation queries).# 14. Install a databasesudoaptinstallmariadb-server-10.0
sudo/usr/bin/mysql_secure_installation
Changetherootpassword?[Y/n]n
Removeanonymoususers?[Y/n]y
Disallowrootloginremotely?[Y/n]y
Removetestdatabaseandaccesstoit?[Y/n]y
Reloadprivilegetablesnow?[Y/n]# 15. Log in to the root database usersudomysql-uroot-p
# 16. Create the databaseCREATEDATABASEStorageCHARACTERSETUTF8;GRANTUSAGEON*.*TOroot@localhostIDENTIFIEDBY'PUT_PW_HERE';GRANTALLPRIVILEGESONStorage.*TOroot@localhost;# 17.
WebOS notes ( SmartTV app programming )
# Buildares-packageaasi-app
# Install packageares-install--devicetv2./com.aasi.app.aasiapp_0.0.1_all.ipk
# List installed packagesares-install--devicetv2--list
# Launch appares-launch--devicetv2com.aasi.app.aasiapp
# Close appares-launch--devicetv2--closecom.aasi.app.aasiapp
BatMUD
# Show inventory:i
# Show equipmenteq
# Search info:hfind
(Example:hfindarmours)# Run away:wimpynow
# Show health:sc
# Show player infoscore
# Show experience and moneyexp
# Show info on playersfinger
(Example:fingerprotoni)# Look around and itemslookscenery
# Dwarf mountain wizard passwordkalacucco
# Newbie help:helpnewbiehelpers
# teleport?touchpost
# Levelup:advancelevel
# Check levelup cost:advancecost
# Adventurer guild locations:Dortlewall,Pleasantville,AreliumandCalythien
# At lvl 16:helpfreelevels
# Lots of rooms ( exp ):wane-mountain
# Good starter items:Dortwall'crystite credits'# Cheap items:Damogran's warehouse- Located 1 east, 2 north from the church altar, and there'saportaltohiswarehouseinDortlewallandPleasantville
Rust
# Update rustc, cargo etc..rustupupdatestable
# Error: specified package has no binariescargoinstallcargo-edit
cargoaddpdb
# Start a new projectmkdirtest_project
cdtest_project
cargoinit
# Run projectcargorun
# Build project without runningcarcobuild
# Create a releasecargobuild--release
# Generate docs based on dependenciescargodoc--open
Convert GIF to video
# Install ffmpeg:sudoapt-getinstallffmpeg
# Install on Windows:chocoinstallffmpeg
# Convert GIF to videoffmpeg-iinput.gif-c:vlibx264-pix_fmtyuv420poutput.mp4