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
johnny | |
description: Desktop Computer | |
product: Z83 II (Default string) | |
vendor: AZW | |
version: Default string | |
serial: Default string | |
width: 64 bits | |
capabilities: smbios-3.0.0 dmi-3.0.0 smp vsyscall32 | |
configuration: boot=normal chassis=desktop family=Default string sku=Default string uuid=03000200-0400-0500-0006-000700080009 | |
*-core |
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/zsh | |
#### | |
# This script assumes that you have installed https://github.com/Wandmalfarbe/pandoc-latex-template and that your input is a markdown file from https://www.notion.so/ | |
# Converting to PDF requires MacTex or equivalent to be installed. | |
# Cover page background is hardcoded to "~/.pandoc/backgrounds/background7.pdf", change it. | |
# Author is hardcoded to "Lisbon Collective", https://lisboncollective.com/ | |
# Usage: ./notion2pdf.sh inputFile.md | |
# Questions: [email protected] | |
### |
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 | |
wget https://github.com`wget -qO- https://github.com/gohugoio/hugo/releases/latest | grep -oE -m 1 '/gohugoio/hugo/releases/download/v[0-9].[0-9][0-9].[0-9]/hugo_extended_[0-9].[0-9][0-9].[0-9]_Linux-64bit.deb'` | |
tar -xzf hugo*.tar.gz | |
sudo dpkg -i hugo*.deb && rm hugo*.deb; |
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
[{"id":"c8971770.2bcb98","type":"file","z":"d7b932b9.f6cb4","name":"","filename":"","appendNewline":true,"createDir":false,"overwriteFile":"true","encoding":"none","x":1050,"y":440,"wires":[["5759783a.949fa8"]]},{"id":"57fad02e.17f44","type":"rbe","z":"d7b932b9.f6cb4","name":"","func":"rbe","gap":"","start":"","inout":"out","septopics":true,"property":"payload","x":930,"y":420,"wires":[["c8971770.2bcb98"]]},{"id":"992b766a.f1a868","type":"change","z":"d7b932b9.f6cb4","name":"destino","rules":[{"t":"set","p":"filename","pt":"msg","to":"\"/NAS/Invoices_Archive/\" & $substring($now(),0,13) & \"h\" & $substring($now(),14,2) & \"mn_\" & msg.payload.filename","tot":"jsonata"},{"t":"set","p":"payload","pt":"msg","to":"payload.content","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":420,"wires":[["57fad02e.17f44","8490a08.3588e6"]]},{"id":"3e3b1204.c9300e","type":"switch","z":"d7b932b9.f6cb4","name":"PDF?","property":"payload.contentType","propertyType":"msg","rules":[{"t":"eq","v":" |
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
[ | |
{ | |
"id": "2dec1e89.a9a582", | |
"type": "chatbot-telegram-receive", | |
"z": "b05ba402.a21508", | |
"bot": "21c9917c.15264e", | |
"botProduction": "21c9917c.15264e", | |
"x": 170, | |
"y": 640, | |
"wires": [ |
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
<!-- | |
I use a lot of photos from unsplash as headers. This shortcode works in two ways to make that easier: | |
1. Standard use | |
{{< copyright name="Malte Wingen" href="https://unsplash.com/@maltewingen?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText" >}} | |
2. Automatic parsing of filename | |
{{< copyright >}} |
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
/**/ | |
/* GALLERY */ | |
/**/ | |
.gallery{ | |
width: 100%; | |
display: block; | |
margin:0 auto; | |
} |
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
@DeLorean:~/Digital-Insanity$ hugo --cleanDestinationDir | |
Building sites … fatal error: runtime: out of memory | |
runtime stack: | |
runtime.throw(0x12202bd, 0x16) | |
/usr/local/go/src/runtime/panic.go:617 +0x72 | |
runtime.sysMap(0xc04c000000, 0x4000000, 0x1eb5cd8) | |
/usr/local/go/src/runtime/mem_linux.go:170 +0xc7 | |
runtime.(*mheap).sysAlloc(0x1e8ef80, 0x484000, 0x1e8ef90, 0x242) | |
/usr/local/go/src/runtime/malloc.go:633 +0x1cd |
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
server { | |
server_name .DOMAIN-NAME; | |
listen 80; | |
# Redirect all HTTP requests to HTTPS with a 301 Moved Permanently response. | |
return 301 https://$host$request_uri; | |
} | |
server { | |
listen 443 ssl http2; | |
gzip on; |
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 | |
INCLUDE="/etc/nginx/incl/basicauth.conf" | |
SOURCEDIR="/home/Digital-Insanity/content/" | |
read -p "Website nginx directory without trailling slash [/var/web/brunoamaral.eu]:" publicDir | |
publicDir=${publicDir:-/var/web/brunoamaral.eu} | |
read -p "Which directory should we protect? (no trailling slash)" relUrl | |
htpasswd -c "$publicDir$relUrl/.htpasswd" nginx; | |
cp "$publicDir$relUrl/.htpasswd" "$SOURCEDIR$relUrl" |
NewerOlder