Skip to content

Instantly share code, notes, and snippets.

View Sohag07Hasan's full-sized avatar

Md Mahibul Hasan Sohag07Hasan

View GitHub Profile
@Sohag07Hasan
Sohag07Hasan / multisrsran.md
Created May 4, 2024 05:59 — forked from dsetareh/multisrsran.md
How to run multiple srsRAN + zmq environments on one machine

How to run multiple srsRAN + zmq environments on one machine

NOTE: ue/enb/epc.conf should already be setup for normal single environment srsRAN+zmq also this still has issues

generate namespaces

ip netns add ue1
ip netns add ue2
@Sohag07Hasan
Sohag07Hasan / messages_and_errors_django_template.html
Created September 5, 2017 17:02 — forked from adamghill/messages_and_errors_django_template.html
Show messages and errors in Django templates. Useful to just throw in a base template.
{% if messages %}
{% for message in messages %}
<div class="alert {% if message.tags %} alert-{{ message.tags }}{% endif %}">{{ message|safe }}</div>
{% endfor %}
{% endif %}
{% if form.errors %}
<div class="alert alert-error">
<h4>Please fix the following errors</h4>
<ul>
@Sohag07Hasan
Sohag07Hasan / simple_websocket_client.html
Created July 19, 2016 19:20 — forked from geoffb/simple_websocket_client.html
Super simple websockets client/server using Python. Compatible with the draft 76 challenge/response.
<!DOCTYPE html>
<html lang="en">
<head>
<title>WebSocket Client</title>
<style>
#output {
border: solid 1px #000;
}
</style>
</head>
@Sohag07Hasan
Sohag07Hasan / cacert.pem
Created July 18, 2016 14:55 — forked from zed/cacert.pem
https POST using socket, httplib, urllib2 on Python 2.x, 3.x :python:ssl:
##
## ca-bundle.crt -- Bundle of CA Root Certificates
##
## Certificate data from Mozilla as of: Wed Jan 18 00:04:16 2012
##
## This is a bundle of X.509 certificates of public Certificate Authorities
## (CA). These were automatically extracted from Mozilla's root certificates
## file (certdata.txt). This file can be found in the mozilla source tree:
## http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
##
@Sohag07Hasan
Sohag07Hasan / CIDR.php
Created September 8, 2013 18:55 — forked from jonavon/CIDR.php
<?php
/**
* CIDR.php
*
* Utility Functions for IPv4 ip addresses.
*
* @author Jonavon Wilcox <jowilcox@vt.edu>
* @version Sat Jun 6 21:26:48 EDT 2009
* @copyright Copyright (c) 2009 Jonavon Wilcox
*/
var app = {};
app.$colors = $('canvas.color-palette');
app.colorctx = app.$colors[0].getContext('2d');
// Build Color palette
app.buildColorPalette = function() {
var gradient = app.colorctx.createLinearGradient(0, 0, app.$colors.width(), 0);
// Create color gradient
require 'rubygems'
require 'mechanize'
FIRST_NAME = 'FIRST_NAME'
LAST_NAME = 'LAST_NAME'
PHONE = 'PHONE'
EMAIL = 'EMAIL@provider.com'
PARTY_SIZE = 2
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' }