anduin / Wikipedia API
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 2 years ago
Wikipedia API
https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=archlinux&format=json
https://en.wikipedia.org/w/api.php?action=query&prop=extracts&format=json&exintro=&explaintext=&exsectionformat=wiki&pageids=674891
anduin / Install K8S
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 2 years ago
Install K8S on your home lab!
| 1 | #/bin/bash |
| 2 | # This script is to install Kubernetes on Ubuntu 22.04 LTS, with Calico as CNI |
| 3 | # This script used 10.244.0.0/16 as pod network CIDR. This network should not be used in your physical network. |
| 4 | # This script used Calico v3.27.0. You can change it to the latest version. |
| 5 | # Reference: https://www.cherryservers.com/blog/install-kubernetes-on-ubuntu |
| 6 | |
| 7 | DEBIAN_FRONTEND=noninteractive sudo apt update |
| 8 | DEBIAN_FRONTEND=noninteractive sudo apt install curl gnupg2 software-properties-common apt-transport-https ca-certificates -y |
| 9 | |
| 10 | echo "Disable swap..." |
codgician_local / openwrt-payload
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 2 years ago
| 1 | #!/bin/sh |
| 2 | # OpenWrt image generation script |
| 3 | # This is only intended for dot build upgrades! |
| 4 | # Execute inside a new folder. |
| 5 | |
| 6 | # Parameters: change to your configuration! |
| 7 | routerUser="root" |
| 8 | routerIp="192.168.0.1" |
| 9 | version="23.05.2" |
| 10 | baseUrl="https://downloads.openwrt.org/releases/${version}/targets/x86/64" |
anduin / Init all slns
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 2 years ago
Init all slns
| 1 | # Create solution. |
| 2 | rm *.sln |
| 3 | dotnet new sln |
| 4 | find . -name *.csproj | xargs -I {} dotnet sln add {} |
| 5 | |
| 6 | # Build projects |
| 7 | find . -name *.csproj | xargs -I {} dotnet publish {} -r win-x64 -c Release --self-contained |
| 8 | |
| 9 | # Push all |
| 10 | for dir1 in ./*; do |
aimerneige / extract specific file(s) from tar.gz
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 2 years ago
| 1 | # extract specific file(s) from tar.gz |
| 2 | tar -zxvf <tar filename> <file you want to extract> |
| 3 | |
| 4 | # -x: instructs tar to extract files. |
| 5 | # -f: specifies filename / tarball name. |
| 6 | # -v: Verbose (show progress while extracting files). |
| 7 | # -z: filter archive through gzip, use to decompress .gz files. |
| 8 | # -t: List the contents of an archive |
| 9 | # https://unix.stackexchange.com/questions/61461/how-to-extract-specific-files-from-tar-gz |
anduin / Cloud build gz builder
0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 2 years ago
| 1 | using System.IO.Compression; |
| 2 | using Newtonsoft.Json; |
| 3 | |
| 4 | public class Program |
| 5 | { |
| 6 | public static async Task Main(string[] args) |
| 7 | { |
| 8 | var address = |
| 9 | @"qb"; |
| 10 | var flPath = Path.Combine(Directory.GetCurrentDirectory(), "files.txt"); |