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
const port = process.env.PORT || 8080 | |
// ESM | |
import Fastify from 'fastify' | |
const fastify = Fastify({ | |
logger: true | |
}) | |
// Declare a route | |
fastify.patch('/', function (request, reply) { |
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
{ | |
arrowParens: 'always', | |
printWidth: 100, | |
semi: false, | |
singleQuote: true, | |
tabWidth: 2, | |
useTabs: false | |
} |
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
0xba769d1bc864c5380559991d0f59c10884740886 |
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
BBC | |
روابط الدخول | |
إذهب الى المحتوىAccessibility Help | |
تسجيل الدخول | |
تصفح بي بي سي | |
قائمة | |
بحث في بي بي سي | |
بحث | |
بحث في بي بي سي | |
Arabic navigation |
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
# The following code goes in your ~/.profile | |
# | |
# The prompt on shows a beer when you launch a Terminal window on a Friday. | |
# This checks every time you get a new prompt. A minute after 11:59M on a | |
# Thursday, if you press enter, it will add beer to the prompt. A minute | |
# after 11:59 PM on a Friday, no more beer. | |
beer() { | |
if [[ $(date +%u) -eq 5 ]] | |
then |
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
#accProductsBanner, .accProductDetail .tableBody tr td, .accProductDetail .tableBody tr td.accProductDetails, .accProductDetail .tableBody tr th, .flexCard, .table>tbody>tr>td, .table>tbody>tr>th, .table>tfoot>tr>td, .table>tfoot>tr>th, .table>thead>tr>td, .table>thead>tr>th { | |
padding: 0; | |
} | |
.cardImageCont img, .rewardsBanner { | |
display: none; | |
} | |
#topTools h2, .cardInfoCont h3, .cardInfoCont p, .cardInfoCont p.primaryNum { | |
margin: 0; | |
} | |
.utilityBar { |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCYH2QiEQPB7Q86iQbypcJn5+AaUFOwJ5U9F8ztkpsNCjDkOCt7t9ldN/bX2oLkGD25Vg2ltSGwXpL+oR1aGvlJXN9qNhpYOjq3oJC57wLnrO7BRHX3R4s5pwJ69hGOEX/phbcFEdNqwfSDhWyP6vfdm1VZrv96i7zKpmZ7Zno2aIbQm+B9ntZ1R9K30KO213sjlDyXaXBZFZ/vw+Pc+nsPi1tmBs6l1TRct/jNayq79DfFpAVg5QsuJio/jY7+z53TtdnJ+Y5bfcjVM9NvSPYZLgbL7Clwvj+EcMhlnjjiZVALV6oFwYrOlia3ZSY0zyLqOP4Thh3m1LjESh5Q0+XVj3R0CNCJi9bpf3BfZfAGyJ6Mb4sry/btm3GKQfWfU/ks3UiT3GczS0Jki9wHlY+c3hP+RrNXXLUsvYQ6hyuiL4Rz8phjtSgJ3Qkw3rQBH1DYtifNVgR05KS2gUOd3ooTOvCXSHLLjqFmyzWEWA0qj3VpodGdJNXDUA0jZbO3qrNn0LfaHKYGJCDtel8BHmwVulHLAtqfLeKfXYr+kFCjLfSV0JZy2jaI7UjPe8eJ3KmAQhg1j7fg0f1q1zk1I0kVPNIXClNI9lYj2BXx96r+X0U+kCh31+YEgc+FowTe4zv4aA62uCLBwd5LPiI8tTUxcGu2vOR6FAfLQdSsj0/jSQ== bill |
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
UPDATE tariffs | |
SET stake = 'user' | |
WHERE id IN (SELECT tariffs.id | |
FROM tariffs | |
JOIN "assetTypes" ON "assetTypes".id = tariffs."assetTypeId" | |
WHERE "assetTypes".slug LIKE 'Agricu%' AND tariffs.stake = 'owner') |
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
#!/bin/bash | |
# Courtesy of http://vmassuchetto.github.io/2013/08/14/reducing-a-vagrant-box-size/ | |
# Unmount project | |
umount /vagrant | |
# Remove APT cache | |
apt-get clean -y | |
apt-get autoclean -y |
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
var Canvas = require('canvas') | |
, Image = Canvas.Image | |
, qrcode = require('jsqrcode')(Canvas) | |
var filename = __dirname + '/scan.png' | |
var image = new Image() | |
image.onload = function () { | |
try { | |
var result = qrcode.decode(image); |
NewerOlder