Skip to content

Instantly share code, notes, and snippets.

@weisk
weisk / lte_mbim_from_scratch.md
Created February 24, 2021 03:14 — forked from Juul/lte_mbim_from_scratch.md
How to use 4G LTE modems like the MC7455 on both Debian/Ubuntu and OpenWRT using MBIM

The purpose of this document is to get you familiar with the concepts and command line tools involved with connecting to the internet using modern 4G LTE modems on both Debian/Ubuntu and OpenWRT.

This writeup is based on my experiences with the Sierra Wireless AirPrime MC7455 modem and a Calyx (Sprint) SIM card, but it should apply to most modern 4G LTE modems.

High level overview

These are the steps required:

  • Physically connect antennas
@weisk
weisk / PhoneFormat.js
Created February 24, 2021 03:13 — forked from ckoye/PhoneFormat.js
PhoneFormat.js for Titanium Mobile
/*
Modified version of
https://github.com/albeebe/phoneformat.js/blob/master/PhoneFormat.js
Made it Titanium-Mobile-ready by adding the exports for each function here.
http://www.phoneformat.com
*/
@weisk
weisk / web-fm.php
Created February 5, 2021 06:02 — forked from Domin8-IPTV/web-fm.php
browser based file manager sign in username and password with MD5 encryption
<?php
/**
* File Manager Script
*/
// Default language ('en' and other from 'filemanager-l10n.php')
$lang = 'en';
// Auth with login/password (set true/false to enable/disable it)
$use_auth = true;
@weisk
weisk / vod2hls.sh
Created February 5, 2021 06:02 — forked from Domin8-IPTV/vod2hls.sh
create hls live stream from files
#!/bin/bash
# Change this to path of file to stream /edit/to/vod/path.mp4
mediaFile="/edit/to/vod/path.mp4"
### 480x video400kbps audio40kbps ###
mediaStreams="-map 0"
audCodec="-acodec mp2"
audKbps="-b:a 40k"
@weisk
weisk / index.html
Created December 27, 2020 07:04 — forked from valex/index.html
d3.js v5 Realtime Line Chart
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>d3.js v5 Realtime Line chart</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.9.2/d3.min.js"></script>
<link rel="stylesheet" href="style.css" >
</head>
@weisk
weisk / fetch-api-examples.md
Created December 23, 2020 01:52 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
@weisk
weisk / fetch-api-examples.md
Created December 23, 2020 01:52 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples
@weisk
weisk / multiple-repository-and-identities-git-configuration.md
Created December 17, 2020 07:43 — forked from bgauduch/multiple-repository-and-identities-git-configuration.md
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple: