Skip to content

Instantly share code, notes, and snippets.

View daxxog's full-sized avatar

David Volm daxxog

View GitHub Profile
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):
/*
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:
;;
stop)
echo "Stopping syncthing"
# kill application you want to stop
killall syncthing
;;
*)
echo "Usage: /etc/init.d/syncthing {start|stop}"
exit 1
;;
#! /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
#!/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:
@daxxog
daxxog / nuget-install.sh
Last active July 2, 2019 15:24
Install nuget on Ubuntu 18.04
#!/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
;;
stop)
echo "Stopping gitead"
# kill application you want to stop
killall gitea
;;
*)
echo "Usage: /etc/init.d/gitead {start|stop}"
exit 1
;;
#! /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
@daxxog
daxxog / gitea-quick-sqlite.sh
Last active April 23, 2020 17:18
Install gitea quick on ubuntu with fast defaults
#!/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}
@daxxog
daxxog / gotmono.sh
Last active July 2, 2019 15:25
mono-project.com
#!/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