Skip to content

Instantly share code, notes, and snippets.

@weisk
weisk / delete_git_submodule.md
Created March 15, 2021 03:05 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@weisk
weisk / certbot_reverse_proxy_guide.md
Created February 24, 2021 03:56 — forked from Juul/certbot_reverse_proxy_guide.md
How to use Let's Encrypt / certbot with a reverse proxy

apache config

The secret sauce is:

<Location /.well-known>
    ProxyPass !
</Location>
@weisk
weisk / MS Perks & Benefits.md
Created February 24, 2021 03:38 — forked from Teino1978-Corp/MS Perks & Benefits.md
Summary of any and all perks when working with Microsoft.

##Perks of Microsoft

####Salary

####Health and Wellness Care

  • Medical and hospitalization: Two choices for medical insurance. Both with no premium but different deductibles.
    • The two choices on medical plans are a high-deductible health plan (Microsoft puts a chunk of money into the Health Savings Account for you, which covers most of the deductible) and an HMO.
  • With the HMO, you pay basically nothing as long as you only go to Group Health doctors. With the high-deductible plan, you're covered under the local Blue Cross provider which means you can go to just about any doctor in the country. For
@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