- 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
#!/usr/bin/env php | |
<?php | |
$app = function($request) { | |
$body = <<<EOS | |
<!DOCTYPE html> | |
<html> | |
<meta charset=utf-8> | |
<title>Hello World!</title> |
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 java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.PrintWriter; | |
import java.net.DatagramPacket; | |
import java.net.DatagramSocket; | |
import java.net.ServerSocket; | |
import java.net.Socket; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; |
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
package main | |
import ( | |
"fmt" | |
"github.com/sirupsen/logrus" | |
"github.com/hashicorp/go-retryablehttp" | |
) | |
type LeveledLogrus struct { | |
*logrus.Logger |
I hereby claim:
- I am greut on github.
- I am yblanc (https://keybase.io/yblanc) on keybase.
- I have a public key whose fingerprint is A2A7 E23A 88A2 1EA5 561E 581F 068A F996 C3F7 2ADA
To claim this, I am signing this object:
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
#!/bin/bash | |
USERNAME=yoan.blanc | |
PASSWORD="..." | |
GID=100 | |
DIRS="ORG" | |
PID=openconnect.pid | |
echo "Welcome to HE-ARC" | |
echo "" |
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 |
Following last year’s article on Slack, here is how to create a bot for Discord. We will go through a minimalist bot that does close to nothing. Most of the provided examples using libraries like discord.py hide asyncio away. Here we will make it explicit how it works under the hood. Be aware that this is not the easiest way to build a bot but a step-stone to understand what complete libraries do for you.
NewerOlder