root@ubuntu-shanghai:~/mtb# git clone git@github.com:wecodebolivia/adamsubmoduleupdate.git -b staging --recursive
Cloning into 'adamsubmoduleupdate'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 7 (delta 0), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (7/7), done.
Submodule 'mashirozx/odoo_mrp_sale_info' (git@github.com:mashirozx/odoo_mrp_sale_info.git) registered for path 'mashirozx/odoo_mrp_sale_info'
Cloning into '/root/mtb/adamsubmoduleupdate/mashirozx/odoo_mrp_sale_info'...
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 main | |
import ( | |
"encoding/json" | |
"fmt" | |
"os" | |
"strings" | |
"time" | |
"github.com/go-redis/redis" |
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
host_ip=$(cat /etc/resolv.conf |grep "nameserver" |cut -f 2 -d " ") | |
export ALL_PROXY="http://$host_ip:7890" | |
sed -i -E "s/((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\:7890/$host_ip:7890/" ~/.ssh/config |
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
Import-Module posh-git | |
Import-Module oh-my-posh | |
# Set-PoshPrompt -Theme Aliens | |
Set-PoshPrompt -Theme jandedobbeleer | |
Set-PSReadLineOption -PredictionSource History # 设置预测文本来源为历史记录 | |
Set-PSReadlineKeyHandler -Key Tab -Function Complete # 设置 Tab 键补全 | |
Set-PSReadLineKeyHandler -Key "Ctrl+d" -Function MenuComplete # 设置 Ctrl+d 为菜单补全和 Intellisense |
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
<?php | |
error_reporting(E_ERROR); | |
ini_set("display_errors","Off"); | |
$request = "https://api.vultr.com/v1/server/bandwidth?SUBID=YOUR_SUBID&api_key=YOUR_API_KEY"; | |
$serviceInfo = json_decode(file_get_contents($request)); | |
$income = $serviceInfo->incoming_bytes; | |
$outgo = $serviceInfo->outgoing_bytes; | |
$sumin = 0; | |
$sumout = 0; | |
foreach ($income as $invalue) { |
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
@use 'sass:math'; | |
@mixin _flex-gap($gap, $row: true) { | |
$margin: math.div($gap, 2); | |
$transform: -$margin; | |
@if $row { | |
margin-left: $transform; | |
margin-right: $transform; | |
} @else { | |
margin-top: $transform; | |
margin-bottom: $transform; |
OlderNewer