gpg --gen-key
gpg --list-keys
require "socket" | |
require "ipaddr" | |
getifaddr = Socket.getifaddrs | |
getifaddr.each do | interface | | |
if interface.addr | |
if interface.addr.ipv4? | |
puts interface.name, interface.addr.ip_address | |
end |
class Frame | |
def Frame::this(input) | |
len = input.length | |
puts "-"*(len+2) | |
puts "|"+input+"|" | |
puts "-"*(len+2) | |
end | |
def Frame::side(input) |
// Raw data | |
NSString *appname = @"<NSRunningApplication: 0x600000107d70 (com.apple.iChat - 8272)>"; | |
// Splitting address & appname | |
NSArray *splitted = [appname componentsSeparatedByString:@" "]; | |
// Getting the pid | |
NSString *pid = [splitted objectAtIndex:2]; | |
if([pid hasPrefix:@"("]){ |
# Directory tracker | |
begin | |
require "digest" | |
rescue LoadError | |
puts "Digest module not found." | |
end | |
files = Dir["*"] | |
files.delete(__FILE__) |
// Working on Windows 10 Insider Preview 18356.1 (19h1_release) | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define byte sizeof(int) | |
int main(){ | |
char *ptr; | |
puts("Allocating..."); | |
for(int z = 0; z != -1; z++){ | |
ptr = (char *)malloc(byte); | |
if(ptr == NULL){ |
#include <stdio.h> | |
#include <string.h> | |
#define BUF 64 | |
int main() | |
{ | |
char buffer[BUF] = {'a', 'b', 'c'}; | |
char string[BUF] = "The following says: "; | |
char combine[BUF]; | |
strcpy(combine, string); | |
for(int x = 0; x <= 2; x++){ |
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.center { | |
min-height: 100vh; | |
align-items: center; | |
justify-content: center; | |
display: flex; | |
} |
/* property | |
cookie, forEach, includes, join, split | |
*/ | |
// Go to youtube | |
// Open the dev tool | |
// Go to the console section | |
// Paste the code below | |
const cookie = document.cookie.split(' ') |
export LANGUAGE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_TYPE=en_US.UTF-8 |