- Install Proxmox 5.3
- Console/SSH into Proxmox
- nano /etc/apt/sources.list
- edit the file to look like this
This file contains hidden or 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
curl https://raw.github.com/gist/1588091/8b7b7a203074231f3dc75bdee48b3017078fb621/CentOS-Base.repo -o /etc/yum.repos.d/CentOS-Base.repo | |
curl https://raw.github.com/gist/1588091/2e5ab750cd0603dd7210ea7a999d15f9aadae711/epel.repo -o /etc/yum.repos.d/epel.repo |
This file contains hidden or 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 myURL = 'myCfc.cfc?method=getItemsFromDb'; | |
var app = angular.module('angularOutput',[]); | |
app.controller("sectionController", function($scope, $http) { | |
$http.get(myURL). | |
success(function(data, status, headers, config) { | |
var log = []; | |
var output = ''; | |
angular.forEach(data.DATA, function(value, key) { | |
this.push(output +='{"value": '); | |
this.push(output += '"'+value[0]+'"'); |
This file contains hidden or 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
component { | |
/* | |
Parts of this are based on Tim Dawe's | |
http://amazonsig.riaforge.org | |
and | |
Joe Danziger's Amazon S3 REST Wrapper | |
http://amazons3.riaforge.org/ | |
This file contains hidden or 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
hs.hotkey.bind({"cmd", "alt", "ctrl"}, "W", function() | |
hs.alert.show( | |
"Hello World!", | |
{ | |
textFont= "Comic Sans MS", | |
textSize=72, | |
fadeOutDuration=1 | |
} | |
) | |
end) |
This file contains hidden or 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
#!/usr/bin/env node | |
/* | |
tmuxfixer.js | |
USAGE: | |
$ node tmuxfixer.js old-conf-path [new-conf-path] | |
PURPOSE & CONTEXT: This script takes in a tmux configuration file and combines | |
all deprecated -fg, -bg, and -attr into a single -style option line. | |
Awesome Tmux
List of helpful tmux links for various tutorials, plugins, and configuration settings.
This file contains hidden or 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
-- ddcavcontrol | |
-- v1.2.1 | |
-- This Hammerspoon script is intended to do the following: | |
-- 1) Control External Display Brightness via DDC (utilizing a proper brightness+contrast curve) | |
-- 2) Control External Display Volume via DDC | |
-- 3) Control Digital AV Volume via Network (currently works with Yamaha AVs) | |
-- 4) Use the standard brightness and volume keys of an Apple keyboards | |
-- 5) Display the standard MacOS OSD as expected |
This file contains hidden or 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 notice = (msg) => new Notice(msg, 5000); | |
const log = (msg) => console.log(msg); | |
module.exports = async function processLogseq(params) { | |
const {app, quickAddApi: {yesNoPrompt, inputPrompt, utility}} = params; | |
const shouldRemove = await yesNoPrompt("Should I remove timestamps?", `If you say no, I'll process them to be default youtube timestamp links. If you say yes, I'll simply remove them.`); | |
let text = await utility.getClipboard(); | |
text = text.toString(); | |
This article describes how to shoot a video from JavaScript using the MediaStream Recording API. The related resources are shown below.
OlderNewer