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 gzip | |
import json | |
import os | |
dir = "stats" | |
print('version, lines') | |
for n in sorted(os.listdir(dir)): | |
with gzip.open(os.path.join(dir, n)) as f: |
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
database = "db" | |
base_url = "https://setbac.tv" | |
[session] | |
secret = "RANDOM_DATA" | |
[oauth2] | |
redirect_path = "api/auth/redirect" | |
[oauth2.login] |
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 Youtube Shorts | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description Modify the visiblity of Youtube Shorts | |
// @author John-John Tedro <[email protected]> | |
// @match https://www.youtube.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=youtube.com | |
// @grant GM_registerMenuCommand | |
// @grant GM_setValue |
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
--- a.txt 2022-12-07 14:31:31.870270000 +0100 | |
+++ b.txt 2022-12-07 14:31:58.517728400 +0100 | |
@@ -16,34 +16,40 @@ | |
.zero 1 | |
.zero 1 | |
.LCPI0_1: | |
- .long 2147483648 | |
- .long 2147483648 | |
- .long 2147483648 | |
- .long 2147483648 |
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 std::path::Path; | |
use anyhow::{Context, Result}; | |
use thiserror::Error; | |
#[derive(Debug, Error)] | |
enum Error { | |
#[error("{0}:{1}:{2}: expected more input")] | |
Expected(Box<Path>, usize, usize), | |
#[error("{0}:{1}:{2}: bad 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
//! An intrusive linked list. | |
use std::ptr; | |
/// A node in the intrusive [LinkedList]. | |
pub struct Node<T> { | |
next: Option<ptr::NonNull<Node<T>>>, | |
prev: Option<ptr::NonNull<Node<T>>>, | |
pub value: T, | |
} |
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
cargo : Compiling rune v0.6.16 (D:\Repo\rune\crates\rune) | |
At line:1 char:1 | |
+ cargo run --example tokio_spawn 2> out.txt | |
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
+ CategoryInfo : NotSpecified: ( Compiling ru...ne\crates\rune):String) [], RemoteException | |
+ FullyQualifiedErrorId : NativeCommandError | |
error[E0277]: `std::ptr::NonNull<runestick::shared::SharedBox<std::string::String>>` cannot be sent between threads safely | |
--> crates\rune\examples\tokio_spawn.rs:15:32 | |
| |
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
state("ModernWarfare") | |
{ | |
string64 map : 0xB0A1E08; | |
// Need to use this pointer instead of the address available in modules since | |
// this changes correctly regardless of how you save/load. | |
string64 checkpoint : 0xB297DB8, 0x20, 0x108; | |
// shit the bed on hometown and forward. | |
// bool missiontext : 0xB2E6B94; | |
bool missiontext : 0xE7A70DC; | |
bool prompts : 0xB2E5EA4; |
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
state("ModernWarfare") | |
{ | |
string255 map : 0xAE9E980; | |
string255 checkpoint : 0x11821030; | |
bool cinematics : 0xD9D3110; | |
} | |
startup { | |
settings.Add("proxywar", true, "Fog Of War"); | |
settings.Add("piccadilly", true, "Piccadilly"); |
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 futures::Future; | |
use warp::Filter; | |
#[tokio::main] | |
async fn main() { | |
let r1 = warp::path("index").and_then(route1); | |
let r2 = warp::path::param().and_then(route2); | |
let routes = r1.recover(recover).or(r2.recover(recover)); |
NewerOlder