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
[ 50%] Building CXX object skeleton/CMakeFiles/SkeletonPass.dir/Skeleton.cpp.o | |
In file included from /usr/local/include/llvm/ADT/ArrayRef.h:12, | |
from /usr/local/include/llvm/ADT/STLExtras.h:20, | |
from /usr/local/include/llvm/PassAnalysisSupport.h:25, | |
from /usr/local/include/llvm/Pass.h:347, | |
from /home/user/llvm-pass-tutorial/skeleton/Skeleton.cpp:1: | |
/usr/local/include/llvm/ADT/Hashing.h:127:55: error: ‘optional’ in namespace ‘std’ does not name a template type | |
127 | template <typename T> hash_code hash_value(const std::optional<T> &arg); | |
| ^~~~~~~~ | |
/usr/local/include/llvm/ADT/Hashing.h:127:50: note: ‘std::optional’ is only available from C++17 onwards |
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 ctypes | |
import os | |
import sys | |
PROCESS_ALL_ACCESS = (0x000F0000 | 0x00100000 | 0xFFF) | |
def resolve_function(dll, func): | |
kernel32 = ctypes.windll.kernel32 | |
kernel32.GetModuleHandleW.argtypes = [ctypes.c_wchar_p] | |
kernel32.GetModuleHandleW.restype = ctypes.c_void_p |
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
# Go to https://console.developers.google.com/apis/api/sheets.googleapis.com/ | |
# Grant access to Spreadsheet API, Create credentials for Service Account | |
# as Editor, download keyfile JSON | |
import gspread | |
import datetime | |
import time | |
from oauth2client.service_account import ServiceAccountCredentials | |
from idaapi import * | |
from idc import * |
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 pygame, sys, time, numpy as np | |
from pygame.locals import * | |
BACKGROUND_COLOR = (255, 255, 255) | |
CAR_COLOR = (0, 0, 255) | |
SCREEN_WIDTH, SCREEN_HEIGHT = 800, 600 | |
class Car(object): | |
def __init__(self): | |
self.velocity = np.zeros(2) |
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 sys | |
import re | |
import time | |
import json | |
import requests | |
base_url = "https://sdarot.rocks" | |
show_url = "https://sdarot.rocks/watch/3859-%D7%94%D7%9B%D7%9C%D7%94-%D7%9E%D7%90%D7%99%D7%A1%D7%98%D7%A0%D7%91%D7%95%D7%9C-istanbullu-gelin/" | |
SLEEP_BETWEEN_REQS = 0.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
#[macro_use] | |
extern crate clap; | |
use std::net::{TcpStream, SocketAddr}; | |
use std::time::Duration; | |
use std::thread; | |
use std::sync::{Arc, Mutex, mpsc::channel}; | |
use clap::{App, Arg}; | |
enum Job { |