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
### tool-init | |
set -ex | |
mkdir -p work | |
if [[ ! -f /bin/archstrap ]] ; then | |
wget https://gitlab.com/tearch-linux/applications-and-tools/archstrap/-/raw/master/archstrap.sh -O archstrap | |
mv archstrap /bin/archstrap | |
chmod +x /bin/archstrap | |
fi | |
### create archlinux chroot | |
archstrap work/rootfs |
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 | |
set -e | |
self=$(realpath $0) | |
# Creating sdk directory | |
mkdir -p $HOME/.android-emulator/sdk | |
cd $HOME/.android-emulator/ | |
# İnstalling java | |
if [[ ! -d $HOME/.android-emulator/jdk-18 ]] ; then | |
wget -c https://download.java.net/openjdk/jdk18/ri/openjdk-18+36_linux-x64_bin.tar.gz -O java.tar.gz | |
tar -xf java.tar.gz |
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
diff --git a/src/adw-style-manager.c b/src/adw-style-manager.c | |
index ae1a858d..c5b5ac73 100644 | |
--- a/src/adw-style-manager.c | |
+++ b/src/adw-style-manager.c | |
@@ -14,6 +14,8 @@ | |
#include "adw-settings-private.h" | |
#include <gtk/gtk.h> | |
+int file_exists(const char *fname); | |
+ |
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 | |
if [[ $UID -ne 0 ]] ; then | |
echo "You must be root" | |
exit 1 | |
fi | |
apt update | |
# Block service invoke | |
echo -e "#!/bin/sh\nexit 101" > /usr/sbin/policy-rc.d | |
chmod +x /usr/sbin/policy-rc.d | |
# Remove systemd preremove script. |
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 experimental and may damage your system. | |
# Please backup files before run this script. | |
set -e -x | |
umount -lf /boot/efi || true | |
mkdir -p /work ; cd /work | |
wget -c https://gitlab.com/tearch-linux/applications-and-tools/archstrap/-/raw/master/archstrap.sh -O /bin/archstrap | |
chmod +x /bin/archstrap | |
apt update | |
apt install busybox-static zstd -y |
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 | |
# Create merged input. Merged all input sources. | |
# Insert this script in /etc/X11/xinit/xinitrc.d/ | |
if [ "$1" == "-u" ]; then | |
pactl unload-module module-loopback | |
pactl unload-module module-null-sink | |
else | |
# Exit if already loaded. | |
if pacmd list-sources | grep "combined" &>/dev/null ; then |
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
/* TinyWM is written by Nick Welch <[email protected]> in 2005 & 2011. | |
* Modified by Ali Rıza KESKİN in 2019-? | |
* | |
* This software is in the public domain | |
* and is provided AS IS, with NO WARRANTY. */ | |
#include <X11/Xlib.h> | |
#include <stdlib.h> | |
#define MAX(a, b) ((a) > (b) ? (a) : (b)) |
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/bash | |
dpkg-query -W -f='${Section}\t${Package}\n' | grep ^non-free | sed "s/.*\t//g" | xargs apt purge -y | |
pkg="" | |
set -e | |
export LANG=C | |
apt-cache policy $(apt list --installed | sed "s/\/.*//g") | while read line ; do | |
if echo "$line" | grep "^[a-zA-Z0-9-]*:$" >/dev/null ; then | |
pkg=$(echo $line | sed "s/://g") | |
elif echo $line | grep "non-free" >/dev/null ; then | |
echo $pkg |
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 | |
if [[ $# -ne 2 ]] ; then | |
echo "Usage shc (source.sh) (output.c)" | |
exit 2 | |
fi | |
echo "#include <stdlib.h>" > "$2" | |
echo "int main(){" >> "$2" | |
echo " return system(\" \\" >> "$2" | |
cat $1 | sed 's/\\/\\\\/g;s/"/\\"/g;s/$/\\/g' >> "$2" | |
echo " \");" >> "$2" |
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 | |
if [[ -e /sbin/init-normal ]] ; then | |
exit | |
fi | |
mv /sbin/init /sbin/init-normal | |
cat > /sbin/init <<EOF | |
#!/bin/bash | |
mount -t tmpfs tmpfs /tmp || true | |
mkdir -p /tmp/work/source /tmp/work/a /tmp/work/b /tmp/work/target || true | |
mount --bind / /tmp/work/source |