分类:代码 相关文章

Linux添加普通权限账号并授予root权限

命令创建账号和密码 [prism lang=””]adduser Mysticbinary #添加一个Mysticbinary用户 passwd Mysticbinary # 输入密码[/prism] 授予可以切换root的权限 修改/etc/sudoers文件。 [prism lang=””]vim /etc/sudoers # Allow root to run any commands anywhere root ALL=(ALL) ALL Mysticbinary ALL=(ALL) ALL[/prism] 修改完后,就可以用Mysticbinary帐号登录,然后用命令 su – 或者……

继续阅读»»»

腾讯云按天续费详细教程

进入网页 https://tencentcloud.pages.dev/ 依照32的车为例,比如我买了一台然后可以选择退款或者退款因为没差多少钱。记录你的小鸡代号就行。 香港: [prism lang=””]{“raw_goodsData”: [{“goodsCategoryId”: 1024708,”goodsNum”: 1,”payMode”: 1,”regionId”: 5,”goodsDetail”: {“productCode”: “p_lighthouse”,”subProductCode”: “sp_lighthouse_bundle2022_gen_lin_01″,”pid”:……

继续阅读»»»

俄罗斯三毛VPS改年付保姆级教程

第一步:登录 获取 API key https://ruvds.com/en-rub/my/settings/api 第二步:获取sessionToken https://ruvds.com/api/logon/?key=填写上一步获取到的APIkey&username=填写三毛登录账号&password=填写三毛登录密码&endless=0 例子(替换自己信息后浏览器打开):https://ruvds.com/api/logon/?key=870D********************411AB&username=123456@qq.com&pass……

继续阅读»»»

ruvds毛子鸡DD方法,暂时只测试了debian9

1:apt-get install net-tools  (安装网络工具包) 2:ifconfig -a  (查看本机公网IP地址) 3:route -n   (查看网关地址) 4:用萌新的DD包和脚本,默认密码:MoeClub.org 举例的是Debian9: [prism lang=””]bash <(wget –no-check-certificate -qO- ‘https://moeclub.org/attachment/LinuxShell/InstallNET.sh’) -d 9 -v 64 -a –ip-addr 194.87.xxx.xxx(改成ifconfig获取……

继续阅读»»»

关闭debian的自动休眠

默认开启的自动休眠很难受,动不动就断网 执行以下命令即可 systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target 检查是否成功关闭 systemctl status sleep.target 出现这个就是关闭成功了

◷2022/02/17   @猫饭   ▤代码   ⚑

OVZ开启BBR脚本

lkl curl https://raw.githubusercontent.com/linhua55/lkl_study/master/get-rinetd.sh | bash https://github.com/linhua55/lkl_study nanqinlang haproxy分支 Debian8+ wget https://github.com/tcp-nanqinlang/lkl-haproxy/releases/download/1.1.1/tcp_nanqinlang-haproxy-centos.sh bash tcp_nanqinlang-haproxy-debian……

继续阅读»»»

修改这3个设置,让Youtube为你跑18万网速,油管视频提速设置

相关介绍 标题夸张了一下下哈,借用了一个网络梗。YouTube 视频连接速度想要达到 18W+还是不容易的,要本地和工具的速度都好才行。俗话讲:“世界加钱可及。”但即使没有较好的本地宽带线路,也没有比较顺畅的工具,修改以下几个设置,或许也可以让你的 YouTube 观看体验改善一些。   一、Chrome 浏览器关闭 QUIC 首先介绍一下,QUIC(Quick UDP Internet Connection)是谷歌制定的一种基于 UDP 的低时延互联网传输层协议。与 TCP 协议相比,UDP 协议更为轻量,错误校验更少,这意味着 UDP 的传输效率更高,但是可靠性不如 TCP 协议……

继续阅读»»»

DEBIAN源更新报错解决方法

今天更新debian 10的源的时候,突然报错,主要是说源从稳定源切换到不稳定源,连忙查了一下原因。 ‘Suite’ value from ‘stable’ to ‘oldstable’ root@debian:# apt-get update Get:1 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB] Get:2 http://deb.debian.org/debian buster InRelease [122 kB] Get:3 http://deb.debian.org/debi……

继续阅读»»»

◷2021/12/8   @猫饭   ▤代码   ⚑

wordpress[WP]文章搜索结果自动提交到百度代码

1到百度资源平台提交网址申请主动提交token的网址 2在wp后台外观主题编辑处找到search.php文件修改编辑 3添加自动提交代码 <?php if ( have_posts() ){ $api = ‘http://data.zz.baidu.com/urls?site=www.xxx.com&token=xxxxx’; //echo ‘11111111111’; $pushurl = ‘http://’.$_SERVER[‘HTTP_HOST’].’/?s=’.get_search_query(); $ch = curl_init(); $options = array(……

继续阅读»»»

◷2021/11/14   @猫饭   ▤代码   ⚑

解决执行 composer 抛出 Killed

1、报错如下 root@test2:/work/usrc$ composer require qcloud/cos-sdk-v5 ./composer.json has been updated The “extra.asset-installer-paths” option is deprecated, use the “config.fxp-asset.installer-paths” option Loading composer repositories with package information Updating dependencies (including require-……

继续阅读»»»

◷2021/10/16   @猫饭   ▤代码   ⚑