Skip to content

Instantly share code, notes, and snippets.

@hi-noikiy
hi-noikiy / update_git.sh
Created September 15, 2024 03:12 — forked from ma6174/update_git.sh
批量更新git仓库
#!/bin/bash
pulls="repo1 repo2 repo3"
fetchs="repo4 repo5"
branch="yourBranch"
remote="yourRemoteGitName"
for i in $pulls
do
echo ">>>>>>>>$i"
cd $i
git remote -v
from base64 import b64encode, b64decode
from hashlib import md5
from phpserialize import namespace, serialize
from requests import session
ses = session()
'''
Arbitrary file write on think php 5.0.24
implemented by Frank
@hi-noikiy
hi-noikiy / docker-registry-mirrors.md
Created December 21, 2023 08:56 — forked from y0ngb1n/docker-registry-mirrors.md
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized

Docker Hub 镜像加速器

国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。Docker 官方和国内很多云服务商都提供了国内加速器服务。

Dockerized 实践 https://github.com/y0ngb1n/dockerized

配置加速地址

Ubuntu 16.04+、Debian 8+、CentOS 7+

@hi-noikiy
hi-noikiy / Create a Bootable MacOS Recovery USB with Linux.md
Created December 6, 2023 03:16 — forked from coolaj86/Create a Bootable MacOS Recovery USB with Linux.md
How to create Apple's Bootable MacOS Rescue Image from Linux

See bootableinstaller.com

How to create a Bootable MacOS Recovery USB from Linux

If your Mac is out-of-order or you otherwise cannot download macOS from the App Store, you can still create a bootable OS X recovery USB, and you can use that to create an Installer USB.

The downloads used in this process are legal and freely avaliable - including disk images directly from Apple's IT support pages, and open source utilities for extracting and converting pkg, dmg, and HFS+.

@hi-noikiy
hi-noikiy / wsl-win.sh
Created November 23, 2023 00:32
在win11上面设置wsl的ip
#!/usr/bin/bash
# 为 win 设置 wsl host
# 将文件copy到/etc/profile.d/下即可实现登录自动加载
# win hosts 文件路径
win_hosts_path="/mnt/c/Windows/System32/drivers/etc/hosts"
# 为 wsl2 设置的域名
wsl_domain="wsl.test"
# 获取 wsl2 的 ip
wsl_ip=$(ifconfig eth0 | grep -w inet | awk '{print $2}')
# 判断是否已存在 wsl2 的域名,如果存在则修改,否则追加
@hi-noikiy
hi-noikiy / WebGL-WebGPU-frameworks-libraries.md
Created November 21, 2021 14:47 — forked from dmnsgn/WebGL-WebGPU-frameworks-libraries.md
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries

  • three.js: JavaScript 3D library
  • stack.gl: an open software ecosystem for WebGL, built on top of browserify and npm.
  • PixiJS: Super fast HTML 5 2D rendering engine that uses webGL with canvas fallback
  • Pex: Pex is a javascript 3d library / engine allowing for seamless development between Plask and WebGL in the browser.
  • Babylon.js: a complete JavaScript framework for building 3D games with HTML 5 and WebGL
  • Filament: Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS and WASM/WebGL
  • ClayGL: A WebGL graphic library
@hi-noikiy
hi-noikiy / AppResourceRegistrar.php
Created January 8, 2021 10:36 — forked from jayminpanchal/AppResourceRegistrar.php
Laravel Custom Resource Registrar
use Illuminate\Routing\ResourceRegistrar;
use Illuminate\Support\Str;
class AppResourceRegistrar extends ResourceRegistrar
{
// add data to the array
/**
* The default actions for a resourceful controller.
*

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
//
// Regular Expression for URL validation
//
// Author: Diego Perini
// Created: 2010/12/05
// Updated: 2018/09/12
// License: MIT
//
// Copyright (c) 2010-2018 Diego Perini (http://www.iport.it)
//
@hi-noikiy
hi-noikiy / AndroidStudio Gradle插件.md
Created April 21, 2020 15:13 — forked from guanxinhua/AndroidStudio Gradle插件.md
[Android Studio] Gradle 设置代理 socks5 #Gradle #Port