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 | |
LPORTDIR=/usr/portage #Change this if it is not your tree | |
GETCATEGORY=$1 #Category (such as x11-themes) | |
GETNAME=$2 #Name (such as numix-icon-theme) | |
FULLNAME="" | |
DIRTREE="" | |
CHECKDIR="" | |
## VARIOUS USEFUL FUNCITONS ## |
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
package lightirc; | |
import java.awt.Color; | |
import java.awt.Font; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.io.BufferedReader; | |
import java.io.BufferedWriter; | |
import java.io.File; |
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 | |
if ! which jq 2>/dev/null >>/dev/null; | |
then | |
echo "You need to install jq" | |
exit 2 | |
fi | |
if ! which curl 2>/dev/null >>/dev/null; | |
then |
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 | |
LED_VALUE="3" | |
OPTION="$1" | |
if ! which xset 2>/dev/null >>/dev/null; | |
then | |
echo "You need xset in order to set keyboard backlight" | |
exit 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
[Unit] | |
Description=Disable GPE6F interrupts | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/bash -c "echo disable > /sys/firmware/acpi/interrupts/gpe6F" | |
[Install] | |
WantedBy=multi-user.target |
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 | |
# qemu-img create -f qcow2 mac_hdd.img 64G | |
# echo 1 > /sys/module/kvm/parameters/ignore_msrs | |
# | |
# Type the following after boot, | |
# -v "KernelBooter_kexts"="Yes" "CsrActiveConfig"="103" | |
# | |
# printf 'DE:AD:BE:EF:%02X:%02X\n' $((RANDOM%256)) $((RANDOM%256)) | |
# |
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
function uncrustyme | |
set UCM_CFG $HOME/.uncrustyme.cfg | |
set cnt 1 | |
set total 0 | |
set rc (ls | grep "\.$UCM_EXT\$") | |
if test -f $UCM_CFG | |
printf " \033[32m==>\033[0m Found configuration file: $UCM_CFG\n" | |
else | |
printf " \033[31m==>\033[0m Cannot find configuration file: $UCM_CFG\n" |
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 | |
show_help() { | |
echo " ** Usage: $0 <chroot_target> [shell]" | |
echo " ** Where [shell] is not strictly required (will use /bin/sh)" | |
} | |
failure() { | |
echo -n " " | |
echo $@ |
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
#include <sys/utsname.h> | |
#include <string.h> | |
#include <dirent.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
#include <ctype.h> | |
#include <signal.h> | |
#include "procutils.h" |
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
Set-Variable -Name hosts -Value C:\Windows\System32\drivers\etc\hosts | |
Set-Variable -Name oldHosts -Value C:\Windows\System32\drivers\etc\hosts.old.apply_hostsadblock | |
$sources = "https://adaway.org/hosts.txt", | |
"https://hosts-file.net/ad_servers.txt", | |
"https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext" | |
echo " *** WARNING *** " | |
echo " ! This script can be executed to update the hosts file !" | |
echo " ! For that reason, this WILL OVERWRITE THE hosts file !" |
OlderNewer