Skip to content

Instantly share code, notes, and snippets.

@intarstudents
intarstudents / manifest.json
Created July 31, 2020 07:03 — forked from Rob--W/manifest.json
Dummy extension to prevent elision of "http" / "file" / subdomains from the omnibox in Chrome. Use this instead of the "Suspicious Site Reporter".
// This is a dummy extension that prevents elision of "http" / "file" / subdomains
// from the omnibox by impersonating the "Suspicious Site Reporter" extension.
// Do not use this if you use the "Suspicious Site Reporter" extension.
//
// Usage:
// 1. Create a directory, e.g. "prevent-elision-in-locationbar"
// 2. Put the content of this file as "manifest.json" in that directory.
// 3. Visit chrome://extensions, choose the "Load Unpacked" button and select the directory.
// (OR use the --load-extension=path/to/prevent-elision-in-locationbar flag to load the extension)
// Result:
@intarstudents
intarstudents / GM.office365.outlook.user.js
Created March 11, 2020 12:49
Greasemonkey Office365 Outlook unread count in favicon
// ==UserScript==
// @name Office365 Outlook unread count in favicon and tab title
// @namespace http://userscripts.org/scripts/
// @description Update the favicon and tab title to indicate the number of unread messages in the Inbox, so you can pin your tab and still see when you have new mail. Adapted from http://userscripts.org/scripts/show/155379
// @version 2.4
// @include https://outlook.office365.com/mail/*
// @include https://outlook.office.com/mail/*
// @grant none
// ==/UserScript==
@intarstudents
intarstudents / remote-lock-client.sh
Last active May 9, 2019 08:39
Synergy client locking
#!/bin/bash
# sudo apt-get install inotify-tools xautomation
DISPLAY=:0
killall mate-screensaver
mate-screensaver &
CMD_FILE="remote-lock.cmd"
@intarstudents
intarstudents / freqcalc.php
Last active July 28, 2016 08:53
FreqCalc
<?php
namespace App;
/*
$users = [
"pilot-1" => [XXXX, XYXY, ...],
"pilot-2" => [POPO, RARA, ...]
];
*/
@intarstudents
intarstudents / README.md
Created December 18, 2013 08:40
Upgrade debian to testing

Stolen from here:

sudo cp /etc/apt/sources.list{,.bak}
sudo sed -i -e 's/ \(stable\|wheezy\)/ testing/ig' /etc/apt/sources.list
sudo apt-get update
sudo apt-get --download-only dist-upgrade
sudo apt-get dist-upgrade
#!/bin/bash
# Interactive PoPToP install script on a OpenVZ VPS
# Tested on Debian 5, 6, and Ubuntu 11.04
# 2011 v1.1
# Author: Commander Waffles
# http://www.putdispenserhere.com/pptp-debian-ubuntu-openvz-setup-script/
echo "######################################################"
echo "Interactive PoPToP Install Script for OpenVZ VPS"
echo "by Commander Waffles http://www.putdispenserhere.com"
@intarstudents
intarstudents / fix.sh
Created August 29, 2013 09:50
gvfs: Transport endpoint is not connected
sudo umount /run/user/[username]/gvfs
/usr/lib/gvfs/gvfsd-fuse /run/user/[username]/gvfs
@intarstudents
intarstudents / utf8-to-ascii.md
Last active December 18, 2015 15:59
UTF-8 to ASCII
@intarstudents
intarstudents / post-install.md
Last active December 17, 2015 23:29
Linux Mint 15 (Olivia) Post-install

Purge unused packages

$ sudo aptitude purge pidgin xchat xchat-common tomboy simple-scan mint-meta-codecs totem totem-mozilla totem-plugins totem-plugins-extra mate-user-share mint-meta-mate banshee

Clock applet date/time format

Install dconf-editor:

@intarstudents
intarstudents / compiling_sphinx.md
Last active December 17, 2015 09:59
Compiling Sphinx

MySQL includes

$ sudo aptitude install libmysql++-dev libmysqlclient15-dev checkinstall

Install Sphinx

$ wget http://sphinxsearch.com/files/sphinx-2.1.1-beta.tar.gz