##In Brief
You may need to configure a proxy server if you're having trouble cloning
or fetching from a remote repository or getting an error
like unable to access '...' Couldn't resolve host '...'
.
Consider something like:
# /etc/udev/rules.d/50-usb-mount.rules | |
ACTION=="add",ATTRS{idVendor}=="0951",ATTRS{idProduct}=="1643",RUN+="/bin/mkdir -p /media/abc",RUN+="/bin/mount -o relatime,sync,utf8,uid=1000,gid=1000,umask=002 /dev/%k /media/abc" | |
ACTION=="remove",ATTRS{idVendor}=="0951",ATTRS{idProduct}=="1643",RUN+="/bin/umount -l /media/acc",RUN+="/bin/rmdir /media/abc" |
package main | |
import ( | |
"io" | |
"log" | |
"os" | |
"os/exec" | |
"io/ioutil" | |
"bytes" | |
) |
<template> | |
<div> | |
</div> | |
</template> | |
<script> | |
import CryptoJs from "crypto-js" | |
export default { | |
name: "", | |
data(){ |
const {session} = require('electron') | |
const {ipcMain} = require('electron') | |
ipcMain.on('disable-x-frame', (event, arg) => { | |
session.fromPartition(arg.partition).webRequest.onHeadersReceived({}, (d, c) => { | |
if(d.responseHeaders['x-frame-options'] || d.responseHeaders['X-Frame-Options']){ | |
delete d.responseHeaders['x-frame-options']; | |
delete d.responseHeaders['X-Frame-Options']; |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /your/root/path; | |
index index.html; | |
server_name you.server.com; |