Skip to content

Instantly share code, notes, and snippets.

View bmk10's full-sized avatar

Georgiy Chipunov bmk10

View GitHub Profile
@bmk10
bmk10 / README.md
Created September 15, 2020 03:24 — forked from alyyousuf7/README.md
Ngrok and GoDaddy Connector

Ngrok and GoDaddy Connector

Ngrok provides a paid service to connect custom domain to a service. This script provides similar functionality which requires to be run everytime ngrok is started/restarted.

It updates your custom domain's CNAME record to the ngrok subdomain assigned to your service.

Usage

@alyyousuf7
alyyousuf7 / README.md
Last active March 4, 2024 17:19
Ngrok and GoDaddy Connector

Ngrok and GoDaddy Connector

Ngrok provides a paid service to connect custom domain to a service. This script provides similar functionality which requires to be run everytime ngrok is started/restarted.

It updates your custom domain's CNAME record to the ngrok subdomain assigned to your service.

Usage

@aksel
aksel / Kotlin Socket.IO example
Last active February 12, 2021 11:35
Kotlin Socket.IO example connection function.
import io.socket.client.IO
import io.socket.client.Socket
fun connect() {
val socket = IO.socket("http://localhost:4000?user=aksel")
socket.connect()
.on(Socket.EVENT_CONNECT, { println("connected") })
.on(Socket.EVENT_DISCONNECT, { println("disconnected") })
}
//============================================================================
// Name : SSLClient.cpp
// Compiling : g++ -c -o SSLClient.o SSLClient.cpp
g++ -o SSLClient SSLClient.o -lssl -lcrypto
//============================================================================
#include <stdio.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <openssl/ssl.h>
@bjoernQ
bjoernQ / AndroidManifest.xml
Created October 14, 2013 13:02
Creating a System Overlay (Always on Top over all Apps) in Android
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="de.mobilej.overlay"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="14" />
<application android:label="SystemOverlay" >
<activity
@blm768
blm768 / export_oolite.py
Last active December 23, 2021 21:15
A Blender mesh export script for the game Oolite
#!BPY
"""
Name 'Oolite DAT'
Blender: 263
Group: 'Export'
Tooltip 'Oolite mesh exporter'
"""
bl_info = {
@endolith
endolith / readme.md
Last active December 27, 2025 21:24
How to stream a webcam to a web browser in Ubuntu

Grr this took hours to figure out. I was trying to install MJPG-streamer and running VLC command lines and all this crap but nothing worked.

First install motion:

~> sudo apt-get install motion

Then create a config file:

~> mkdir ~/.motion

~> nano ~/.motion/motion.conf