TCCMU
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于

hexo使用git管理

生成密钥及配置(略)网上教程有很多 生成站点并推送到githubhexo g -d 推送站点源码到github.gitignore123456.DS_StoreThumbs.dbdb.json*.lognode_modules/public/ 123git add .git commit -m 'hexo 源文件推送'git push origin hexoSource 远
2021-08-20
#hexo #git #github

Manjaro配置管理

参考:manjaro 切换国内源及软件安装 同步时间时间不准会造成SSL验证失败等一系列问题。同步方式如下:(https://wiki.manjaro.org/index.php/System_Maintenance#Time_and_Date) 12user $ timedatectl set-ntp trueuser $ sudo systemctl enable --now systemd-
2021-08-20
#Manjaro

R3300-M安装运行Manjaro ARM

提要这个盒子硬件没啥好说的了,前面介绍过。之前用它运行Armbian 20.10 Focal 没问题,但是balbes150弃坑后无人接手,前景不明,于是迁移到了Manjaro ARM。目前来看社区支持比较完善,更新及时,测试内核5.13(linux-aml)运行成功。 镜像选择了Manjaro ARM 21.04。为什么没有选择更新的版本,比如21.06,还得从内核提起。21.04搭载主线5.1
2021-08-19
#Manjaro #GXBB #S905 #S905M-B #BestTV #Arm

bash - pdftk删除页码脚本

pdftk删除页码脚本最近把《Linux命令行与shell脚本编程大全》翻了一遍,想演练一下,于是写出了下面这个脚本,用于调用pdftk删除给定页码生成新文档。编写调试过程中,对bash函数传参、位置参数调用等概念有了更深入的理解,特别是shift,用于处理数量未知的位置参数格外好用。 pdftool.sh1234567891011121314151617181920212223242526272
2021-05-19
#bash #递归

bash - 递归

bash递归函数测试recursion_test.sh12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455#!/bin/bash# using recursionfunction factorial { if [ $1 -lt 1 ]
2021-04-23
#bash #递归

bash - 数组

bash中简单函数数组传递array_test.sh12345678910#!/bin/bash# array variable to function testfunction testit {local newarraynewarray="$@"echo "The new array value is: ${newarray[*]}&
2021-04-22
#bash #函数

bash - bc

bash中简单的bc计算bc_test.sh1234567891011121314#!/bin/bashvar1=3.14var2=5.2var3=$(bc << EOFscale = 4a1 = $var1 + $var2a2 = $var1 * $var2a1 + a2EOF)echo The final result is $var3 结果毫无悬念,24.668。注意这里用到了
2021-04-09
#bash #bc

bash - for

bash中简单的for循环1234567891011#!/bin/bash for_test.shsum=0i=$(echo {1..5})echo "The content of list:$i"for var in $ido echo "The current value is:$var" sum=$[$sum+$var]
2021-04-08
#bash #for

揣爪子的猫

它被大家叫做“咪咪”,今天也一早就守在门口~
2021-03-25
#猫 #田园猫

R3300-M玩机记录

拆机图 盒子与遥控器合影 硬件配置处理器:Amlogic S905M-B,4核1.5GHz 存储:4GB EMMC 内存:1GB DDR3 有线网口:100M 无线网卡(2.4G):RTL8189ETV TF卡槽:1个 USB接口(2.0):1个microUSB,1个A口 HDMI接口:1个 AV接口:1个(RET键在接口底部) 散热:优秀 电源:12V 1A,5.5mmX2.5mm 蓝牙:无
2021-03-24
#GXBB #S905 #S905M-B #BestTV #ATV
1…78910

搜索

Hexo Fluid