Skip to content

Instantly share code, notes, and snippets.

View borisdiakur's full-sized avatar

Boris Diakur borisdiakur

View GitHub Profile
@borisdiakur
borisdiakur / Nework_throttling_profiles.md
Created January 6, 2022 23:07 — forked from theodorosploumis/Nework_throttling_profiles.md
Web development - Custom network throttling profiles
Profile download (kb/s) upload (kb/s) latency (ms)
Native 0 0 0
GPRS 50 20 500
56K Dial-up 50 30 120
Mobile EDGE 240 200 840
2G Regular 250 50 300
2G Good 450 150 150
3G Slow 780 330 200
@borisdiakur
borisdiakur / ftpush
Last active February 11, 2016 22:09
Bash script for transmitting all changed (tracked and uncommited) files in a git repo to an ftp server via Transmits DockSend.
#!/bin/bash
#: Title : ftpush
#: Author : Boris Diakur
#: Version : 1.0
#: Description : Transmits all changed (tracked and uncommited) files to an ftp server via Transmits DockSend.
#: Options : None
for i in $(git status --short --untracked-files=no); do
if [[ -e "$i" ]]; then
echo "Transmitting $i"
@borisdiakur
borisdiakur / case-sensitive-seach.js
Last active November 7, 2024 12:53
Bookmarklet for case-sensitive search in Google Chrome (and other browsers which do not ship this feature). You can find install instruction below the code.
(function () {
'use strict';
var body = document.body,
html = document.documentElement;
var docHeight = Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.scrollHeight, html.offsetHeight);
var findingColor = 'limegreen';