- hostapd
- dnsmasq
- ntop
- iptables
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
#!/bin/bash | |
# | |
# Usage: ssh <host> ./deploy.sh | |
# | |
set -xe | |
. ~/.bash_profile | |
cd www/app | |
. bin/activate |
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
from django.views.generic import ListView | |
from django.contrib.auth.mixins import LoginRequiredMixin | |
from .models import Game | |
class GameListView(LoginRequiredMixin, ListView): | |
template_name = "games.html" | |
model = Game | |
ordering = '-id' |
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
version: '2' | |
volumes: | |
postgres_data: | |
services: | |
postgres: | |
image: postgres:9.6-alpine | |
environment: | |
- POSTGRES_USER=django |
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
import bpy | |
from math import cos, sin, radians | |
grammaire = { | |
"A": "B[+A][-A][<A]>A", | |
"B": "BB" | |
} | |
def génération(word, depth): |
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
import sys | |
import pygame | |
FPS = 30 | |
WIDTH, HEIGHT = GEOMETRY = 420, 360 | |
screen = pygame.display.set_mode(GEOMETRY) | |
pygame.display.set_caption('Bug') | |
blocks = ( |
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 DocbookXMLCatalogResolver implements XMLEntityResolver { | |
// ... | |
public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier) | |
throws IOException, XNIException { | |
if (resourceIdentifier.getNamespace().equals("http://docbook.org/ns/docbook")) { | |
resourceIdentifier.setNamespace("http://docbook.org/xml/5.0/xsd/docbook.xsd"); | |
} | |
XMLInputSource source = resolver.resolveEntity(resourceIdentifier); | |
if (resourceIdentifier.getNamespace().equals("http://docbook.org/xml/5.0/xsd/docbook.xsd")) { | |
resourceIdentifier.setNamespace("http://docbook.org/ns/docbook"); |
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
""" | |
Slack Web API | |
============= | |
The `Slack Web API`_ let you communicate with Slack. | |
Usage: | |
------ | |
The following example calls the ``api.test`` method which test whether your |
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
"""Sample Slack ping bot using asyncio and websockets.""" | |
import asyncio | |
import json | |
import signal | |
import aiohttp | |
from config import DEBUG, TOKEN | |
import websockets |
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
#!/bin/bash | |
USERNAME=yoan.blanc | |
GID=`id -g` | |
PASSWORD="************" | |
DIRS="ORG" | |
PID=openconnect.pid | |
echo "Welcome to HE-ARC" | |
echo "" |