Skip to content

Instantly share code, notes, and snippets.

View anshumanv's full-sized avatar
🌊
水の呼吸十一の型

Anshuman Verma anshumanv

🌊
水の呼吸十一の型
View GitHub Profile

Keybase proof

I hereby claim:

  • I am anshumanv on github.
  • I am anshumanv (https://keybase.io/anshumanv) on keybase.
  • I have a public key whose fingerprint is E841 ADFD 8934 5689 34C4 DFFA 0D98 41F6 82BB EC4E

To claim this, I am signing this object:

@anshumanv
anshumanv / perm.md
Created July 31, 2019 03:53
Recover file permissions recursively

After google that, it is due to the write permission of the others (as the red mark in the picture). There are 2 ways to fix this annoying coloring.

Change the bash color setting: refer to the Reference 2 Use the chmod to recover the directory permission to default 755, or use below command to recursively set all directory to default 755

$ find . -type d -print0 | xargs -0 chmod 755

@anshumanv
anshumanv / test.sol
Created January 10, 2019 13:53
Playing around with solidity
pragma solidity >=0.4.22 <0.6.0;
contract WorkDone {
address owner;
struct Donation {
address fromAddress;
address toAddress;
string message;
@anshumanv
anshumanv / .zshrc
Created December 2, 2018 04:55
ZSH Config
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/anshumanv/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
@anshumanv
anshumanv / GSoC 18 - anshumanv.md
Last active August 11, 2018 14:46
GSoC 18 Work Product - anshumanv
@anshumanv
anshumanv / raspi_commands.txt
Last active July 17, 2018 19:12
raspi commands
Find ip - cat /var/lib/misc/dnsmasq.leases
@anshumanv
anshumanv / afcc.md
Last active February 24, 2018 04:05
Awesome fiddles, codepens, c9s
@anshumanv
anshumanv / npm-i-without-publish.sh
Created February 22, 2018 04:21
Install npm modules without publishing
npm install git+ssh://git@github.com/your-company/react-scripts-fork
@anshumanv
anshumanv / Codeheat 2017-18 work_product.md
Last active January 31, 2018 09:55
FOSSASIA Codeheat 2017-18 - anshumanv - Work Product
const timeTaken = (func,...args) => {
var t0 = performance.now(), r = func(...args);
console.log(performance.now() - t0);
return r;
}
// timeTaken(Math.pow, 2, 10) -> 1024 (0.010000000009313226 logged in console)