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 | |
# Rename files with spaces on it's filename with underscores | |
for f in *\ * | |
do | |
mv "$f" "${f// /_}" | |
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
md5sum * | while read -r sum filename; do mv -v "$filename" "$sum"; 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
#!/bin/sh | |
# Fix Nintendo Switch exFat external attributes for SX OS / Atmosphere in Mac OS X | |
find $1 ! -name 'Nintendo' ! -name 'Emutendo' -maxdepth 1 -type d -exec sudo chflags -R arch {} + |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
# Date in standard UNIX format | |
# MMDDhhmmYYYY | |
# Mon Jun 3 13:31:00 UTC 2019 | |
date 060313312019 |
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 | |
# Example for swapfile creation | |
# Run as root/sudo | |
mkdir -p /data/swap | |
fallocate -l 8G /data/swap/swapfile.000 | |
chmod 600 /data/swap/swapfile.000 | |
mkswap /data/swap/swapfile.000 | |
swapon /data/swap/swapfile.000 | |
swapon --show |
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
#!/system/xbin/busybox sh | |
# Enabling Magisk SELinux Policy for using FRIDA without permissive mode | |
# https://serializethoughts.com/2018/07/23/frida-magisk-and-selinux/ | |
magiskpolicy --live "allow zygote magisk process *" | |
magiskpolicy --live "allow system_server magisk process *" | |
magiskpolicy --live "allow radio magisk process *" |
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 | |
ffmpeg -i $1 -vf "select=gt(scene\,0.5), scale=640:360" -vsync vfr $1-%03d.png |
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
#cloud-config | |
write_files: | |
- path: /etc/apt/sources.list.d/google-cloud-sdk.list | |
content : deb http://packages.cloud.google.com/apt cloud-sdk-bionic main | |
runcmd: | |
- 'docker pull tensorflow/tensorflow:latest-gpu-py3 ' | |
- 'curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -' | |
- 'apt-get update && apt-get install -y google-cloud-sdk kubectl' | |
- 'gcloud --quiet components update' | |
final_message: "Cloud-init finished." |
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
#Descargamos el repo principal | |
git clone ${URL_REPO_PRINCIPAL} | |
#Añadimos el primer fork | |
git remote add ${REMOTE_NAME} ${URL_REPO_FORK} | |
#Descargamos los cambios del fork | |
git fetch ${REMOTE_NAME} | |
#Vemos los cambios |
NewerOlder