Skip to content

Instantly share code, notes, and snippets.

View Typiqally's full-sized avatar
:octocat:
Work hard play hard

Jelle Maas Typiqally

:octocat:
Work hard play hard
View GitHub Profile
@Typiqally
Typiqally / _grid.scss
Created June 4, 2019 21:05
Flex-box grid generation script for SCSS
$grid-prefix: '.col';
$grid-end: 12;
$grid-map: (
default: (prefix: null, min-width: null, base-font: 16px),
small: (prefix: 'sm', min-width: 576px, base-font: 16px),
medium: (prefix: 'md', min-width: 768px, base-font: 16px),
large: (prefix: 'lg', min-width: 992px, base-font: 16px),
xlarge: (prefix: 'xl', min-width: 1200px, base-font: 16px)
);
@mixin grid-generate($grid-entry) {
@Typiqally
Typiqally / install-theme-scheduler.ps1
Last active July 6, 2023 20:44
Theme scheduler for Windows 10 Dark and Light mode based on sunset and sunrise time's, also includes a simple installer
New-Item -Path $env:LOCALAPPDATA -Name "Scripts" -ItemType "directory"
$url = "https://gist.githubusercontent.com/Typiqally/3ee013f1576ba3066a3e20c5a8c3aa01/raw/e21b2a7d205fdc2dc9c97a7de1dd91544d3e9569/theme-scheduler.ps1"
$WebClient = New-Object System.Net.WebClient
$WebClient.DownloadFile($url,"%LocalAppData%\Scripts\theme-scheduler.ps1")
$Path = $env:LOCALAPPDATA + "\Scripts\"
$output = [IO.Path]::Combine($Path, "theme-scheduler.ps1")
#!/bin/sh
echo "\033[0;32mDownloading and installing Docker...\033[0m"
curl -sSL get.docker.com | sh && sudo usermod pi -aG docker
echo "\033[0;32mDownloading and installing SSL library 1.0.2...\033[0m"
sudo apt-get install libssl1.0.2 -y
echo "\033[0;32mDownloading the Microsoft repository configuration...\033[0m"
curl https://packages.microsoft.com/config/debian/stretch/multiarch/prod.list > ./microsoft-prod.list
@Typiqally
Typiqally / install-dotnet-core-sdk-3.1.sh
Last active December 20, 2019 10:29
Install script for installing .NET Core SDK 3.1 on linux arm based systems (Raspberry PI)
sudo apt-get install curl libunwind8 gettext
curl -sSL -o dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Runtime/release/3.1/dotnet-runtime-latest-linux-arm.tar.gz
sudo mkdir -p /opt/dotnet && sudo tar zxf dotnet.tar.gz -C /opt/dotnet
sudo ln -s /opt/dotnet/dotnet /usr/local/bin
@Typiqally
Typiqally / update-unifi.sh
Last active March 15, 2022 17:58
UniFi controller update script
#! /bin/bash
colour='\033[1;32m'
less='\033[0m'
read -p "Please enter a STABLE version or press enter for version 7.0.23: " version
if [[ -z "$version" ]]; then
version='7.0.23'
fi
@Typiqally
Typiqally / post-receive
Created September 1, 2021 10:30
Git server deployment post-receive hook
#!/bin/sh
set -eu
NAME="maastelecom"
SERVICE="kestrel-$NAME"
GIT_DIRECTORY="/home/deploy/$NAME.git"
WORK_TREE="/home/deploy/$NAME"
OUTPUT_DIRECTORY="/var/www/$NAME"
BRANCH="master"
[Unit]
Description=MEGAcmd server
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=on-failure
RestartSec=1
ExecStart=/usr/bin/mega-cmd-server
@Typiqally
Typiqally / dotnet-uninstall.sh
Created October 28, 2021 17:48
Uninstall .NET SDK and runtimes
version="6.0.0-rc.1"
rm -rf ~/.dotnet/$version*
rm -rf ~/.dotnet/sdk/$version*
rm -rf ~/.dotnet/shared/Microsoft.NETCore.App/$version*
rm -rf ~/.dotnet/shared/Microsoft.AspNetCore.All/$version*
rm -rf ~/.dotnet/shared/Microsoft.AspNetCore.App/$version*
rm -rf ~/.dotnet/host/fxr/$version*
@Typiqally
Typiqally / drawio_mime_type.sh
Created November 23, 2021 21:24 — forked from giner/drawio_mime_type.sh
Give *.drawio files MIME type to make application association work
#!/bin/sh
# drawio.xml is taken from Draw.io debian package
cat > ~/.local/share/mime/packages/drawio.xml << 'EOF'
<?xml version="1.0" encoding="utf-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/vnd.jgraph.mxfile">
<glob pattern="*.drawio"/>
<comment>draw.io Diagram</comment>
<icon name="x-office-document" />
winget uninstall "windows web experience pack"
Get-AppxPackage * | Remove-AppxPackage