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
pragma solidity 0.8.21; | |
//vulnerable contract, do not use | |
contract EtherStore { | |
mapping(address => uint256) public balances; | |
constructor() payable { | |
require(msg.value == 1 ether); | |
} |
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 os | |
import tensorflow as tf | |
from tensorflow import keras | |
from timeit import default_timer as timer | |
import matplotlib.pyplot as plt | |
import numpy as np | |
IMAGE_DATA_FORMAT = 'channels_last' | |
keras.backend.set_image_data_format(IMAGE_DATA_FORMAT) |
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
set expandtab | |
set shiftwidth=4 | |
set makeprg=pylint\ --rcfile=/dev/null\ --reports=n\ --msg-template=\"{path}:{line}:{column}:\ {msg_id}\ {symbol},\ {obj}\ {msg}\"\ \%\ \\\|\ grep\ -E\ '.*:\ [CWEY]'\ \\\|\ sort\ -k1,3 | |
set errorformat=%f:%l:%c:\ %t%n\ %m |
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
#include <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#define OF 36 | |
#define ROWS 8 | |
char lookup[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; | |
void print(char *buf) { | |
int n; |
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
#include <stdlib.h> | |
#include <stdio.h> | |
extern char **environ; | |
int main(void) { | |
int i = 0; | |
while (environ[i]) { | |
puts(environ[i]); | |
i++; |
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
.text | |
.global _start | |
_start: | |
#initialize | |
#can ignore maybe | |
xor %bh, %bh | |
sub $0xffff, %esp | |
movl %esp, %ebp |
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 | |
# pomf.se uploader | |
# requires: curl | |
dest_url='http://pomf.se/upload.php' | |
return_url='http://a.pomf.se' | |
if [[ -n "${1}" ]]; then | |
file="${1}" | |
if [ -f "${file}" ]; then |
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 | |
# pomf.se uploader | |
# requires: curl | |
dest_url='http://pomf.se/upload.php' | |
return_url='http://a.pomf.se' | |
if [[ -n "${1}" ]]; then | |
file="${1}" | |
if [ -f "${file}" ]; then |