This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# /lib/systemd/system-sleep/SUSPEND_pmouse.sh | |
# Note: don't forget to make it executable | |
case $1/$2 in | |
pre/*) | |
echo "Going to $2..." | |
# Place your pre suspend commands here, or `exit 0` if no pre suspend action required | |
modprobe -r psmouse | |
;; | |
post/*) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Basic Python Cheat Sheet by Filip Kral on 2015/02/16""" | |
""" | |
Python is a cross-platform, interpreted, object-oriented programming language. | |
That means you can run it on Linux, Windows, Mac, and other platforms, | |
you don't need to compile your code to execute it because it is compiled on | |
the fly, and you can use classes and objects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Script for dual monitors | |
LVDS="LVDS1" | |
VGA="VGA1" | |
CHK_VGA=$(xrandr | grep $VGA | awk ' { print $2 } ') | |
CHK_VGA_G=$(xrandr | grep $VGA | grep "+") | |
function dual_it_up() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*============================================================================ | |
Name : BubbleSort.java | |
Author : Eric Swanson | |
Date : Sep 10, 2011 | |
Version : | |
Description : | |
RequiredFile: LinkedList.java | |
Copyright (C) 2011 Eric Swanson |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*============================================================================ | |
Name : LinkedList.java | |
Author : Eric Swanson | |
Date : Sep 7, 2011 | |
Version : | |
Description : | |
Copyright (C) 2011 Eric Swanson | |
This program is free software: you can redistribute it and/or modify |