Debian 10 Buster headless
Shared Libraries needed
$ sudo apt install libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libasound2 libpangocairo-1.0-0 libxss1 libgtk-3-0
Local user
// resource route component | |
import React from "react"; | |
import { PassThrough } from "node:stream" | |
import fs from "node:fs" | |
import {createReadableStreamFromReadable} from "@remix-run/node" | |
import { defaultQuality,widths,mainImageReadStream,generatedImageReadstream, isThereImage,BadImageResponse } from "../../util/image.server" | |
export const loader = async ({ request }) => { | |
const url = new URL(request.url); | |
const src = url.searchParams.get("src"); |
// From https://github.com/cypress-io/cypress/issues/702#issuecomment-435873135 | |
beforeEach(() => { | |
if (window.navigator && navigator.serviceWorker) { | |
navigator.serviceWorker.getRegistrations() | |
.then((registrations) => { | |
registrations.forEach((registration) => { | |
registration.unregister(); | |
}); | |
}); | |
} |
const canIRun = navigator.mediaDevices.getDisplayMedia | |
const takeScreenShot = async () => { | |
const stream = await navigator.mediaDevices.getDisplayMedia({ | |
video: { mediaSource: 'screen' }, | |
}) | |
// get correct video track | |
const track = stream.getVideoTracks()[0] | |
// init Image Capture and not Video stream | |
const imageCapture = new ImageCapture(track) |
@observer | |
class TodoList extends React.Component { | |
render() { | |
const store = this.props.store; | |
return ( | |
<div> | |
{ store.report } | |
<ul> | |
{ store.todos.map( | |
(todo, idx) => <TodoView todo={ todo } key={ idx } /> |
# This is a sample build configuration for JavaScript. | |
# Check our guides at https://confluence.atlassian.com/x/14UWN for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: node:6.9.4 | |
pipelines: | |
default: | |
- step: |
exFAT support on macOS seems to have some bugs because my external drives with exFAT formatting will randomly get corrupted.
If Disk Utility is unable to repair, consider trying this:
diskutil list
to find the right drive id.disk1s1
sudo fsck_exfat -d <id from above>
. eg sudo fsck_exfat -d disk1s3
-d
is debug so you'll see all your files output as they're processed.#include<stdio.h> | |
#include<conio.h> | |
#include<string.h> | |
#include<stdlib.h> | |
# define MAX 20 | |
char str[MAX],stack[MAX]; | |
int top=-1; | |
void push(char c) | |
{ | |
stack[++top]=c; |
If you want to get the difference between two branches, say master and branch-name, use the following command:
git diff master..branch-name
If you want that same diff in a patch, because patches are handy, just add the output redirect:
git diff master..branch-name > branch-name.patch
If you need to import that patch into something like Crucible then you'll need to get rid of the a and b prefixes that git adds:
git diff --no-prefix master..branch-name > branch-name.patch