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
setenforce 0 | |
dnf -y install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm | |
dnf -y install tigervnc-server xterm chromium chromium-libs-media-freeworld | |
vncpasswd <- set your pass | |
touch ~/.vnc/xstartup | |
echo "#!/bin/sh" >> ~/.vnc/xstartup | |
echo "unset SESSION_MANAGER' >> ~/.vnc/xstartup | |
echo "unset DBUS_SESSION_BUS_ADDRESS" >> ~/.vnc/xstartup |
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 | |
# find them all | |
ls destination | egrep '\[' >> to_rename | |
# cut [*] | |
while read line; do echo $line | sed -e 's/\[[^][]*\] //g' ; done < /tmp/to_rename |
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
// https://play.rust-lang.org/?version=beta&mode=debug&edition=2018&gist=d99b8ff32cda06ad450c2de61b2053bf | |
fn main() { | |
// Limit file name to 200 bytes or less if char is boundary | |
let mut title_raw = "🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴🚴"; | |
// let mut title_raw = "🚴Billie Eilish - text=\"Everything I Wanted\" song_spot=\"M\" MediaBaseId=\"2548688\" itunesTrackId=\"0\" amgTrackId=\"-1\" amgArtistId=\"0\" TAID=\"31132274\" TPID=\"83782299\" cartcutId=\"0416383001\" amgArtworkURL=\"http://image.iheart.com/bell-ingestion-pipeline-production-umg/full/00602508508462_20191114020958327/19UM1IM00404_T1_cvrart.jpg\" length=\"00:04:02\" unsID=\"-1\" spotInstanceId=\"-1\"🚴"; | |
// let mut title_raw |
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 | |
# docker stop `docker ps -qa` ; docker rm `docker ps -qa` & docker rmi -f `docker images -qa ` & docker volume rm $(docker volume ls -qf) & docker network rm `docker network ls -q --filter type=custom` | |
# sudo apt -y purge ghc* azure-cli google-cloud-sdk hhvm google-chrome-stable firefox dotnet* *jdk* *llvm* gcc-10 gcc-9 gcc-8 powershell moby-containerd snapd *php* *ruby* *mysql* moby* mono* mongodb* podman r-base* buildah mecab* kubectl libicu-dev containernetworking-plugins skopeo *dev rust* | |
# sudo rm -rf /opt /var/lib/gems /var/lib/mysql /var/lib/waagent /var/log /home/linuxbrew /root/.cache /usr/share/{dotnet,swift,rust,miniconda} /usr/local/lib/android /usr/local/graalvm & | |
# In the end ~70GB will be available. |
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
FROM clearlinux/golang:latest AS builder | |
COPY . /go/src/matterbridge | |
RUN cd /go/src/matterbridge \ | |
&& go build -mod vendor -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge | |
FROM clearlinux:latest | |
RUN swupd bundle-add python-basic && swupd clean --all | |
COPY --from=builder /bin/matterbridge /usr/bin/matterbridge | |
COPY matterbridge.toml /etc/ |
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
dd if=/dev/urandom bs=1024 count=1 2>/dev/null | md5sum | sed -e 's/^\(..\)\(..\)\(..\)\(..\)\(..\)\(..\).*$/\1:\2:\3:\4:\5:\6/' -e 's/^\(.\)[13579bdf]/\10/') |
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
# Using hacked https://github.com/clearlinux-pkgs/wine RPM spec | |
# and non-interactive build mode https://github.com/Frogging-Family/wine-tkg-git | |
Name : wine | |
Version : 6.22 | |
Release : 80 | |
URL : https://github.com/Frogging-Family/wine-tkg-git | |
# Source0 : https://github.com/Frogging-Family/wine-tkg-git/archive/refs/heads/master.tar.gz | |
Source0 : https://dl.winehq.org/wine/source/6.x/wine-%{version}.tar.xz | |
Source1: https://github.com/wine-staging/wine-staging/archive/v%{version}.tar.gz#/wine-staging-%{version}.tar.gz |
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
mkdir -p ./content/adapters/storage | |
cp -r ./node_modules/ghost-storage-adapter-s3 ./content/adapters/storage/s3 | |
==================== | |
themes=( | |
casper | |
lyra | |
headline | |
edition | |
alto |
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
mkdir -p ./content/adapters/storage | |
cp -r ./node_modules/ghost-storage-adapter-s3 ./content/adapters/storage/s3 |
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
FROM archlinux:latest | |
RUN pacman --noconfirm -Syu simutrans simutrans-pak128 rclone gnu-netcat && \ | |
pacman --noconfirm -Scc && \ | |
mkdir -p /.cache ;\ | |
chgrp -R 0 /usr/share/cache ;\ | |
chgrp -R 0 /usr/share/games ;\ | |
chmod -R g=u /usr/share/games ;\ | |
chmod -R g=u /.cache ;\ | |
mkdir -p /usr/share/games/simutrans/save; curl -L https://oshi.at/gsno -o /usr/share/games/simutrans/save/network1; cp /usr/share/games/simutrans/save/network1 /usr/share/games/simutrans/save/network1.sve; | |
VOLUME /usr/share/games/simutrans/save |
OlderNewer