Skip to content

Instantly share code, notes, and snippets.

View aclk's full-sized avatar
☄️
diu, diu, diu

aqing aclk

☄️
diu, diu, diu
View GitHub Profile
@aclk
aclk / git-clone.ps1
Last active August 7, 2021 08:21
setup work flow
function Unj-GitCloneAllBy($User, $Proxy = $null) {
(curl -Proxy $Proxy "https://api.github.com/users/$User/repos?page=1&per_page=100").Content
| ConvertFrom-Json
| %{ $_.clone_url }
# workaround git printing to stderr by @wekempf aka William Kempf
# https://github.com/dahlbyk/posh-git/issues/109#issuecomment-21638678
| %{ & git clone $_ 2>&1 }
| % { $_.ToString() }
}
@aclk
aclk / install_chocolate.ps1
Created August 7, 2021 08:07
install chocolate with powershell
$creds = Get-Credential
$username = $creds.GetNetworkCredential().UserName
$password = $creds.GetNetworkCredential().Password
$proxyServer = "https://local/proxy/server"
$webProxy = New-Object System.Net.WebProxy($proxyServer,$true)
$webclient = new-object System.Net.WebClient
$creds = Get-Credential
$webclient.Proxy=$webproxy
$webclient.Proxy.Credentials = $creds
@aclk
aclk / Microsoft.Powershell_profile.ps1
Last active November 12, 2021 01:13
Config proxy channel for IE and depandencies, work enjoy!
# Culture
Set-Culture -CultureInfo en-us
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
# Check git
@aclk
aclk / windows-10-setup.md
Created July 15, 2021 03:28 — forked from shakeel/windows-10-setup.md
How I setup Windows 10

Setup Windows 10

Use scoop to install all of the UNIX command line tools and most of my needed software tools.

powershell
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iex (new-object net.webclient).downloadstring('https://get.scoop.sh')
scoop bucket add versions
scoop install curl
set-executionpolicy remotesigned -scope currentuser
$key = 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced'
Set-ItemProperty $key Hidden 1
Set-ItemProperty $key HideFileExt 0
Set-ItemProperty $key ShowSuperHidden 0
## Install DotNetCore SDK
$dotnetInstallFilename = 'dotnet-install.ps1'
If(!(test-path $dotnetInstallFilename))
@aclk
aclk / scooped.ps1
Created July 15, 2021 03:26 — forked from a-bronx/scooped.ps1
A scoop of software
# Install scoop
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex
# Prepare scoop
scoop install aria2
scoop install git
# Add buckets
@aclk
aclk / ScoopInstall.ps1
Created July 15, 2021 03:25 — forked from semperos/ScoopInstall.ps1
Windows Apps & Utilities via Scoop
###########
# Buckets #
###########
scoop bucket add extras
scoop bucket add java
scoop bucket add nerd-fonts
scoop bucket add scoop-clojure https://github.com/littleli/scoop-clojure
############
@aclk
aclk / sketch-never-ending.md
Created November 25, 2018 08:19 — forked from Bhavdip/sketch-never-ending.md
Modify Sketch to never ending trial

Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@aclk
aclk / index.html
Created August 9, 2018 15:27
vuejs + sass Clock
<div class="container">
<template id="app-template">
<div>
<h1>{{msg}}</h1>
</div>
</template>
<template id="clock-min">
<div id="min"></div>
</template>
@aclk
aclk / README.md
Created June 5, 2018 06:49 — forked from MoOx/README.md
How to keep in sync your Git repos on GitHub, GitLab & Bitbucket easily