国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
#!/bin/sh | |
# based on https://gist.github.com/ipedrazas/9c622404fb41f2343a0db85b3821275d | |
# delete all evicted pods from all namespaces | |
kubectl get pods --all-namespaces | grep Evicted | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
# delete all containers in ImagePullBackOff state from all namespaces | |
kubectl get pods --all-namespaces | grep 'ImagePullBackOff' | awk '{print $2 " --namespace=" $1}' | xargs kubectl delete pod | |
# delete all containers in ImagePullBackOff or ErrImagePull or Evicted state from all namespaces |
Note
to active Office without crack, just follow https://github.com/WindowsAddict/IDM-Activation-Script,
you wiil only need to run
irm https://massgrave.dev/ias | iex
<# | |
.NOTES | |
How to use: Open Visual Studio, go to Tools – External Tools to bring up the External Tools dialog, add a new tools menu with the following configuration: | |
Title: Manage User Secrets (Or whatever you want) | |
Command: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe (Path to powershell.exe) | |
Arguments: Path-to-this-script(e.g. D:\VisualStudioTools\usersecrets.ps1) | |
Initial Directory: $(ProjectDir) | |
.PARAMETER ProjectFilePath | |
The csproj file's path, or keep it empty to search *.csproj file in initial directory |
The best way to safely and securely use local domains pointing to 127.0.0.1 is to edit your local settings (/etc/hosts) and add your own settings. Keep in mind if you want to use subdomains, you need to enter all variations.
Example:
# Adding bottom of your current file /etc/hosts
################# MY LOCAL DOMAINS
127.0.0.1 local.com admin.local.com
127.0.0.1 domain1.com
kubectl get pods | grep Evicted | awk '{print $1}' | xargs kubectl delete pod |
public class Startup | |
{ | |
public IServiceProvider ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc().AddJsonOptions(options => | |
{ | |
options.SerializerSettings.Converters.Add(new Newtonsoft.Json.Converters.StringEnumConverter()); | |
options.SerializerSettings.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore; | |
}); | |
} |
#!/bin/sh | |
CHROOT_DIR=`mktemp -d` | |
mkdir -p $CHROOT_DIR/bin $CHROOT_DIR/etc $CHROOT_DIR/proc | |
cp /bin/busybox $CHROOT_DIR/bin/ || exit | |
ln -s busybox $CHROOT_DIR/bin/ls | |
mount -t proc proc $CHROOT_DIR/proc | |
chroot $CHROOT_DIR /bin/ls -l /proc/self/exe | |
umount $CHROOT_DIR/proc | |
rm -rf $CHROOT_DIR |