Skip to content

Instantly share code, notes, and snippets.

@Ankirama
Ankirama / whereismyking.py
Created February 22, 2021 17:23
Tenable CTF Is King Check / Checkmate?
PIECES = {
'q': {
'name': 'Queen',
'moves': [
(0, 1),
(1, 1),
(1, 0)
],
'isdir': True,
'ismul': True
#!/usr/bin/python3
from random import sample
voisines1 = [[1, 2], [0, 2, 4], [0, 1, 3, 5], [2, 4], [1, 3, 5], [2, 4]]
voisines2 = [[1, 2], [0, 2, 4], [0, 1, 5], [2, 4], [1, 5], [2, 4, 3]]
voisines3 = [[1, 2], [0, 2, 4], [0, 1, 5], [2, 5], [1, 5], [2, 4, 3]]
voisines4 = [[1, 2], [0, 2, 4], [0, 1, 5], [2, 4], [1, 5], [2, 4]]
def bad_solution(neightbors, timer=50):
'''
@Ankirama
Ankirama / .vimrc
Created September 19, 2017 10:27
vimrc wac strasbourg
" URL: http://vim.wikia.com/wiki/Example_vimrc
" Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
" Description: A minimal, but feature rich, example .vimrc. If you are a
" newbie, basing your first .vimrc on this file is a good choice.
" If you're a more advanced user, building your own .vimrc based
" on this file is still a good idea.
"------------------------------------------------------------
" Custom
execute pathogen#infect()

Petit tuto rapide virtualbox DHCP (sans internet)

Creation VMs

Creer les VMs sous virtualbox / vmware + installer debian dessus:

  • DHCP
  • webserver
  • employee

Configuration du reseau:

My web server help

ISOs

Configurer DHCP sous vmware (c'est mieux et vous avez une licence)

@Ankirama
Ankirama / flexget
Last active July 3, 2017 21:30
flexget init service linux
#!/bin/sh
### BEGIN INIT INFO
# Provides: flexget
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start or stop the flexget daemon
# Description: Enable service flexget
### END INIT INFO
@Ankirama
Ankirama / free_email_provider_domains.txt
Created April 15, 2017 12:55 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
@Ankirama
Ankirama / piscine_php_rush1-lyon.md
Last active April 7, 2017 21:36
piscine_php_rush1-lyon.md

Comment creer son site pour Lyon

Adresse de votre site

Votre site se trouve a l'adresse suivante : 138.68.128.66/~prenom-nom avec prenom-nom le prenom et le nom du chef de groupe (exemple 138.68.128.66/~luca-sardellitti)

Comment se connecter

Pour vous connecter il va falloir utiliser le terminal.

Utilisation du dump Paris

Session

  • La session se trouve dans WAC
  • Vous avez le choix entre 2 window manager: i3 (genial mais qu'avec le clavier - https://i3wm.org/docs/refcard.html) ou OpenBox
  • Pour se lock sur i3 : i3lock

Stockage des donnees

@Ankirama
Ankirama / hello-world.cpp
Created November 25, 2016 16:14
Gist created by fiddle.jyt.io
// Jyt is a REPL for C++
// You can write code interactively
// Highlight some code and press alt-enter to execute it
// For example:
auto x = "hello world";
// Now you can query the value in the terminal on the right
// e.g. "x"