This file contains 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
[Desktop Entry] | |
Categories=System;Utility; | |
Comment[zh_CN]= | |
Comment= | |
Exec=/home/farseerfc/try.sh | |
GenericName[zh_CN]=try | |
GenericName=try | |
MimeType= | |
Name[zh_CN]=try | |
Name=try |
This file contains 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
+ rm -rf testimage testmount | |
+ mkdir testmount | |
+ fallocate -l 1G testimage | |
+ mkfs.ext4 testimage | |
mke2fs 1.45.6 (20-Mar-2020) | |
Discarding device blocks: 4096/262144 done | |
Creating filesystem with 262144 4k blocks and 65536 inodes | |
Filesystem UUID: f4746471-fb36-4a46-8b05-258557c24a0c | |
Superblock backups stored on blocks: | |
32768, 98304, 163840, 229376 |
This file contains 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
#!/bin/bash | |
set -x | |
# first invoke make to get a log of dependencies | |
LANG=C make -Bnd > make-dag.log | |
# run makefile2graph | |
cat make-dag.log | makefile2graph > make-dag.dot | |
sed "1a ranksep=5; nodesep=5;" -i make-dag.dot | |
twopi -Tsvg make-dag.dot -o make-dag.svg |
This file contains 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
from matplotlib import pyplot as plt | |
from functools import lru_cache | |
SIEVE = 1000 | |
@lru_cache() | |
def sieve(limit): | |
factors = [2] * limit | |
for base in range(2, int(limit**0.5 + 1)): | |
# if factors[base] == 2: |
This file contains 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
all: main libb.so.1.0 liba.so.1.0 | |
libb.so.1.0: b.c | |
gcc --shared -Wl,-soname,libb.so.1 -o libb.so.1.0 b.c | |
ln -sr libb.so.1.0 libb.so.1 | |
liba.so.1.0: a.c | |
gcc --shared -Wl,-soname,liba.so.1 -o liba.so.1.0 a.c | |
ln -sr liba.so.1.0 liba.so.1 |
This file contains 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
#!/bin/bash | |
## hook to check ver match tag before push | |
VERSIONFILE="gitversion.h" | |
tagref=$(grep -Po 'refs/tags/([^ ]*) ' </dev/stdin | head -n1 | cut -c11- | tr -d '[:space:]') | |
if [[ "$tagref" == "" ]]; then | |
## pushing without --tags , exit normally | |
exit 0 |
This file contains 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
[package] | |
name = "rustqt" | |
build = "build.rs" | |
version = "0.1.0" | |
authors = ["Jiachen Yang <[email protected]>"] | |
[dependencies] | |
[dependencies.rustcxx_plugin] | |
git = "https://github.com/google/rustcxx.git" |
I hereby claim:
- I am farseerfc on github.
- I am farseerfc (https://keybase.io/farseerfc) on keybase.
- I have a public key ASAfsBGLbRZcnLDyBAkAxdrJh48z-JYrzvcV2HH6T2y6kQo
To claim this, I am signing this object:
This file contains 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
# Maintainer: Jiachen Yang <[email protected]> | |
# AUR Maintainer: Swift Geek | |
# AUR Maintainer: Timothée Ravier <[email protected]> | |
# AUR Maintainer: Stefan Tatschner <[email protected]> | |
# Contributor: Swift Geek | |
# Contributor: Pablo Olmos de Aguilera C. pablo+aur at odac dot co | |
_pkgname="powerline" | |
pkgbase="powerline" | |
pkgname=("powerline" "powerline2" "python-powerline" "python2-powerline" "powerline-common" "powerline-vim" "powerline-fonts") |
NewerOlder