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
[Unit] | |
Description=XMRig Daemon | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/root/xmrig --config=/root/xmrig-config.json | |
Restart=always | |
User=root |
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
cd /usr/share/doc/NVIDIA_GLX-1.0/samples/ | |
bzip2 -d nvidia-persistenced-init.tar.bz2 | |
tar xopf nvidia-persistenced-init.tar | |
cd nvidia-persistenced-init/ | |
./install.sh | |
sudo nvidia-smi -lgc 1400 | |
sudo nvidia-smi -pl 200 |
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
fae mlxi2c set_fan /FAN1/FAN 1 15 | |
fae mlxi2c set_fan /FAN1/FAN 2 15 | |
fae mlxi2c set_fan /FAN2/FAN 1 15 | |
fae mlxi2c set_fan /FAN2/FAN 2 15 | |
fae mlxi2c set_fan /FAN3/FAN 1 15 | |
fae mlxi2c set_fan /FAN3/FAN 2 15 | |
fae mlxi2c set_fan /FAN4/FAN 1 15 | |
fae mlxi2c set_fan /FAN4/FAN 2 15 | |
fae mlxi2c set_fan /PS1/FAN 1 15 |
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 | |
sver=`cat /etc/debian_version |awk -F"." '{print $1}'` | |
currentDebianVersion=${sver} | |
case "$sver" in | |
12 ) | |
sver="bookworm" | |
;; | |
11 ) | |
sver="bullseye" |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 4.4.70 Kernel Configuration | |
# | |
CONFIG_64BIT=y | |
CONFIG_X86_64=y | |
CONFIG_X86=y | |
CONFIG_INSTRUCTION_DECODER=y | |
CONFIG_PERF_EVENTS_INTEL_UNCORE=y | |
CONFIG_OUTPUT_FORMAT="elf64-x86-64" |
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
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
<+space:: | |
return |
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
#include "keymap_common.h" | |
#include "led.h" | |
#include "action_layer.h" | |
/* | |
* HHKB Layout | |
*/ | |
const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |
/* 0: Default layer | |
* ,-----------------------------------------------------------. |
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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
function xnrequest(retext,begin,end,url,pids){ | |
for(var i=0;i<pids.length;i++){ | |
var pid = pids[i].getAttribute("id").replace(retext,""); | |
var data=begin+pid+end; | |
new XN.NET.xmlhttp({url:url + "?" + pid,data:data,onSuccess:function(){}, | |
onError:function(){ | |
alert("删除错误"); | |
}});}} | |
var pids = document.getElementsByClassName("user"); | |
var url = "http://page.renren.com/exitfans" |
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
var sids = document.getElementById("my-status-list").getElementsByTagName("li"); | |
var url = "http://status.renren.com/doing/deleteDoing.do" | |
for(var i=1;i<sids.length;i++){ | |
var sid = sids[i].getAttribute("status-id"); | |
var formData = new FormData(); | |
formData.append('id',""+sid); | |
formData.append('requestToken', ""+nx.user.requestToken); | |
formData.append('_rtk', ""+nx.user._rtk); | |
var xhr = new XMLHttpRequest(); | |
xhr.open("POST",url, true); |
NewerOlder