Skip to content

Instantly share code, notes, and snippets.

Bartosz "mastier" Woronicz mastier

Block or report user

Report or block mastier

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View cleanup-docker.sh
#!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs -r docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs -r docker rmi
# remove unused volumes:
find '/var/lib/docker/volumes/' -mindepth 1 -maxdepth 1 -type d | grep -vFf <(
@oleksiialeksieiev
oleksiialeksieiev / .bash_profile
Last active May 30, 2019
Useful bash profile
View .bash_profile
# SSH agent autostart
SSH_ENV="$HOME/.ssh/environment"
function start_agent {
echo "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
/usr/bin/ssh-add $HOME/.ssh/id_rsa;
}
@artizirk
artizirk / readme.txt
Created Apr 10, 2015
Huawei E3372h-153
View readme.txt
Working Huawei E3372h-153 SETPORT mappings
replacing A1,A2 with FF turns off need for usb_modeswitch
AT^SETPORT="A1,A2;12,1,16,A1,A2"
^GETPORTMODE: TYPE: WCDMA: huawei,PCUI:0,MDM:1,NDIS:2,CDROM:3,SD:4,
AT^SETPORT="A1,A2;1,12,16,A1,A2"
View machine_learning.md

Python Machine Learning

2013 Sang Han

A collection of notes and useful articles on numerical algorithms.

Definitions

Markov Chains: A special type of stochastic process. The standard

You can’t perform that action at this time.