Skip to content

Instantly share code, notes, and snippets.

View Mausy5043's full-sized avatar

Maurice (mausy5043) Hendrix Mausy5043

  • The Netherlands
  • 12:46 (UTC +02:00)
View GitHub Profile
@Mausy5043
Mausy5043 / BB-1st.sh
Last active April 16, 2016 17:23
BeageBone Black changes to default installation
# Connected to ethernet
# Power via USB
# First-time login using ssh:
# $ ssh debian@beaglebone.lan (pwd shown at login)
# change default password
passwd
# we will install for user `root`
sudo su -
@arulrajnet
arulrajnet / colors.py
Last active January 2, 2023 04:45 — forked from jossef/colors.py
python coloring for linux, based on this answer http://stackoverflow.com/a/26445590/3191896 and modified to make it more usable in a pythonic way.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
class Color(object):
"""
reference from https://gist.github.com/Jossef/0ee20314577925b4027f and modified bit.
"""
def __init__(self, text, **user_styles):
@Mausy5043
Mausy5043 / grep for text
Last active December 3, 2015 18:12
FInd file(s) containing specific text
grep -rnw /path/to/search -e "text to find" 2>/dev/null
@Mausy5043
Mausy5043 / sysupdate.sh
Last active August 29, 2015 14:09
scripted system update for Debian-flavours
#! /bin/sh
sudo apt-get update
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get upgrade
@maleadt
maleadt / gist:02a58eb46118c1d8014c
Created September 30, 2014 15:03
Sample smartd.conf
# WD Red
# - check some stuff and track everything (-a)
# - ignore temperature (194 and 231) and power-on hours (9) attributes (-I)
/dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0938110 -a -d sat \
-I 194 -I 231 -I 9 \
-m root -M diminishing
/dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0965778 -a -d sat \
-I 194 -I 231 -I 9 \
-m root -M diminishing
/dev/disk/by-id/ata-WDC_WD30EFRX-68AX9N0_WD-WMC1T0876678 -a -d sat \