Skip to content

Instantly share code, notes, and snippets.

@stephanetimmermans
stephanetimmermans / ubuntu-thunderbird
Created June 25, 2014 12:55
Install Thunderbird on Ubuntu 14.04
echo -e "\ndeb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" | sudo tee -a /etc/apt/sources.list > /dev/null
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29
sudo apt-get update
sudo apt-get install thunderbird-mozilla-build
@marcelrv
marcelrv / Bluez Install.txt
Created December 12, 2018 12:06
Installation Bluez 5.46 on Ubuntu 16.04
Based on https://askubuntu.com/questions/883713/using-bluez-5-43-on-ubuntu-16-04
sudo apt-get install debhelper dh-autoreconf flex bison libdbus-glib-1-dev libglib2.0-dev libcap-ng-dev libudev-dev libreadline-dev libical-dev check dh-systemd libebook1.2-dev devscripts
#unless you have already a gpg key
sudo apt-get install rng-tools
gpg --gen-key
@meetmatt
meetmatt / gist:d5dd2ecae37fbabb483dffba2d6dbec6
Created November 3, 2016 13:33
Show installed packages reverse sorted by size in alpine
apk info | xargs -n1 -I{} apk info -s {} | xargs -n4 | awk '{print $4,$1}' | sort -rn
@unfulvio
unfulvio / epson-iscan-networked-scanner.md
Created July 5, 2017 04:14
Get Epson iScan to work in Ubuntu with a networked/wireless scanner

If you see this error upon starting iScan aka "Image Scan for Linux":

“Could not send command to scanner. Check the scanner’s status.”

It means the iScan couldn't find the scanner. This happens often if it's not connected via USB, but lives in a wireless network for instance.

Do the following:

cd /etc/sane.d/
@donaldsteele
donaldsteele / scan_chromecast.php
Created January 2, 2018 06:12
use php and nmap to find all chromecast devices on a network quickly
<?php
//get default gatwway
exec("route -n | awk '{print $2}' | grep -v '0.0.0.0' | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}'",$gw);
//nmap scan to get all devices with open port 8008 whis is what chromecast listens on
exec("nmap ".$gw[0]."/24 -p 8008 -oG - | grep 8008/open | awk '{print $2}'",$chromecasts);
$out=array();
//loop through and get the setup info page data
foreach($chromecasts as $chromecast) {
$url='http://'.trim($chromecast).':8008/setup/eureka_info';
$curl_handle=curl_init();
@me7
me7 / capture.py
Last active March 8, 2023 02:05
use adb to capture image and transfer to PC
# check device present: adb devices -> 5203d550fe3ea3ab
from time import clock, sleep
from subprocess import check_output, call
import re
#call this to capture image
def capture():
clock()
screen_on()
clear_camera_folder()
@RomelSan
RomelSan / kitty-theme.md
Last active April 17, 2023 09:24
Kitty Theme

Kitty portable recommended settings

  1. Terminal --> Features --> Disable Application Keypad mode
  2. Terminal --> Keyboard --> The Function keys and keypad --> Linux
  3. Connection --> Data --> set terminal-type string to linux
  4. Window -> Appearance set check for "Allow selection of variable pitch fonts"
  5. Window -> Colours set check for "Selected text is a different colour"
  6. Use font Cascadia Code PL included with "Windows Terminal" app or download from github
    File to install: CascadiaCodePL.ttf
    https://github.com/microsoft/cascadia-code
  7. If you are using oh my zsh then you can use the fonts from nerdfonts.com
@rarylson
rarylson / net-snmp-create-v3-user
Last active April 20, 2023 17:29
"net-snmp-create-v3-user" script for Ubuntu 14.04 (forgotten by the Ubuntu package mantainers)
#!/bin/sh
#
# $Id$
#
# this shell script is designed to add new SNMPv3 users
# to Net-SNMP config file.
prefix=/usr
exec_prefix=/usr
includedir=/usr/include
@christopher-hopper
christopher-hopper / phpenv-ubuntu-xenial.sh
Last active May 16, 2023 11:02
Install phpenv on Ubuntu 16.04 LTS (xenial)
#!/usr/bin/env bash
# vim: ai ts=2 sw=2 et sts=2 ft=sh
# Check OS.
if [[ ! "${OSTYPE}" =~ "^linux" ]] || [[ ! "$(lsb_release -c 2>/dev/null)" =~ "xenial" ]]; then
(>&2 echo "Error: This script is for Ubuntu 16.04 LTS (xenial) not '${OSTYPE}'.")
exit 1;
fi
sudo apt-get update
@FriedrichWeinmann
FriedrichWeinmann / DomainCryptographyScan.ps1
Last active May 30, 2023 05:15
Scans an Active Directory domain's and its principal's kerberos encryption configuration.
<#
.SYNOPSIS
Scans an Active Directory domain's and its principal's kerberos encryption configuration.
.DESCRIPTION
Scans an Active Directory domain's and its principal's kerberos encryption configuration.
It will generate all data via LDAP, and analyze the results for possible authentication issues.
It supports three ways to report:
- Print: Write analysis of results to screen