wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
unzip 8-07-14_MegaCLI.zip
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Alpine Ajax test</title> | |
</head> | |
<body> | |
<h1>Users API Retrieval Test</h1> |
import asyncio | |
import psycopg2 | |
# dbname should be the same for the notifying process | |
conn = psycopg2.connect(host="localhost", dbname="example", user="example", password="example") | |
conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT) | |
cursor = conn.cursor() | |
cursor.execute(f"LISTEN match_updates;") |
#!/bin/bash | |
# | |
# Author: @dabumana | |
# Copyright BSD | |
# Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
# | |
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. | |
# |
#!/bin/bash | |
# ssh-cipher-benchmark.sh - Assesses speed of SSH encryption between specific hosts. | |
# Usage: | |
# ssh-cipher-benchmark.sh <remotehost> [ciphers] | |
# Default ciphers: all we can find... | |
# | |
# Note: In some cases, the first cipher tested runs faster than the others, regardless of order. | |
# Cause of this is not known, but changing the order of testing shows it to be true. Run the | |
# first one twice if you suspect this. Perhaps it is due to buffering? |
// v2 of the great example of SSE in go by @ismasan. | |
// includes fixes: | |
// * infinite loop ending in panic | |
// * closing a client twice | |
// * potentially blocked listen() from closing a connection during multiplex step. | |
package main | |
import ( | |
"fmt" | |
"log" |
<html> | |
<head> | |
<title>Hello, from Go</title> | |
</head> | |
<body> | |
<h1>Hello</h1> | |
<p> | |
This is Go code running, {{.}} | |
</p> | |
</body> |
# -*- coding: utf-8 -*- | |
import asyncio | |
import uvloop | |
from aiohttp.web import Application, MsgType, WebSocketResponse | |
def add_socket(app, socket, user_id): | |
if user_id in app['connections']: | |
pass |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# [SNIPPET_NAME: Systray icon] | |
# [SNIPPET_CATEGORIES: PyGTK] | |
# [SNIPPET_DESCRIPTION: Shows a system tray icon with a menu ] | |
# [SNIPPET_AUTHOR: João Pinto <[email protected]>] | |
# [SNIPPET_LICENSE: GPL] | |
# | |
# adapted from: http://eurion.net/python-snippets/snippet/Systray%20icon.html |
package main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"net" | |
"os" | |
"strings" |