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
public String readFile(String filename) { | |
String content = ""; | |
try { | |
// read filename from resources folder | |
URL fileURL = getClass().getResource(filename); | |
content = new String ( Files.readAllBytes( Paths.get( fileURL.getFile() ) ) ); | |
} | |
catch (IOException e) { | |
e.printStackTrace(); | |
} |
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
Writeup online! HTB University CTF 2022 - Fake News http://exto.lo.gs/htb-university-ctf-2022-fake-news-a213495533 | |
@K1nd4SUS_ctf | |
https://twitter.com/_eexto/status/1599481956638461952 | |
Walkthrough: HTB University CTF 2022 “The Magic Informer” Challenge http://dlvr.it/SdrL9h #ctf #cybersecurity #ssrf | |
https://twitter.com/iSecurity/status/1599584233752006656 | |
W0rty / HTP-Univ-Spell-Orsterra | |
github.com/W0rty/HTB-Univ-Spell-Orsterra |
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
beginner | |
beginner friendly | |
beginners-only | |
contribution-starter | |
difficulty/low | |
difficulty/newcomer | |
Easy | |
easyfix | |
easyhack | |
easy hack |
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
# Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License, version 2.0, | |
# as published by the Free Software Foundation. | |
# | |
# This program is also distributed with certain software (including | |
# but not limited to OpenSSL) that is licensed under separate terms, as | |
# designated in a particular file or component or in included license | |
# documentation. The authors of MySQL hereby grant you an additional |
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
{ | |
search(query: "org:bardsoftware", type: REPOSITORY, last: 100) { | |
nodes { | |
... on Repository { | |
nameWithOwner | |
refs(first: 100, refPrefix: "refs/heads/") { | |
nodes { | |
name | |
target { | |
... on Commit { |
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 | |
# Usage: bash uninstall_vmware.bash | |
remove() { | |
entry="$1" | |
echo -ne "Removing $entry [" | |
sudo rm -rf "$entry" | |
if [[ ! -e "$entry" ]]; then | |
echo -ne "OK" |
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 1.
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
"journal";"note";"auteur";"url";"annee";"texte" | |
"gamekult";"70";"puyo";"http://www.gamekult.com/jeux/test-fifa-17-SU3050706473t.html#ps4";"2017";"Si vous avez un tant soit peu suivi l'actualité de FIFA 17 depuis son annonce, vous savez déjà qu'il ne s'agit pas d'un FIFA +1 comme il en paraît chaque année. Pour ce millésime 2016, la simu d'EA Sports fait peau neuve en se dotant d'un nouveau moteur, le Frostbite cher à Battlefield, histoire de se mettre à niveau tout en bénéficiant des améliorations régulières apportées par les ingénieurs maison. Forcément, qui dit nouveau moteur sous-entend une liste considérable de changements et de petits ajustements, pour ne pas dire de concessions ; Konami avait d'ailleurs essuyé les plâtres il y a quelques années en osant le pari du Fox Engine, qui a longtemps tâtonné avant de parvenir à un compromis satisfaisant en 2016. FIFA 17 saura-t-il trouver la bonne formule dès le coup d'envoi ? \n Si l'on se place du point de vue dév, FIFA 17 tient du petit exploit. Même si le pr |
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
rm(list=ls()) | |
library(readr) # importation | |
library(RTextTools) # classification de textes | |
library(textreuse) # plagiat | |
library(tm) # text mining | |
library(ggplot2) # visualisations | |
library(lsa) # latent semantic analysis | |
library(stringr) # manipulation de chaines de caractères |
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
QUnit.extend(QUnit.assert, { | |
pixelEqual: function(canvas, x, y, r, g, b, a, message) { | |
var actual = Array.prototype.slice.apply(canvas.getContext("2d").getImageData(x, y, 1, 1).data), | |
expected = [r, g, b, a]; | |
QUnit.push(QUnit.equiv(actual, expected), actual, expected, message); | |
}, | |
pixelNotEqual: function(canvas, x, y, r, g, b, a, message) { | |
var actual = Array.prototype.slice.apply(canvas.getContext("2d").getImageData(x, y, 1, 1).data), | |
expected = [r, g, b, a]; | |
message = message || "should not be " + expected; |
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
class Ejercicio { | |
constructor(){ | |
this.w = this.width = 194, this.height= 122; | |
this.g = Array(this.width*(this.height+2)).fill(0); | |
for(let i=0; i< this.width; i++){ | |
for(let j=0; j< this.height; j++){ | |
if (j <= 2 || j >= this.height - 2 ) |
NewerOlder