Sat Dec 04 2021 04:46:43 GMT+0000 (Coordinated Universal Time)
Saved by @spectrum18 #windows #cli
0x92AFDb35eF1bea00954944426AD46dA2ba11A134
#commandline #interesting #windows #ubuntu #linux
ip addr | grep eth0 | grep inet | awk '{print $2}' | awk -F '/' '{print $1}' | awk '{printf "%s:3000", $0}' | clip.exe
#installation #linux #bash #wsl #github #cli
#!/usr/bin/env bash # install github-cli VERSION=`curl "https://api.github.com/repos/cli/cli/releases/latest" | grep '"tag_name"' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c2-` echo $VERSION mkdir ~/downloads curl -sSL https://github.com/cli/cli/releases/download/v${VERSION}/gh_${VERSION}_linux_amd64.tar.gz -o ~/downloads/gh_${VERSION}_linux_amd64.tar.gz cd ~/downloads tar xvf gh_${VERSION}_linux_amd64.tar.gz sudo cp gh_${VERSION}_linux_amd64/bin/gh /usr/local/bin/ gh version sudo cp -r ~/downloads/gh_${VERSION}_linux_amd64/share/man/man1/* /usr/share/man/man1/ # man gh gh auth login rm -r ~/downloads
#windows #10
@echo off title Activate Windows 10 (ALL versions) for FREE - MSGuides.com&cls&echo =====================================================================================&echo #Project: Activating Microsoft software products for FREE without additional software&echo =====================================================================================&echo.&echo #Supported products:&echo - Windows 10 Home&echo - Windows 10 Professional&echo - Windows 10 Education&echo - Windows 10 Enterprise&echo.&echo.&echo ============================================================================&echo Activating your Windows...&cscript //nologo slmgr.vbs /ckms >nul&cscript //nologo slmgr.vbs /upk >nul&cscript //nologo slmgr.vbs /cpky >nul&set i=1&wmic os | findstr /I "enterprise" >nul if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43 >nul||cscript //nologo slmgr.vbs /ipk DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4 >nul||cscript //nologo slmgr.vbs /ipk YYVX9-NTFWV-6MDM3-9PT4T-4M68B >nul||cscript //nologo slmgr.vbs /ipk 44RPN-FTY23-9VTTB-MP9BX-T84FV >nul||cscript //nologo slmgr.vbs /ipk WNMTR-4C88C-JK8YV-HQ7T2-76DF9 >nul||cscript //nologo slmgr.vbs /ipk 2F77B-TNFGY-69QQF-B8YKP-D69TJ >nul||cscript //nologo slmgr.vbs /ipk DCPHK-NFMTC-H88MJ-PFHPY-QJ4BJ >nul||cscript //nologo slmgr.vbs /ipk QFFDN-GRT3P-VKWWX-X7T3R-8B639 >nul||cscript //nologo slmgr.vbs /ipk M7XTQ-FN8P6-TTKYV-9D4CC-J462D >nul||cscript //nologo slmgr.vbs /ipk 92NFX-8DJQP-P6BBQ-THF9C-7CG2H >nul&goto skms) else wmic os | findstr /I "home" >nul if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk TX9XD-98N7V-6WMQ6-BX7FG-H8Q99 >nul||cscript //nologo slmgr.vbs /ipk 3KHY7-WNT83-DGQKR-F7HPR-844BM >nul||cscript //nologo slmgr.vbs /ipk 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH >nul||cscript //nologo slmgr.vbs /ipk PVMJN-6DFY6-9CCP6-7BKTT-D3WVR >nul&goto skms) else wmic os | findstr /I "education" >nul if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk NW6C2-QMPVW-D7KKK-3GKT6-VCFB2 >nul||cscript //nologo slmgr.vbs /ipk 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ >nul&goto skms) else wmic os | findstr /I "10 pro" >nul if %errorlevel% EQU 0 (cscript //nologo slmgr.vbs /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX >nul||cscript //nologo slmgr.vbs /ipk MH37W-N47XK-V7XM9-C7227-GCQG9 >nul||cscript //nologo slmgr.vbs /ipk NRG8B-VKK3Q-CXVCJ-9G2XF-6Q84J >nul||cscript //nologo slmgr.vbs /ipk 9FNHH-K3HBT-3W4TD-6383H-6XYWF >nul||cscript //nologo slmgr.vbs /ipk 6TP4R-GNPTD-KYYHQ-7B7DP-J447Y >nul||cscript //nologo slmgr.vbs /ipk YVWGF-BXNMC-HTQYQ-CPQ99-66QFC >nul&goto skms) else (goto notsupported) :skms if %i% GTR 10 goto busy if %i% EQU 1 set KMS=kms7.MSGuides.com if %i% EQU 2 set KMS=s8.uk.to if %i% EQU 3 set KMS=s9.us.to if %i% GTR 3 goto ato cscript //nologo slmgr.vbs /skms %KMS%:1688 >nul :ato echo ============================================================================&echo.&echo.&cscript //nologo slmgr.vbs /ato | find /i "successfully" && (echo.&echo ============================================================================&echo.&echo #My official blog: MSGuides.com&echo.&echo #How it works: bit.ly/kms-server&echo.&echo #Please feel free to contact me at msguides.com@gmail.com if you have any questions or concerns.&echo.&echo #Please consider supporting this project: donate.msguides.com&echo #Your support is helping me keep my servers running 24/7!&echo.&echo ============================================================================&choice /n /c YN /m "Would you like to visit my blog [Y,N]?" & if errorlevel 2 exit) || (echo The connection to my KMS server failed! Trying to connect to another one... & echo Please wait... & echo. & echo. & set /a i+=1 & goto skms) explorer "http://MSGuides.com"&goto halt :notsupported echo ============================================================================&echo.&echo Sorry, your version is not supported.&echo.&goto halt :busy echo ============================================================================&echo.&echo Sorry, the server is busy and can't respond to your request. Please try again.&echo. :halt pause >nul
#windows #cli
net user admin *password* && net user Administrator *password*
#config #json #cli
{ "binary": "/mnt/c/users/jimmy/appdata/local/Microsoft/WindowsApps/MicrosoftEdge.exe", "provider": "bing", "customProviders": [ { "name": "gmail", "url": "https://inbox.google.com/search/%s", "tags": [ "email", "google", "mycontent" ] }, { "name": "gdrive", "url": "https://drive.google.com/drive/u/0/search?q=%s", "tags": [ "mycontent", "cloud" ] }, { "name": "edgesettings", "url": "edge://settings/?search=%s", "tags": [ "microsoft", "edge", "settings", "config" ] }, { "name": "edgehist", "url": "edge://history/all?q=%s", "tags": [ "edge", "mycontent" ] }, { "name": "msoft", "url": "https://docs.microsoft.com/en-us/search/?terms=%s", "tags": [ "microsoft", "dev", "docs", "windows" ] }, { "name": "gh", "url": "https://github.com/search?q=%s", "tags": [ "github", "dev" ] }, { "name": "ghr", "url": "https://github.com/search?q=%s+language:r", "tags": [ "github", "r", "dev" ] }, { "name": "ghpwsh", "url": "https://github.com/search?q=%s+language:powershell", "tags": [ "github", "powershell", "dev", "windows" ] }, { "name": "myrepos", "url": "https://github.com/search?q=%s+user:jimbrig", "tags": [ "github", "dev", "mycontent" ] }, { "name": "rseek", "url": "http://rseek.org/?q=%s", "tags": [ "r", "dev" ] }, { "name": "choco", "url": "https://community.chocolatey.org/packages?q=%s", "tags": [ "windows", "config", "packages", "software", "dev" ] }, { "name": "metacran", "url": "https://r-pkg.org/search.html?q=%s", "tags": [ "r", "dev", "docs" ] }, { "name": "psgallery", "url": "https://www.powershellgallery.com/packages?q=%s", "tags": [ "windows", "software", "packages", "config", "dev" ] }, { "name": "obsidian", "url": "https://forum.obsidian.md/search?q=%s", "tags": [ "dev", "docs", "obsidian", "forum" ] }, { "name": "devto", "url": "https://dev.to/search?q=%s", "tags": [ "dev", "forum" ] }, { "name": "devdocs", "url": "https://devdocs.io/#q=%s", "tags": [ "dev", "docs" ] }, { "name": "hashnode", "url": "https://hashnode.com/search?q=%s", "tags": [ "dev", "forum" ] }, { "name": "rsite", "url": "http://finzi.psych.upenn.edu/cgi-bin/namazu.cgi?query=%s&max=100&result=normal&sort=score&idxname=functions&idxname=views", "tags": [ "r", "dev" ] }, { "name": "rproj", "url": "https://www.google.com/search?q=%s&domains=r-project.org&sitesearch=r-project.org&btnG=Google+Search", "tags": [ "r", "dev" ] }, { "name": "rdrr", "url": "https://rdrr.io/search?q=%s", "tags": [ "r", "docs" ] }, { "name": "gistr", "url": "https://gist.github.com/search?q=%s+language:r&ref=searchresults", "tags": [ "r", "github", "dev" ] }, { "name": "fa", "url": "https://fontawesome.com/icons?d=gallery&q=%s", "tags": [ "dev", "design" ] }, { "name": "pypi", "url": "https://pypi.org/search/?q=%s", "tags": [ "dev", "python" ] } ] }
#cli
git config --global user.name "jmbenedetto" git config --global user.email "jmbenedetto@gmail.com"
#cli #bash
wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.11.0-Linux-x86_64.sh bash Miniconda3-py39_4.11.0-Linux-x86_64.sh conda install mamba -n base -c conda-forge
#api #blockchain #django #cli
pip install django-blockchain --Add app in your settings.py INSTALLED_APPS = [ "django_blockchain", ] --And something in your urls.py urlpatterns = patterns('', url(r'^blockchain$', 'django_blockchain.urls', name='blockchain_urls'),
#bash #shell #cli
a=(a b c); x=`echo ${!a[@]}` ;echo ${x: -1} # ArrayMaxIdxNo
#sftp #cli
ssh-keygen -y -f <privatekey.file> > <publickey.file>
#aws #install #cli
#!/usr/bin/env bash # -*- coding: utf-8 -*- # #~@filename: install-aws-cli.sh #~@source: https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip ./aws/install --install-dir /usr/local/aws-cli --bin-dir /usr/local/bin echo "#-------------------# # AWS # #-------------------# BIN: $(which aws) VERSION: $(aws --version) "
#cli #click
ping -q -w 1 -c 1 x.y.z.w > /dev/null && echo ok || echo error
#!/bin/bash if : >/dev/tcp/8.8.8.8/53; then echo 'Internet available.' else echo 'Offline.' fi
Copy this HTML code:
Preview:
open_in_newInstructions on embedding in Medium
Comments