- 只对二进制程序有效,对shell脚本或者目录无效
- 拥有者的权限执行位改为s
- 执行者拥有x权限
- 执行者在
运行程序过程中
将获得改文件拥有者的权限
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
{ | |
"name": "whitealbum.io", | |
"description": "whitealbum.io", | |
"version": "1.0.0", | |
"keywords": [ | |
"blog" | |
], | |
"main": "index.js", | |
"scripts": { | |
"dev": "webpack-dev-server", |
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
// Note: only for modern browser | |
import axios from 'axios' | |
// helper function: generate a new file from base64 String | |
const dataURLtoFile = (dataurl, filename) => { | |
const arr = dataurl.split(',') | |
const mime = arr[0].match(/:(.*?);/)[1] | |
const bstr = atob(arr[1]) | |
let n = bstr.length | |
const u8arr = new Uint8Array(n) |
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
/** | |
* Copyright 2015 Google Inc. All rights reserved. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
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
// NumberFlip.ts | |
import * as React from 'react'; | |
import cStyle from './NumberFlip.scss' | |
class NumberFlip extends React.Component { | |
private static Nums = Array.from({ length: 11 }).map((v, i) => i % 10); | |
private num: number = 0; | |
private $content: HTMLElement | null; | |
private $scroller: HTMLElement | null; | |
private height: number = 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
// tree node | |
class TreeNode { | |
constructor(value) { | |
this.value = value | |
this.parent = null | |
this.left = this.right = null | |
} | |
insert(newNode) { | |
const { | |
value |
cat /etc/fstab
# filesystem | mount point | type | mount option | dump | fsck
/dev/loop15 /snap/gnome-logs/37 squashfs ro,nodev,relatime 0 0
/dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0
/dev/nvme0n1p2 / ext4 rw,relatime,errors=remount-ro,data=ordered 0 0
OlderNewer