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
/usr/bin/kore: | |
Position Independent Executable: yes | |
Stack protected: yes | |
Fortify Source functions: yes (some protected functions found) | |
unprotected: read | |
unprotected: poll | |
unprotected: fgets | |
unprotected: memset | |
unprotected: getcwd | |
unprotected: memcpy |
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 | |
export PYENV_ROOT="$HOME/.pyenv" | |
export PATH="$PYENV_ROOT/bin:$PATH" | |
eval "$(pyenv init -)" | |
export PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h(python)\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
bash --noprofile -l |
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
#! /usr/bin/env python3 | |
# | |
# Copyright (C) 2015 Canonical Limited | |
# Author: Shih-Yuan Lee (FourDollars) <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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
#!/usr/bin/env python3 | |
from gi.repository import Clutter, ClutterGst, Gdk | |
class VideoPlayer: | |
def __init__(self, filename): | |
stage_color = Clutter.Color.new(0, 0, 0, 0) | |
screen = Gdk.Screen.get_default() | |
monitor = screen.get_primary_monitor() |
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/sh | |
strip_spaces () { | |
GRUB_CMDLINE_LINUX_DEFAULT=$(echo "$GRUB_CMDLINE_LINUX_DEFAULT" | sed "s/ \+/ /g;s/^ *//g;s/ *$//g") | |
} | |
remove_parameters () { | |
for i in "$@"; do | |
GRUB_CMDLINE_LINUX_DEFAULT=$(echo "$GRUB_CMDLINE_LINUX_DEFAULT" | sed "s/$i//g") | |
done |
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
#! /usr/bin/env bash | |
if dpkg-query -W | grep rtl8723bs-bluetooth-dkms; then | |
sudo apt-get purge rtl8723bs-bluetooth-dkms | |
fi | |
sudo dpkg -i rtl8723bs-bluetooth-misc_150212chestersmill2_amd64.deb | |
if ! grep "Enable=Gateway" /etc/bluetooth/audio.conf; then | |
echo "Enable=Gateway" | sudo tee -a /etc/bluetooth/audio.conf |
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
#! /usr/bin/env python3 | |
# -*- coding: utf-8; indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- | |
def main(): | |
from gi.repository import Gtk | |
dialog = Gtk.Dialog("DEBUG") | |
dialog.add_buttons("Close", Gtk.ResponseType.CLOSE) | |
dialog.run() | |
print("Hello World!") | |
dialog.destroy() |
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/sh | |
echo "=== Clear all EFI boot entries ===" | |
sudo apt-get --yes install efibootmgr | |
sudo efibootmgr -v | grep ^Boot[0-9A-F][0-9A-F][0-9A-F][0-9A-F] | cut -c 5-8 | while read boot; do | |
sudo efibootmgr -v -b $boot -B | |
done | |
sudo efibootmgr -O | |
sudo efibootmgr -v |
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/sh | |
find /sys -name control | grep -v debug | while read file; do | |
if [ "$(cat $file)" = "auto" ]; then | |
echo "$file is still auto." | |
fi | |
done |
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
/* -*- coding: utf-8; indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- */ | |
/** | |
* Copyright (C) 2014 Shih-Yuan Lee (FourDollars) <[email protected]> | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, |