Skip to content

Instantly share code, notes, and snippets.

# WSL Configuration
## Update Ubuntu components:
Update and upgrade system
sudo apt-get update && sudo apt-get upgrade
Install LAMP stack (note the caret)
@fischgeek
fischgeek / utils.js
Created October 20, 2021 03:43
Scriptable Utils
function baseGrad() {
let g = new LinearGradient()
g.locations = [0, 1]
return g
}
function gradBaseBlackTop(clr) {
let g = baseGrad()
g.colors = [
new Color("141414"),
@fischgeek
fischgeek / resume_template.json
Last active April 26, 2022 00:19
Resume Template as JSON
{
"personal_info": {
"name": "first last",
"age": 0,
"phone": "000-000-0000",
"email": "email@domain.com",
"address": "address",
"website": "https://dev.to"
},
"cv": {
<html lang="en">
<head>
<meta charset="utf-8">
<title>canopy test results</title>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<style>
.masthead ul,
function shortcode_custom_date($fmt) {
extract(shortcode_atts(array(
'format' => 'Ymd'
), $fmt));
return date($format);
}
add_shortcode('custom_date', 'shortcode_custom_date');
// usage: [custom_date format="r"] // Thu, 29 Jun 2023 14:49:05 +0000