Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
server { | |
listen 127.0.0.1:9000; | |
location / { | |
proxy_pass http://unix:/var/run/docker.sock:/; | |
} | |
} |
""" | |
A script that acts as a messaging bridge between Telegram and IRC. | |
Works in Python 3.x | |
Installation: | |
1. pip install pydle | |
2. go create a Telegram bot by talking to BotFather (https://telegram.me/botfather) | |
3. create a telegram group, and send a curl to: | |
curl -s -X POST "https://api.telegram.org/bot<BOT_TOKEN>w/getUpdates" | |
4. get the group_id from the response |
#!/usr/bin/ruby | |
File.open("License.txt") do |f| #open file | |
f.each_line do |line| | |
text = [/sh/, /123/] #array for searching | |
if line =~ text[0] || text[1] #searching in file | |
puts "[+] Found License: #{line}" #puts founding word | |
else | |
puts "[+] License is not found!" | |
end |
<!DOCTYPE html> | |
<html> | |
<head><title>SOUND</title></head> | |
<body> | |
<div>Frequence: <span id="frequency"></span></div> | |
<script type="text/javascript"> | |
var audioCtx = new (window.AudioContext || window.webkitAudioContext)(); | |
var oscillatorNode = audioCtx.createOscillator(); | |
var gainNode = audioCtx.createGain(); |
This configuration is provided AS-IS and as an example/reference for those who do not find a working configuration for themselves. It is not always kept up to date and no support is provided.
Assuming:
example.org
turn.example.org
1.2.3.4
10.11.12.13
ThisIsASharedSecret-ChangeMe
(defpackage #:tuberculosis/demo/gibber | |
(:use #:cl #:tuberculosis #:monotonic-clock) | |
(:import-from #:alexandria #:random-elt) | |
(:export #:main)) | |
(in-package #:tuberculosis/demo/gibber) | |
(defun benchmark-redisplays (function) | |
(let ((start 0) | |
(elapsed 0) |
#! /usr/bin/python3 | |
# I wrote this script so that my personal computer running Ubuntu | |
# always has an active connection with the proxy server. | |
# | |
# Note that I am using my ssh config file, you can define a host there or | |
# you can type the whole command here | |
import notify2 | |
import requests |