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 Leetcode Timer | |
// @version 1.2 | |
// @grant none | |
// @include *://*leetcode.com/problems/* | |
// @author ketankr9 | |
// @namespace https://greasyfork.org/users/564674 | |
// @description Start a timer whenever a user loads a problem at Leetcode.com | |
// ==/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 | |
echo $(($(cat /proc/net/dev | awk '{print $2}' | tail -n1) + $(cat /proc/net/dev | awk '{print $2}' | tail -n2 | head -n1))) |
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
TOKEN='****DECLARE YOUR TOKEN HERE****' | |
import time | |
import random | |
import telepot | |
from telepot.loop import MessageLoop | |
import requests | |
from datetime import datetime, timezone, date | |
import pytz | |
""" |
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
#sudo systemctl edit --force --full iitlogin.service | |
#enter the below script and make sure ```sudo chmod u+x /usr/local/bin/forti``` | |
---------------------------------------------------- | |
[Unit] | |
Description=IIT Lan Login | |
Wants=network-online.target | |
After=network-online.target | |
[Service] | |
Type=simple |
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
#$$$ cat /etc/dovecot/dovecot.conf | |
## Dovecot configuration file | |
# If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration | |
# "doveconf -n" command gives a clean output of the changed settings. Use it | |
# instead of copy&pasting files when posting to the Dovecot mailing list. | |
# '#' character and everything after it is treated as comments. Extra spaces | |
# and tabs are ignored. If you want to use either of these explicitly, put the |
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
#!/usr/bin/env bash | |
USED=$(ssh [email protected] nvidia-smi | head -n9 | tail -n1 | awk {'print $9'}) | |
echo "GPU:$USED" | |
echo "---" | |
echo "$USED/12195MiB" | |
#SCRIPT_STATE=$(ssh [email protected] 'pgrep -fa "python\sNeuralStyleTransfer"') | |
#if [ -z "$SCRIPT_STATE" ]; then | |
# echo "Exit" | |
#else |
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 java.io.*; | |
import java.net.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
class SimpleTCPClient | |
{ | |
private static Socket socket; | |
private static InputStream input; |
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
-----BEGIN CERTIFICATE----- | |
MIIDxDCCAqygAwIBAgIJAPzAhlECYUXxMA0GCSqGSIb3DQEBCwUAMHcxCzAJBgNV | |
BAYTAklOMQswCQYDVQQIDAJVUDEOMAwGA1UEBwwFTm9pZGExEDAOBgNVBAoMB1Nh | |
bXN1bmcxDDAKBgNVBAsMA0lNUzEMMAoGA1UEAwwDd3M0MR0wGwYJKoZIhvcNAQkB | |
Fg50ZXN0QGdtYWlsLmNvbTAeFw0xODA2MDUxNzI1MjNaFw0yMzA2MDUxNzI1MjNa | |
MHcxCzAJBgNVBAYTAklOMQswCQYDVQQIDAJVUDEOMAwGA1UEBwwFTm9pZGExEDAO | |
BgNVBAoMB1NhbXN1bmcxDDAKBgNVBAsMA0lNUzEMMAoGA1UEAwwDd3M0MR0wGwYJ | |
KoZIhvcNAQkBFg50ZXN0QGdtYWlsLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEP | |
ADCCAQoCggEBAND0QRodc1yM8Vu9BImDdCqpeBe0OFC9alZDx9fSLmAA0fndXO4Z | |
4iSdbKbbDUnlikNvVwydy/UY/xyZ5zSczJBPuZwCKiaMqEFsi4t/ybJN4UDYaJqX |
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 | |
# start in monitor mode | |
airmon-ng start wlan0 | |
# dump all traffic data | |
airodump-ng wlan0mon | |
# start capturing packets, looking for deauth |
NewerOlder