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 rustc_lexer::{tokenize, Token, TokenKind}; | |
use std::io::{self, Read}; | |
enum Cmd { | |
Print(usize), | |
Space, | |
Skip(usize), | |
} | |
fn layout(toks: impl Iterator<Item = Token>) -> impl Iterator<Item = Cmd> { |
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 | |
set -x | |
PROTON="GE-Proton8-4" | |
APPID=813780 | |
CAPTURE_AGE_VERSION=1.6.1 | |
STEAM_PATH="${HOME}/.steam" | |
STEAMAPPS="${STEAM_PATH}/root/steamapps" | |
COMPATIBILITY_TOOLS="${STEAM_PATH}/root/compatibilitytools.d" |
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
1. No racism, sexism, bigotry, hate speech, profanity towards people or groups, and other attacks on people or groups. | |
2. No sharing of pirated software or encourage piracy in any channel. | |
3. No intent to abuse or trigger behaviour related to mental issues (e.g. autism spectrum, borderline, depression, dysphoria, stress etc.) | |
4. No discussions about politics/religion/ideology | |
5. There is a restricted area focused on Reverse Engineering; Invitation to this area can only be received through current members of that area. The best way to gain access is to show your previous work to one of these members. A mod has to approve any request. | |
6. Don't beg to be added to the restricted area. | |
7. Don't repeatedly ask the same question, people will update you when they know more. | |
8. Secret channels are marked with 🤐, don’t share information with people without access to them. | |
9. Doing the same work should be discouraged. Working together should be applauded. | |
10. New channels for projects can be made when requested by at le |
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
; IMPORTANT: Follow the instructions at | |
; https://docs.godotengine.org/en/stable/getting_started/workflow/export/changing_application_icon_for_windows.html | |
; and make sure the "Options > Application > Product Version" field is set | |
; in Godot's Export dialog before exporting your EXE file. Otherwise, | |
; Inno Setup will mistake the Godot version for your game's version. | |
; | |
; You can check whether you were successful by examining the .EXE file's | |
; properties dialog on Windows, or by using the `peres -v` command from `pev` | |
; on Linux. | |
; |
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
# Attempts to demangle all mangled symbols in the current program using the Rust | |
# mangling schemes, and replace the default symbol and function signature | |
# (if applicable) with the demangled symbol. | |
# | |
# License: MIT OR Apache-2.0 | |
#@author Jack Grigg <[email protected]> | |
#@category Symbol | |
from ghidra.app.util.demangler import ( | |
DemanglerOptions, |
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
// Basic Types | |
let id: number = 5 | |
let company: string = 'Traversy Media' | |
let isPublished: boolean = true | |
let x: any = 'Hello' | |
let ids: number[] = [1, 2, 3, 4, 5] | |
let arr: any[] = [1, true, 'Hello'] | |
// Tuple |
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 rand::{Rng, thread_rng}; | |
const ZALGO_UP: [char; 50] = | |
[ | |
'\u{030e}', /* ̎ */ '\u{0304}', /* ̄ */ '\u{0305}', /* ̅ */ | |
'\u{033f}', /* ̿ */ '\u{0311}', /* ̑ */ '\u{0306}', /* ̆ */ '\u{0310}', /* ̐ */ | |
'\u{0352}', /* ͒ */ '\u{0357}', /* ͗ */ '\u{0351}', /* ͑ */ '\u{0307}', /* ̇ */ | |
'\u{0308}', /* ̈ */ '\u{030a}', /* ̊ */ '\u{0342}', /* ͂ */ '\u{0343}', /* ̓ */ | |
'\u{0344}', /* ̈́ */ '\u{034a}', /* ͊ */ '\u{034b}', /* ͋ */ '\u{034c}', /* ͌ */ | |
'\u{0303}', /* ̃ */ '\u{0302}', /* ̂ */ '\u{030c}', /* ̌ */ '\u{0350}', /* ͐ */ |
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::{Async, Future, Poll}; | |
use tokio::io::{AsyncRead, AsyncWrite, Error, ReadHalf, WriteHalf}; | |
use tokio::net::TcpStream; | |
use warp::{path, Filter, Stream}; | |
struct Receiver { | |
rx: ReadHalf<TcpStream>, | |
} | |
impl Stream for Receiver { | |
type Item = String; |
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
[opcache] | |
; Determines if Zend OPCache is enabled | |
opcache.enable=1 | |
; Determines if Zend OPCache is enabled for the CLI version of PHP | |
;opcache.enable_cli=1 | |
; The OPcache shared memory storage size. | |
opcache.memory_consumption=512 |
NewerOlder