Skip to content

Instantly share code, notes, and snippets.

View sionta's full-sized avatar

Andre Attamimi sionta

  • 17:34 (UTC +09:00)
View GitHub Profile
@r3t3ch
r3t3ch / crc32.ps1
Created June 27, 2018 16:20
Powershell CRC32 Function
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>
@tterb
tterb / Gulpfile.js
Last active March 24, 2025 07:25
An updated gulpfile for tterb.github.io
// 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');
@rajibdpi
rajibdpi / sublimetext.txt
Last active October 15, 2022 09:12
Sublime Text Licence Key Build 3176
----- 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
# 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.
@jacqinthebox
jacqinthebox / NewComputer.ps1
Created January 9, 2018 17:29
Mighty Powershell #powershell
Function New-Computer {
param(
[Parameter(Mandatory = $true)]
[ValidateSet('small','medium','large','x-large')]
[string]$installtype,
[Parameter(Mandatory = $true)]
[bool]$virtualmachine
)
@anthonyeden
anthonyeden / FontInstallation.ps1
Last active February 11, 2025 21:56
Font User Installation - Powershell (No Admin Password Needed)
# 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"
@kentork
kentork / profile.ps1
Last active November 17, 2024 01:36
Github operation on powershell
## 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
@shivendra14
shivendra14 / Illustrator_Scale_Artboard_and_Artwork.jsx
Last active December 13, 2024 23:47
Illustrator_Scale_Artboard_and_Artwork
#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)
anonymous
anonymous / nodejs.md
Created September 12, 2017 08:04
nodejs
/* 

Read a ini file

[Section1]
Param1=value1
[Section2]
Param2=value2
@vgaidarji
vgaidarji / build.prop
Created April 26, 2017 18:19 — forked from CHEF-KOCH/build.prop
Android Build.prop tweaks <- FOR ALL AOSP ROMS (4.0.x - 5.0.x) ->
# 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= -----