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
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| // deletes =\n =\r\n and =\r, meant for MHTML files | |
| // -s flag for silent processing | |
| int main(int argc, char *argv[]) | |
| { | |
| int c; | |
| int silent = 0; | |
| if (argc > 1 && strcmp(argv[1], "-s") == 0) silent = 1; |
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 | |
| mkdir -p /tmp/zshrc-pluginless | |
| cat ~/.zshrc | sed "s/^plugins=/#plugins=/" > /tmp/zshrc-pluginless/.zshrc | |
| ZDOTDIR="/tmp/zshrc-pluginless" zsh |
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 [[ $(/usr/bin/id -u) -ne 0 ]]; then | |
| echo "Not running as root" | |
| exit | |
| fi | |
| echo -ne "Enter date (YYYY/MM/DD): " | |
| read date | |
| echo $date | |
| mv -v /etc/pacman.d/mirrorlist /tmp/mirrorlist.bak | |
| echo "Server = https://archive.archlinux.org/repos/$date/\$repo/os/\$arch" >> /etc/pacman.d/mirrorlist |
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 | |
| if [[ $(/usr/bin/id -u) -ne 0 ]]; then | |
| echo "Not running as root" | |
| exit | |
| fi | |
| pkill Discord | |
| cd /tmp | |
| if ls | grep "discupd.tar.gz"; then | |
| rm discupd.tar.gz | |
| fi |
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
| rod1 = int(input("rod 1 DV: ")) | |
| rod2 = int(input("rod 2 DV: ")) | |
| print ("rod1 [" + str(64-rod1) + "/64], combine with DV " + str(68-rod1) + "[" + str(rod1-4) + "/64]\n") | |
| print ("rod2 [" + str(64-rod2) + "/64], combine with DV " + str(68-rod2) + "[" + str(rod2-4) + "/64]\n") | |
| print ("combination of rods gives DV " +str(rod1+rod2-67) + "[" + str(131-rod1-rod2) + "/64], combine with DV " + str(135-rod1-rod2) + "[" + str(rod1+rod2-71) + "/64]") | |
| # bad code ik |