docker-compose exec -u postgres postgres pg_dumpall -c > prod_`date +%d-%m-%Y"_"%H_%M_%S`.sql
docker-compose exec -u postgres postgres pg_dump -d "DATABASE" -t 'TABLE' > TABLE_`date +%d-%m-%Y"_"%H_%M_%S`.sql
##Remove junk | |
sudo apt-get remove --purge libreoffice* | |
sudo apt-get clean | |
sudo apt-get autoremove | |
## Update | |
sudo apt update | |
sudo apt upgrade |
var ip = "http://localhost" | |
var dbName = "DB_NAME" | |
var viewType = "VIEW_TYPE" | |
var viewName = "VIEW_NAME" | |
$.getJSON(ip+":5984/"+dbName+"/_design/"+viewType+"/_view/"+viewName+"/", function(data) { | |
data.rows.forEach(function (doc) { | |
$.ajax({ | |
url: ip+":5984/"+dbName+"/" + doc.value._id + '?rev=' + doc.value._rev, | |
type: 'DELETE', | |
success: function(result) { |
ColumnLayout { | |
width: parent.width | |
TextMontserrat { | |
text: title | |
font.bold: true | |
color: colors.white | |
Layout.fillWidth: true | |
Layout.maximumHeight: 310 | |
fontSizeMode: Text.Fit |
#MOTION | |
*Popmotion (https://popmotion.io/) | |
*Gsap (https://greensock.com/) | |
#VR | |
*Aframe | |
#SVG | |
*d3.js (https://d3js.org/) |
{ | |
"compilerOptions": { | |
"baseUrl": ".", | |
"paths": { | |
"*": [ | |
"*", | |
"src/*" | |
] | |
} | |
} |
(function(){ | |
var blob=new Blob([$0.outerHTML]); | |
var link=document.createElement('a'); | |
link.href=window.URL.createObjectURL(blob); | |
link.download="myFileName.txt"; | |
link.click(); | |
})() |
<script> | |
(function() { | |
var a = console.log; | |
var b = console.error; | |
var c = console.info; | |
var d = fetch; | |
var output = document.createElement("div"); | |
output.style.cssText = | |
"position:fixed; background: white; width: 50vw; height: 100vh; z-index: 99; right: 0; top: 0; overflow: auto; word-wrap: pre-wrap;"; | |
document.body.appendChild(output); |
## Tizen configuration | |
1. Download Tizen CLI from here https://developer.tizen.org/development/tizen-studio/download | |
2. `chmod 755 web-cli_Tizen_Studio_3.7_ubuntu-64.bin` | |
3. `~/tizen-studio/tools/ide/bin/tizen certificate -a ProfileName -p 1234 -f profile_filename` | |
4. `~/tizen-studio/tools/ide/bin/tizen security-profiles add -n ProfileName -a ~/tizen-studio-data/keystore/author/profile_filename.p12 -p 1234` | |
5. Edit `~/tizen-studio-data/profile/profiles.xml` and change password fields like this: | |
``` | |
<profileitem ...profile_filename.p12" password="" rootca=""/> | |
<profileitem ...tizen-distributor-signer.p12" password="tizenpkcs12passfordsigner" rootca=""/> |
const { Request } = require('./request.js') | |
function start({token = "", body = null} = {}) { | |
const request = Request.get('http://ip.jsontest.com') | |
if (auth) request.header('Authorization', `Bearer ${token}`) | |
const response = await request.json(body) | |
if (!response.ok) throw response |