This file contains hidden or 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
| Array.from(document.getElementsByClassName("jsx-4244195770")).forEach(node => { | |
| if (node.innerHTML.includes("Canceled")) | |
| node.remove() | |
| }) | |
| Array.from(document.querySelectorAll(".priceWithLabel .large span strong.jsx-170025548")).map(node => parseFloat(node.innerHTML)).reduce((acc, price) => acc + price) |
This file contains hidden or 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=Route ports | |
| [Service] | |
| ExecStart=/root/route.sh | |
| [Install] | |
| WantedBy=multi-user.target |
This file contains hidden or 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
| Computer Information: | |
| Manufacturer: Unknown | |
| Model: Unknown | |
| Form Factor: Desktop | |
| No Touch Input Detected | |
| Processor Information: | |
| CPU Vendor: AuthenticAMD | |
| CPU Brand: AMD Ryzen 3 1200 Quad-Core Processor | |
| CPU Family: 0x17 |
This file contains hidden or 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
| #Reference: https://github.com/memcached/memcached/blob/master/doc/protocol.txt | |
| puts "\e[31mmembrute by Levitating\e[0m" | |
| require "optparse" | |
| require "socket" | |
| args = { | |
| :port=>11211 |
This file contains hidden or 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 <stdlib.h> | |
| #include <string.h> | |
| //This is a hashmap using an open addressing method | |
| //http://craftinginterpreters.com/hash-tables.html#open-addressing | |
| #include "hashmap.h" | |
| //FNV-1a | |
| static unsigned int hash_string(const char* key, int length) { | |
| unsigned int hash = 2166136261u; |
This file contains hidden or 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
| OUTPUT=$(node projects/yeelight-cli/index.js get_prop power) | |
| LED="/sys/class/leds/input17::scrolllock/brightness" | |
| case $OUTPUT in | |
| "{ id: 0, result: [ 'on' ] }") | |
| POWER=1;; | |
| "{ id: 0, result: [ 'off' ] }") | |
| POWER=0;; | |
| *) |
This file contains hidden or 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/sh | |
| CARGO_VER=1.40.0 | |
| STAGED=$(git diff --name-only --cached | grep '.*\.rs') | |
| PREV_DEFAULT_VERSION=$(rustup show | grep default | head -n1 | sed 's/(default)//') | |
| rustup default $CARGO_VER-x86_64-unknown-linux-gnu |
This file contains hidden or 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
| #define _GNU_SOURCE | |
| #include <dlfcn.h> | |
| #include <unistd.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <fcntl.h> | |
| int new_fds[50][2] = {{0,0}}; |
This file contains hidden or 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
| #define is = | |
| #define plus + | |
| #define min - | |
| #define juist true | |
| #define onjuist false | |
| #define einde end | |
| #define krijgd gets | |
| #define plaatsd puts | |
| #define hak chomp | |
| #define als if |
This file contains hidden or 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
| diff --git a/init.c b/init.c | |
| index 8b32a1a..fd17692 100644 | |
| --- a/init.c | |
| +++ b/init.c | |
| @@ -935,7 +935,7 @@ static int cutorch_isManagedPtr(lua_State *L) | |
| lua_pushboolean(L, 0); | |
| } else { | |
| THCudaCheck(res); | |
| - lua_pushboolean(L, attributes.isManaged); | |
| + lua_pushboolean(L, attributes.type == cudaMemoryTypeManaged); |