/*
Read a ini file
[Section1]
Param1=value1
[Section2]
Param2=value2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -TypeDefinition @" | |
// Copyright (c) Damien Guard. All rights reserved. | |
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 | |
using System; | |
using System.Collections.Generic; | |
using System.Security.Cryptography; | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gulpfile.js | |
const autoprefixer = require('autoprefixer'); | |
const browserSync = require('browser-sync').create(); | |
const concat = require('gulp-concat'); | |
const cssnano = require('cssnano'); | |
const del = require('del'); | |
const gulp = require('gulp'); | |
const gutil = require('gulp-util'); | |
const imagemin = require('gulp-imagemin'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
----- BEGIN LICENSE ----- | |
sgbteam | |
Single User License | |
EA7E-1153259 | |
8891CBB9 F1513E4F 1A3405C1 A865D53F | |
115F202E 7B91AB2D 0D2A40ED 352B269B | |
76E84F0B CD69BFC7 59F2DFEF E267328F | |
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4 | |
969624E7 DC9CD4D5 717FB40C 1B9738CF | |
20B3C4F1 E917B5B3 87C38D9C ACCE7DD8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use an internal repository to download Chocolatey nupkg to the local path: | |
$packageRepo = '<INSERT REPO URL>' | |
# uncomment if you want to download the file from a remote OData (HTTP/HTTPS) internal url (such as Artifactory, Nexus, ProGet, or Chocolatey.Server) | |
#$searchUrl = ($packageRepo.Trim('/'), 'Packages()?$filter=(Id%20eq%20%27chocolatey%27)%20and%20IsLatestVersion') -join '/' | |
# UPDATE THIS PATH | |
$localChocolateyPackageFilePath = "$env:SystemDrive\choco-setup\packages\chocolatey.0.10.0.nupkg" | |
# Determine unzipping method | |
# 7zip is the most compatible, but you need an internally hosted 7za.exe. | |
# Make sure the version matches for the arguments as well. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function New-Computer { | |
param( | |
[Parameter(Mandatory = $true)] | |
[ValidateSet('small','medium','large','x-large')] | |
[string]$installtype, | |
[Parameter(Mandatory = $true)] | |
[bool]$virtualmachine | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run this as a Computer Startup script to allow installing fonts from C:\InstallFont\ | |
# Based on http://www.edugeek.net/forums/windows-7/123187-installation-fonts-without-admin-rights-2.html | |
# Run this as a Computer Startup Script in Group Policy | |
# Full details on my website - https://mediarealm.com.au/articles/windows-font-install-no-password-powershell/ | |
$SourceDir = "C:\InstallFont\" | |
$Source = "C:\InstallFont\*" | |
$Destination = (New-Object -ComObject Shell.Application).Namespace(0x14) | |
$TempFolder = "C:\Windows\Temp\Fonts" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## article - https://qiita.com/drafts/f500f261d1292ebe2941 | |
function gh { | |
Param( | |
[ValidateSet("show","open","clone","find","grep","get","rm","cd","pushd","dir","edit","pwd","list","ls","register","create")][Parameter(Mandatory=$false)][string]$subcommand, | |
[Parameter(Mandatory=$false)][switch]$g, # globally (public) | |
[Parameter(Mandatory=$false)][switch]$e, # edit | |
[Parameter(Mandatory=$false)][switch]$d, # directory | |
[Parameter(Mandatory=$false)][switch]$r, # remote | |
[Parameter(Mandatory=$false)][switch]$p, # purge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#target Illustrator | |
var requiredABsize = 1700; //px | |
var activeDoc = app.activeDocument; | |
var abActive = activeDoc.artboards[ activeDoc.artboards.getActiveArtboardIndex() ]; | |
var abProps = getArtboardBounds(abActive); | |
var scale = findRequiredScale(abProps); | |
if (scale > 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Begin build properties | |
# EOL UNIX | |
# 0.0 644 /system/build.prop | |
# | |
# Note: Some changes are Device and OS/ROM independent! | |
# Note2: Some settings are between | |
# performance and security <- I prefer last one | |
# | |
ro.build.id= ----- | |
ro.build.display.id= ----- |