- Get a bootable Arch iso.
- Partition the disk (https://wiki.archlinux.org/index.php/installation_guide#Partition_the_disks).
- If you have Windows installed, skip creating an EFI parition, we'll use Windows'.
- note
/dev/sdX1IS always the EFI partition.
| [Unit] | |
| Description=fake webcam | |
| [Service] | |
| ExecStartPre=/bin/modprobe v4l2loopback card_label='Skype Sucks' | |
| ExecStart=/usr/bin/ffmpeg -loglevel panic -f v4l2 -video_size 640x360 -i /dev/video0 -f v4l2 -vf scale=320:-1 -r 10 /dev/video1 | |
| SuccessExitStatus=255 | |
| Restart=always | |
| RestartSec=2 |
| <?php | |
| function doCurlJSONReq($url, $data = null, $method = '', $returnString = false) { | |
| //echo $url . "\n"; | |
| $ch = curl_init($url); | |
| if($data !== null) { | |
| if($method === '') $method = 'POST'; | |
| if(!is_string($data)) $data = json_encode($data); | |
| curl_setopt($ch, CURLOPT_POSTFIELDS, $data); | |
| curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json', 'Content-length: '.strlen($data))); |
| . |
| #!/bin/sh | |
| if [ "$1" = "update-vsc" ]; then | |
| typ="stable" | |
| [ "$2" != "" ] && typ="$2" | |
| pushd /usr/src | |
| rm -rf VSCode-linux-x64.working &>/dev/null | |
| mv VSCode-linux-x64 VSCode-linux-x64.working &>/dev/null | |
| echo curl -L https://vscode-update.azurewebsites.net/latest/linux-x64/$typ | |
| curl -L https://vscode-update.azurewebsites.net/latest/linux-x64/$typ | tar vxz && exit 0 |
| config_version 1.2 | |
| snapshot_root /media/storage/backup/ | |
| cmd_cp /usr/bin/cp | |
| cmd_rm /usr/bin/rm | |
| cmd_rsync /usr/bin/rsync | |
| cmd_logger /usr/bin/logger | |
| cmd_du /usr/bin/du | |
| cmd_rsnapshot_diff /usr/bin/rsnapshot-diff | |
| interval daily 7 | |
| verbose 2 |
| #!/bin/sh | |
| die() { | |
| echo $1 | |
| exit $2 | |
| } | |
| if [ "$1" = "update-vsc" ]; then | |
| tmp="/tmp/vscode" | |
| typ="stable" | |
| [ "$2" != "" ] && typ="$2" |
| export let API_BASE: string = '/api/v1/'; | |
| export type FetchBodyType = Blob | Int8Array | Int16Array | Int32Array | Uint8Array | | |
| Uint16Array | Uint32Array | Uint8ClampedArray | Float32Array | Float64Array | | |
| DataView | ArrayBuffer | FormData | string | null; | |
| export type PayloadFn = (h: Headers) => FetchBodyType; | |
| export type PayloadType = Blob | FormData | string | object | PayloadFn; |
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "os/exec" | |
| "golang.org/x/net/ipv4" | |
| "github.com/songgao/water" |
/dev/sdX1 IS always the EFI partition.| import React from 'react'; | |
| import { Input, Checkbox, Select } from 'antd'; | |
| const FormField = (props) => { | |
| let { hidden, form, name, required = false, message = '', valuePropName = 'value', initialValue, type, ...rest } = props, | |
| { getFieldDecorator } = form; | |
| if (hidden) return null; | |
| let Child = null; |