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
sudo apt-get install xbacklight | |
: /etc/X11/xorg.conf | |
Section "Device" | |
Identifier "Card0" | |
Driver "intel" | |
Option "Backlight" "/sys/class/backlight/intel_backlight" | |
EndSection |
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 | |
# Configure the following variables according to your requirements | |
version="24.0" # chose from http://download.cdn.mozilla.net/pub/mozilla.org/firefox/releases/ | |
language="en-US" # e.g. "de" or "en-US" | |
######################################################## | |
application="firefox" # "thunderbird" or "firefox" but file extension, archive extraction, and binary execution needs to be adapted as well see filenames at http://download.cdn.mozilla.net/pub/mozilla.org/ |
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/bash | |
beep () { | |
if [ "$1" = --list ] | |
then | |
find /usr/share/sounds -type f -exec basename {} \; | sort -n | tr '\n' ' '; echo | |
else | |
paplay $(find /usr/share/sounds -type f -iname "${1:-bell}*" | head -1) | |
fi | |
} |
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 | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
echo 'GRUB_DEFAULT=0' > /etc/default/grub | |
echo 'GRUB_TIMEOUT=5' >> /etc/default/grub | |
echo 'GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`' >> /etc/default/grub | |
echo 'GRUB_CMDLINE_LINUX_DEFAULT="quiet loglevel=3 vga=current rd.systemd.show_status=auto rd.udev.log-priority=3 vt.global_cursor_default=0"' >> /etc/default/grub | |
echo 'GRUB_CMDLINE_LINUX="console=ttyS0"' >> /etc/default/grub |
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
#------------------------------------------------------------------------------# | |
# OFFICIAL DEBIAN REPOS | |
#------------------------------------------------------------------------------# | |
###### Debian Main Repos | |
deb http://deb.debian.org/debian/ stable main contrib non-free | |
deb-src http://deb.debian.org/debian/ stable main contrib non-free | |
deb http://deb.debian.org/debian/ stable-updates main contrib non-free | |
deb-src http://deb.debian.org/debian/ stable-updates main contrib non-free |
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/bash | |
# sudo apt install gcc-arm-linux-gnueabihf | |
VERSION=1.2.11 | |
wget https://zlib.net/zlib-$VERSION.tar.gz | |
tar xf zlib-$VERSION.tar.gz && rm zlib-$VERSION.tar.gz | |
cd zlib-$VERSION | |
mkdir build |
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
### PUT IN BASHRC ### | |
# If there are multiple matches for completion, Tab should cycle through them | |
bind 'TAB':menu-complete | |
# Display a list of the matching files |
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
admin | |
1234 |
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
# empty program | |
section .text ;the actual code | |
global _start ; make label visible for linker | |
_start: ;label, as main() function in C | |
mov eax,1 ;system call number (sys_exit) | |
int 0x80 ;call kernel ( like syscall ) | |
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
# Useful variables | |
STDIN equ 0 | |
STDOUT equ 1 | |
STDERR equ 2 | |
SYS_READ equ 0 | |
SYS_WRITE equ 4 | |
SYS_EXIT equ 1 | |
KERNEL equ 0x80 | |
%macro syscall 0 |
OlderNewer