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 ( | |
"bytes" | |
"encoding/binary" | |
"encoding/hex" | |
"fmt" | |
"io" | |
"log" | |
"os" |
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
SU_WAP>display system info | |
local telnet flag is , diag source is telnet | |
Begin to collect the data | |
Open device /dev/pts/4 OK! iFile = 5. | |
======================================================= | |
Start run collect command:WAP:display version | |
display version | |
hardware version = 2022.A |
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 Foundation | |
enum ChanError: Error { | |
case ChannelClosed(String) | |
} | |
precedencegroup ChanSendRecv { | |
associativity: left | |
} |
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 dbdriver | |
import ( | |
"context" | |
"errors" | |
"reflect" | |
"cloud.google.com/go/datastore" | |
) |
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
// ==UserScript== | |
// @name Referrer override | |
// @namespace https://example.com | |
// @description Override the document.referrer | |
// @author Lucas Li | |
// @match https://example.com/* | |
// @icon https://www.google.com/s2/favicons?domain=example.com | |
// @grant none | |
// ==/UserScript== |
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 | |
## T620 Fan Script Inspired by https://github.com/NoLooseEnds/Scripts/tree/master/R710-IPMI-TEMP | |
## Require user (non-sudo) access to ipmitool (essentially /dev/ipmi0) | |
## Possible solution: chown :sudo `which ipmitool`; chmod u+s `which ipmitool` | |
## To disable dynamic fan control: ipmitool -I lanplus -H $IDRACIP -U $IDRACUSER -P $IDRACPASSWORD raw 0x30 0x30 0x01 0x00 | |
IDRACIP="192.168.1.xxx" | |
IDRACUSER="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
/* | |
Copy & paste from grpc-gateway JSONPb marshaler. | |
Only the ContentType(), Marshal() and Delimiter() was modified. | |
Don't enable indent, it will break SSE. | |
*/ | |
package sse | |
import ( | |
"bytes" | |
"encoding/json" |
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
from keras.models import Model | |
from keras.layers import Conv2D, Input, UpSampling2D, Lambda, Layer | |
from keras.optimizers import * | |
from keras import backend as K | |
from keras.applications import VGG19 | |
from ops import * | |
class UNet(): | |
def __init__(self): | |
self.imgshape = (None, None, 3) |
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 dummy | |
import ( | |
"fmt" | |
"os" | |
"os/signal" | |
"syscall" | |
"testing" | |
"time" |
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 ( | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"strings" | |
"sync" | |
) |
NewerOlder