This file contains hidden or 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 | |
help() { | |
echo "Usage: $0 <email>" | |
} | |
((EUID != 0)) && echo "ERROR: Active user not root. Cannot execute." && exit 0 | |
[[ "$1" == "" ]] && echo "ERROR: Missing user email." && help && exit 0 | |
email="${1}" |
This file contains hidden or 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 | |
# CRONTAB | |
# /home/user/ip.sh | |
srv="server.com" | |
sn=$(cat /proc/cpuinfo | grep Serial | cut -d ' ' -f2) | |
snd=$(printf "%d" 0x$sn) |
This file contains hidden or 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
#define __USE_POSIX | |
#include <stdio.h> | |
#include <netdb.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <strings.h> // bzero() | |
#include <unistd.h> // read(), write(), close() | |
#include <signal.h> | |
#include <stdbool.h> |
This file contains hidden or 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
#ifndef UNICODE | |
#define UNICODE 1 | |
#endif | |
#define WIN32_LEAN_AND_MEAN | |
#include <windows.h> | |
#include <winsock2.h> | |
#include <ws2tcpip.h> |
This file contains hidden or 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 <string> | |
#include <vector> | |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <iomanip> | |
#include <chrono> | |
#include <thread> | |
#include <openssl/md5.h> |
This file contains hidden or 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 <stdlib.h> | |
#include <string.h> | |
#include <limits.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> |
This file contains hidden or 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
package fi.tuni.sinipelto.laskuvelho.data | |
import android.content.Context | |
import android.util.Log | |
import androidx.room.Database | |
import androidx.room.Room | |
import androidx.room.RoomDatabase | |
import androidx.room.TypeConverters | |
import androidx.sqlite.db.SupportSQLiteDatabase | |
import fi.tuni.sinipelto.laskuvelho.data.constant.DataConstants |
This file contains hidden or 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
// Crypto++ (CryptoPP) Library (cryptlib) | |
// Compiled as static debug and release builds | |
// linked statically to this project | |
// This project built with static linking | |
// Linking debug/release build, depending on this project setting | |
#ifdef _DEBUG | |
# pragma comment ( lib, "cryptlibd" ) | |
#else | |
# pragma comment ( lib, "cryptlib" ) | |
#endif |