Note
This no longer works in browser!
Note
This no longer works if you're alone in vc! Somebody else has to join you!
How to use this script:
- Accept the quest under User Settings -> Gift Inventory
This script eases the process of downloading the audio files from Chirp Audiobooks.
It uses the browsers console to generate a list of URLs, and then provides a list of curl
or wget
commands to download them.
Tested with Firefox + Terminal on MacOS, and Firefox + PowerShell on Windows 10.
#! /usr/bin/env lnav -i | |
{ | |
"magento_log" : { | |
"title" : "Magento Log Format", | |
"description" : "Log format used in Magento 1.", | |
"url" : "https://gist.github.com/chrisvanderpoel/e19dcab8ce69bc9806a3", | |
"regex" : { | |
"basic" : { | |
"pattern" : "^(?<timestamp>[0-9]{4}\\-[0-9]{2}\\-[0-9]{2}\\T[0-9]{2}\\:[0-9]{2}\\:[0-9]{2}\\+[0-9]{2}\\:[0-9]{2})\\s(?<level>\\w+)\\s(?<component>\\(\\w+\\))\\:\\s(?<body>.*)$" | |
} |
import SwiftUI | |
struct ContentView: View { | |
@State var selectedIndex: Int? = nil | |
let options: [String] = ["Option1", "Option2"] | |
var body: some View { | |
PickerField("Select an option", data: self.options, selectionIndex: self.$selectedIndex) | |
} | |
} |
import discord | |
import asyncio | |
import speech_recognition as sr | |
from threading import Thread | |
# bot token and wit.ai api key | |
TOKEN = "" | |
WIT_AI_KEY = "" | |
# we need a sink for the listen function, so we just define our own |
const AWS = require('aws-sdk') | |
AWS.config.update({ region: process.env.AWS_REGION }) | |
const s3 = new AWS.S3() | |
const uploadBucket = 'test-bucket-357' // Replace this value with your bucket name! | |
const URL_EXPIRATION_SECONDS = 30000 // Specify how long the pre-signed URL will be valid for | |
// Main Lambda entry point | |
exports.handler = async (event) => { | |
return await getUploadURL(event) | |
} |
#!/bin/bash | |
USUARIO_SO="$(whoami)" | |
ANACONDA_URL="https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh" | |
_DB_PASSWORD="la contraseña" | |
_IP=$(hostname -I | cut -d' ' -f1) | |
while getopts "a:p:h" opt; do | |
case $opt in | |
a) ANACONDA_URL="$OPTARG";; | |
p) _DB_PASSWORD="$OPTARG";; | |
h) cat <<EOF |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
System process daemons that are system-wide provided by mac os x are described by launchd preference files that can be showed with the command: | |
$ sudo ls -all /System/Library/LaunchDaemons/ | |
Third party process daemons that are system-wide provided by the administrator are described by preference files that can be showed with the command: | |
$ sudo ls -all /Library/LaunchDaemons/ | |
Launch Agents that are per-user provided by mac os x usually loaded when the user logs in. Those provided by the system can be found with: | |
$ sudo ls -all /System/Library/LaunchAgents/ | |
Launch Agents that are per-user provided by the administrator and usually loaded when the user logs in. Those provided by the system can be found with: |
I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.
Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details
Internally, launchd has several domains, but launchctl 1 would only ask for service names,