Skip to content

Instantly share code, notes, and snippets.

View gist:6acb984fd653065ebf16015e6d19962d
# attribution of hash goes to Dr. Mange
# (upper_bound-max_projects) / max_efforts
import argparse
import ipaddress
max_projects = 254
max_efforts = 14
lower_bound = 254
upper_bound = 4094
View gist:51b1fff2b9b25cbef54bc79a52ec9ae5
# from and
Port 4252
Protocol 2
HostKey /etc/ssh/ssh_host_ed25519_key
HostKey /etc/ssh/ssh_host_rsa_key
AuthenticationMethods publickey

Lenovo ThinkPad W541

The W541 is a workstation laptop based on the Intel Haswell architecture which has an Nvidia GK106GLM (Quadro K2100M) discrete card configured via Optimus.

This architecture poses some challenges within Linux. In the Windows world Nvidia handles all complexities of both adapters, in Linux the herculean effort of the Bumblebee project allows you to tackle the complex topology and have a usable system.

View gist:80f6539afff5d5bf02b3
[agd@enoch ~]$ sudo systemctl enable powertop.service
Created symlink from /etc/systemd/system/ to /usr/lib/systemd/system/powertop.service.
[agd@enoch ~]$ sudo systemctl status powertop.service
● powertop.service - PowerTOP autotuner
Loaded: loaded (/usr/lib/systemd/system/powertop.service; enabled; vendor preset: disabled)
Active: inactive (dead)
Nov 30 20:56:17 enoch powertop[12581]: RAPL device for cpu 0
Nov 30 20:56:17 enoch powertop[12581]: RAPL Using PowerCap Sysfs : Domain Mask f
Nov 30 20:56:17 enoch powertop[12581]: RAPL device for cpu 0
View gist:f9bf8aa7935ed82ac3a3
import pandas as pd
raw_df = pd.read_csv('reddit.r.scotch.tsv', sep='\t')
# Rid ourselves of data we don't need for the recommendation
raw_df.drop('Timestamp', axis=1, inplace=True)
raw_df.drop('Link To reddit Review', axis=1, inplace=True)
raw_df.drop('Region', axis=1, inplace=True)
raw_df.drop('Price', axis=1, inplace=True)
raw_df.drop('Date', axis=1, inplace=True)
storrgie / gist:6389526
Last active Dec 22, 2015
If you stumble across this and either have a solution or want to ask more questions... please contact me via email: storrgie at gmail dot com
View gist:6389526
Edit: TEAC UD-501 on Fedora 19 with MPD 0.17.3 works perfectly.
I think it might have been the commit in kernel 3.10.7
TEAC UD-501. With MPD on Ubuntu (Server 12.04.2) with ALSA version 1.0.25 with MPD version 0.18
storrgie / gist:5802088
Created Jun 18, 2013
Google Chrome, Installed from the google official repositories. "Your profile could not be opened correctly. Some features may be unavailable. Please check that the profile exists and you have permission to read and write its contents"
View gist:5802088
- Close Chrome.
- Delete the file named Web Data in ~/.config/google-chrome/Default.
- Start Chrome again and everything should be fine.
storrgie /
Created Jun 17, 2013
Modified to work for me. Doesn't do web request and unpacking, checks for number of arguments.
# Adapted from
# This script assumes you have unzipped the contents of the
# Sublime 2 distribution to someplace and will set it below
# I personally like to keep this install very mobile
# Set these values
View gist:4493182
<storrgie> I am in fedora 18 and recently noticed that my mount aliases all dont work
<storrgie> my mount alias looks like this: "alias alexandria_agd='sudo mount -t cifs -o credentials=/etc/samba/creds,dir_mode=0775,file_mode=0775,uid=1000,gid=1000 //alexandria/agd /mnt/alexandria/agd'"
<storrgie> it appears that as of whatever version of cifs fedora 18 has, it seems to ignore the credentials line
<storrgie> its trying to mount as root....
<storrgie> here is me running that alias with a -v: mount.cifs kernel mount options: ip=,unc=\\alexandria\agd,dir_mode=0775,file_mode=0775,uid=1000,gid=1000,user=root,pass=********
storrgie / gist:4438148
Created Jan 2, 2013
Mutagen Install Issues
View gist:4438148
[agd@enyo ~]$ sudo yum install picard
Loaded plugins: langpacks, presto, refresh-packagekit
Resolving Dependencies
--> Running transaction check
---> Package picard.x86_64 0:1.0-2.fc18 will be installed
--> Processing Dependency: python-mutagen > 1.9 for package: picard-1.0-2.fc18.x86_64
--> Running transaction check
---> Package python-mutagen.noarch 0:1.20-4.fc18 will be installed
--> Finished Dependency Resolution
You can’t perform that action at this time.