1.查看远程仓库地址 $ git remote -v 2.使用git remote set-url重置远程仓库地址 $ git remote set-url origin 仓库B地址 3.再次查看仓库地址看是否重置成功 $ git remote -v 4.git push强制更新 $ git pus ...
分类:
其他好文 时间:
2020-04-22 13:11:33
阅读次数:
49
#!/bin/bash #这个是shell!替换配置文件并发布,然后配置文件还原。 if [ x$1 != x ] then echo '开始修改bootstrap.yml' sed -i "" "s/active:[ ].*/active: $1/g" web/src/main/resources ...
分类:
编程语言 时间:
2020-04-21 18:24:50
阅读次数:
86
import Vue from 'vue' import Router from 'vue-router' /** * 路由自动注册 */ const requireComponent = require.context( // 其组件目录的相对路径 '@/view/', // 是否查询其子目录 t ...
分类:
其他好文 时间:
2020-04-21 18:07:27
阅读次数:
67
server package main import ( "fmt" "net" "os" "time" ) func SHandleError(err error, when string) { if err != nil{ fmt.Println("err=", err, when) os.Ex ...
分类:
编程语言 时间:
2020-04-21 16:53:33
阅读次数:
109
问题: 给定一个非负整数,求只交换一次某两位的数字,使得值最大,求该最大值。 Example 1: Input: 2736 Output: 7236 Explanation: Swap the number 2 and the number 7. Example 2: Input: 9973 Out ...
分类:
其他好文 时间:
2020-04-21 15:26:28
阅读次数:
63
0x00:写在前面 最近把ctf捡起来 好久没写题目了,准备刷刷ctf题目 冲啊!!! 0x01:解题思路 首先打开页面 查看源代码发现线索。 打开source.php进行代码审计。 <?php highlight_file(__FILE__); class emmm { public static ...
分类:
其他好文 时间:
2020-04-21 12:41:09
阅读次数:
87
class Vecter3: def_init_(self,x=0,y=0,z=0): self.X=x self.Y=y self.Z=z def_add_(self,n): r=Vecter3() r.X=self.X+n.X r.Y=self.Y+n.Y r.Z=self.Z+n.Z retu ...
分类:
其他好文 时间:
2020-04-21 09:33:02
阅读次数:
947
def quicksort(array): if len(array)<2: return array #基线条件为空或只包含一个元素 else: pivot = array[0] less = [i for i in array[1:] if i<=pivot] greater = [i for ...
分类:
编程语言 时间:
2020-04-20 12:12:20
阅读次数:
60
SpringBoot 的 Maven plugin能够将 SpringBoot 应用打包为可执行的 jar 或 war 包,然后以通常的方式如 java -jar 来运行 SpringBoot 应用。Spring Boot Maven plugin 的 5个 Goals,最主要的就是能够将 mvn ... ...
分类:
编程语言 时间:
2020-04-20 01:28:06
阅读次数:
89
Ubuntu 20.04 LTS 版本还有不到一个月就发布了,Ubuntu 在这一个版本中对视觉效果作出了大变动,同时在性能方面也有所提高。 你可以下载每日构建(daily build)版并进行重新安装,如果你正在使用的是 Ubuntu 18.04 或 Ubuntu 19.10,也可以在现有系统的基 ...
分类:
系统相关 时间:
2020-04-20 01:14:02
阅读次数:
293