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 functools import reduce | |
# here are my variables | |
davidAge = 25 | |
askAge = int(input("How old are you?\n")) | |
ageDifference = askAge - davidAge | |
magic = 7 # <-- this is the value I changed | |
# this will get the proper way to say year(s) | |
def getYearS(number): |
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
/* | |
arian/pngjs | |
v0.2.2, minified browserify build | |
MIT License | |
Copyright (c) 2016 Arian Stolwijk | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
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
;; | |
stop) | |
echo "Stopping syncthing" | |
# kill application you want to stop | |
killall syncthing | |
;; | |
*) | |
echo "Usage: /etc/init.d/syncthing {start|stop}" | |
exit 1 | |
;; |
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 | |
# /etc/init.d/syncthing | |
### BEGIN INIT INFO | |
# Provides: syncthing | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Run syncthing at startup |
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 | |
#curl -L https://tinyurl.com/gotsyncthing | sh | |
# Add the release PGP keys: | |
curl -s https://syncthing.net/release-key.txt | sudo apt-key add - | |
# Add the "stable" channel to your APT sources: | |
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list | |
# Update and install syncthing: |
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 | |
#curl -L https://gist.githubusercontent.com/daxxog/75ef4ed43f6c9923ed520f8f3817a2e8/raw/nuget-install.sh | sh | |
#folder structure | |
cd ~ | |
mkdir .microsoft | |
cd .microsoft | |
mkdir dotnet | |
cd dotnet |
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
;; | |
stop) | |
echo "Stopping gitead" | |
# kill application you want to stop | |
killall gitea | |
;; | |
*) | |
echo "Usage: /etc/init.d/gitead {start|stop}" | |
exit 1 | |
;; |
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 | |
# /etc/init.d/gitead | |
### BEGIN INIT INFO | |
# Provides: gitead | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Run gitead at startup |
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 | |
#curl -L https://gist.githubusercontent.com/daxxog/880439a0d6a943bae8d8b1c88af60cc4/raw/gitea-quick-sqlite.sh | sh | |
GITEA_RELEASE=1.11.4 | |
sudo apt install -y git | |
cd ~ | |
mkdir .gitea | |
cd .gitea | |
mkdir gitea-${GITEA_RELEASE} | |
cd gitea-${GITEA_RELEASE} |
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 | |
#curl -L tinyurl.com/gotmono | sh | |
sudo apt install gnupg ca-certificates | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF | |
echo "deb https://download.mono-project.com/repo/ubuntu stable-bionic main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list | |
sudo apt update | |
sudo apt install -y mono-complete | |
curl -L https://gist.githubusercontent.com/daxxog/75ef4ed43f6c9923ed520f8f3817a2e8/raw/nuget-install.sh | sh |