- Create your user systemd directory:
$ mkdir -p .config/systemd/user
- Edit the unit file
.config/systemd/user/ssh-agent.service
:
[Unit]
Description=SSH key agent
#!/usr/bin/env python3 | |
import os | |
import json | |
import random | |
import zipfile | |
config = { | |
"color": "red", | |
"amount": 42.24, |
<!doctype html> | |
<html> | |
<head> | |
<script type="module"> | |
// WICG Shape Detection API | |
// - https://wicg.github.io/shape-detection-api/ | |
try { | |
const start = document.getElementById("start"); | |
const video = document.getElementById("video"); | |
const result = document.getElementById("result"); |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
{ | |
"basics":{ | |
"name":"Michael Salaverry", | |
"label":"Senior Fullstack Web Developer", | |
"website":"https://github.com/barakplasma", | |
"summary":"Test Driven Developer. Passionate about automation. I love working on difficult technical problems that involve learning new skills and delivering great experiences and solutions to my customers.", | |
"profiles":[ | |
{ | |
"network":"Github", | |
"username":"barakplasma", |
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Download-Upgradeable-Packages "1"; | |
APT::Periodic::AutocleanInterval "3"; | |
APT::Periodic::Verbose "1"; | |
APT::Periodic::Unattended-Upgrade "1"; |
const express = require('express'); | |
const { html, Component } = require('htm/preact'); | |
const renderToString = require('preact-render-to-string'); | |
class App extends Component { | |
render(props) { | |
return html` | |
<div class="app"> | |
<h1>This is an app</h1> | |
<p>Current server time: ${new Date + ''}</p> |
let fnGetFileNameFromContentDispostionHeader = function (header) { | |
let contentDispostion = header.split(';'); | |
const fileNameToken = `filename*=UTF-8''`; | |
let fileName = 'downloaded.pdf'; | |
for (let thisValue of contentDispostion) { | |
if (thisValue.trim().indexOf(fileNameToken) === 0) { | |
fileName = decodeURIComponent(thisValue.trim().replace(fileNameToken, '')); | |
break; | |
} |