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
class hello_world { | |
public static void main(String[] args) { | |
System.out.println("Hello, World!"); | |
} | |
} |
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
// Terminal Package Manager | |
const readline = require("readline"); | |
const fs = require("fs"); | |
const rl = readline.createInterface({ | |
input: process.stdin, | |
output: process.stdout, | |
}); |
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
import ftplib | |
ftp = ftplib.FTP('ftp.cluster028.hosting.ovh.net') | |
ftp.login('user', 'passwd') | |
ftp.cwd('/folder') | |
# Ouvrez le fichier à envoyer | |
with open('file', 'rb') as f: | |
ftp.storbinary('STOR file.ext', f) |
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
//Emulates the output of a WWII German Enigma encryption machine | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
//#define DEBUG | |
#define MAX_MESSAGE_LENGTH 100 | |
//Strut Prototypes |
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/env sh | |
# Customize Console | |
PROMPT_COMMAND='echo -en "\033]0;$(FBD|cut -d "/" -f 4-100)\a"' | |
now=$(date) | |
echo "Undertale Jokes, that's all. Mainly. You know, as ya want." | |
while true | |
do | |
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> | |
#define TAILLE_MIN 5 | |
#define TAILLE_MAX 25 | |
int main() { | |
int N, i, count, majorite; | |
int T[TAILLE_MAX]; | |
printf("Saisir la taille du tableau N (entre %d et %d) : ", TAILLE_MIN, TAILLE_MAX); |
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 section for data and code | |
section .data | |
data db 42, -6, 13, -7, 99, 2 ; Replace with your desired array elements | |
data_size equ $ - data ; Calculate array size | |
section .text | |
global _start | |
_start: | |
; Initialize registers |
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
use std::io; | |
fn main() { | |
let mut n: u32; | |
let mut count: i32 = 0; | |
let mut majorite: i32; | |
let taille_min = 5; | |
let taille_max = 25; | |
let mut t: Vec<i32> = Vec::with_capacity(taille_max); |
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/sh -exu | |
dev=$1 | |
cd $(mktemp -d) | |
function umountboot { | |
umount boot || true | |
umount root || true | |
} |
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
import psutil | |
import os | |
import subprocess | |
def get_cpu_temp(): | |
temp = psutil.sensors_temperatures()['cpu_thermal'][0].current | |
return temp | |
ip = "hostname -I" | |
uptime = "uptime -p" |
OlderNewer