This file contains hidden or 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 | |
replace_baseplate_circle () { | |
if ! [ -e "${1}" ]; then | |
return 1 | |
fi | |
grep -qE '^ <linearGradient id="linearGradient[0-9]*" x1="1" x2="47" gradientUnits="userSpaceOnUse">$' < "${1}" || return 1 |
This file contains hidden or 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 | |
# This script is published by Philipp Klaus <[email protected]> | |
# on <http://blog.philippklaus.de/2011/05/ipv6-6in4-tunnel-via-hurricane-electric-tunnelbroker-net-automatic-ip-update-on-mac-os-x/> | |
# It is originally by freese60 and modified by limemonkey. | |
# Found on <http://www.tunnelbroker.net/forums/index.php?topic=287.0> | |
# Further modified by pklaus, at <https://gist.github.com/pklaus/960672> | |
# Forked and mostly replaced by W-Floyd, <https://gist.github.com/W-Floyd/20a4c16ceb1e008cb995b7ff7dcc0a2a> | |
############################################################################### |
This file contains hidden or 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
function mkex { | |
if ! chmod +x "${1}"; then | |
sudo chmod +x "${1}" | |
fi | |
} | |
function youtube-best { | |
youtube-dl -f bestvideo+bestaudio $1 | |
} |
This file contains hidden or 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
uncommit = reset HEAD^ | |
cm = commit -S --signoff | |
diffit = diff origin/HEAD HEAD | |
unstage = reset HEAD | |
discard = checkout -- | |
ls = log --pretty=format:'%C(auto,yellow)%h %C(auto,red)%ad %C(auto,blue)%an%C(auto,green)%d %Creset%s' --date=short --all --graph | |
lr = log --pretty=format:'%C(auto,yellow)%h %C(auto,red)%ad %C(auto,blue)%an%C(auto,green)%d %Creset%s' --date=relative --all --graph | |
bleach = "!git checkout -- . && git clean -fxd" | |
la = "!git config -l | grep alias | cut -c 7-" | |
ps = "!f() { echo $(git merge-base HEAD origin/master)..HEAD | git pack-objects --revs --thin --stdout --all-progress-implied -q | wc -c | numfmt --to=iec-i; }; f" |
This file contains hidden or 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
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Initializing cgroup subsys cpuacct | |
[ 0.000000] Linux version 4.4.0-22-generic (buildd@lgw01-41) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 (Ubuntu 4.4.0-22.40-generic 4.4.8) | |
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic.efi.signed root=UUID=f00a2ed2-6119-46ca-a6f1-509dae426515 ro quiet splash acpi_backlight=native acpi_osi= vt.handoff=7 | |
[ 0.000000] KERNEL supported cpus: | |
[ 0.000000] Intel GenuineIntel | |
[ 0.000000] AMD AuthenticAMD | |
[ 0.000000] Centaur CentaurHauls | |
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 |
This file contains hidden or 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
[ 330.034] | |
X.Org X Server 1.18.3 | |
Release Date: 2016-04-04 | |
[ 330.034] X Protocol Version 11, Revision 0 | |
[ 330.034] Build Operating System: Linux 3.13.0-86-generic x86_64 Ubuntu | |
[ 330.034] Current Operating System: Linux william-asus 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 | |
[ 330.034] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic.efi.signed root=UUID=f00a2ed2-6119-46ca-a6f1-509dae426515 ro quiet splash acpi_backlight=native acpi_osi= vt.handoff=7 | |
[ 330.034] Build Date: 18 May 2016 01:07:07AM | |
[ 330.034] xorg-server 2:1.18.3-1ubuntu2.2 (For technical support please see http://www.ubuntu.com/support) | |
[ 330.034] Current version of pixman: 0.33.6 |
This file contains hidden or 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
william@william-asus:~$ optirun --debug glxinfo > glxinfo | |
[ 330.028714] [DEBUG]Reading file: /etc/bumblebee/bumblebee.conf | |
[ 330.029106] [INFO]Configured driver: nvidia | |
[ 330.029377] [DEBUG]optirun version 3.2.1 starting... | |
[ 330.029396] [DEBUG]Active configuration: | |
[ 330.029402] [DEBUG] bumblebeed config file: /etc/bumblebee/bumblebee.conf | |
[ 330.029407] [DEBUG] X display: :8 | |
[ 330.029413] [DEBUG] LD_LIBRARY_PATH: /usr/lib/nvidia-367:/usr/lib32/nvidia-367 | |
[ 330.029418] [DEBUG] Socket path: /var/run/bumblebee.socket | |
[ 330.029423] [DEBUG] Accel/display bridge: auto |
This file contains hidden or 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
[ 0.000000] Initializing cgroup subsys cpuset | |
[ 0.000000] Initializing cgroup subsys cpu | |
[ 0.000000] Initializing cgroup subsys cpuacct | |
[ 0.000000] Linux version 4.4.0-22-generic (buildd@lgw01-41) (gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2) ) #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 (Ubuntu 4.4.0-22.40-generic 4.4.8) | |
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic.efi.signed root=UUID=f00a2ed2-6119-46ca-a6f1-509dae426515 ro quiet splash acpi_backlight=native acpi_osi= vt.handoff=7 | |
[ 0.000000] KERNEL supported cpus: | |
[ 0.000000] Intel GenuineIntel | |
[ 0.000000] AMD AuthenticAMD | |
[ 0.000000] Centaur CentaurHauls | |
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 |
This file contains hidden or 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
[ 60.017] | |
X.Org X Server 1.18.3 | |
Release Date: 2016-04-04 | |
[ 60.017] X Protocol Version 11, Revision 0 | |
[ 60.017] Build Operating System: Linux 3.13.0-86-generic x86_64 Ubuntu | |
[ 60.017] Current Operating System: Linux william-asus 4.4.0-22-generic #40-Ubuntu SMP Thu May 12 22:03:46 UTC 2016 x86_64 | |
[ 60.017] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-22-generic.efi.signed root=UUID=f00a2ed2-6119-46ca-a6f1-509dae426515 ro quiet splash acpi_backlight=native acpi_osi= vt.handoff=7 | |
[ 60.017] Build Date: 18 May 2016 01:07:07AM | |
[ 60.017] xorg-server 2:1.18.3-1ubuntu2.2 (For technical support please see http://www.ubuntu.com/support) | |
[ 60.017] Current version of pixman: 0.33.6 |
This file contains hidden or 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 of display: :0 | |
display: :0 screen: 0 | |
direct rendering: Yes | |
server glx vendor string: NVIDIA Corporation | |
server glx version string: 1.4 | |
server glx extensions: | |
GLX_ARB_context_flush_control, GLX_ARB_create_context, | |
GLX_ARB_create_context_profile, GLX_ARB_create_context_robustness, | |
GLX_ARB_fbconfig_float, GLX_ARB_multisample, GLX_EXT_buffer_age, | |
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, |