Skip to content

Instantly share code, notes, and snippets.

Igor Grinchesku Arahnoid

  • Chernivtsi, Ukraine
Block or report user

Report or block Arahnoid

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:6cee1a4de2b8c9dec9b546dc40f34068
This file has been truncated, but you can view the full file.
# Add this file to your /etc/hosts to block all
# of the ad sites, porn and general junk on this
# list, including Google.
#
# Fell free to add or subtract sites as necessary.
#
# For linux noobs, to add this to /etc/hosts,
# run the following in the same directory of this
# file:
@Arahnoid
Arahnoid / ChangeColor.jsx
Last active Apr 21, 2019 — forked from theinsanecow/ChangeColor.jsx
[Update shape color] Photoshop script to update the colour of all shape and fill layers that are the same colour as the currently selected layer. Uses the foreground colour as the new colour. Tested in CS4 #Photoshop
View ChangeColor.jsx
// ChangeColor.jsx
//
// This photoshop script finds all shape and solid fill layers that match the color
// of the currently selected shape/fill layer and changes their color to the
// foreground color.
//
// Tested on Adobe Photoshop CS4 (Mac)
// enable double clicking from the Macintosh Finder or the Windows Explorer
#target photoshop
@Arahnoid
Arahnoid / MultiExporter.jsx
Last active Apr 21, 2019 — forked from TomByrne/MultiExporter.jsx
[Export from Illustrator]An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files #Illustrator
View MultiExporter.jsx
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to tom@tbyrne.org
@Arahnoid
Arahnoid / psd2png.js
Last active Apr 21, 2019 — forked from kikmedia/psd2png.js
[PSD to PNG] Dead simple javascript, providing a basic Photoshop action for exporting PSD files as PNG. Just launch it on your desktop. I think, this one is Windows only. #Photoshop
View psd2png.js
#target "photoshop"
var outputWidth = 1024;
var inputFolder = Folder.selectDialog("Input folder");
var outputFolder = Folder.selectDialog("Output folder");
if (inputFolder != null && outputFolder != null) {
var files = inputFolder.getFiles("*.psd");
for (var i = 0; i < files.length; i++) {
@Arahnoid
Arahnoid / PhotoshopSpriteStripMaker.js
Last active Apr 21, 2019 — forked from wiledal/PhotoshopSpriteStripMaker.js
[Export sprite sheet] Photoshop script for making a sprite sheet out of a folder of images #Photoshop
View PhotoshopSpriteStripMaker.js
/* FUNCS */
function move(l,x,y) {
var Position = l.bounds;
Position[0] = x - Position[0];
Position[1] = y - Position[1];
l.translate(-Position[0],-Position[1]);
}
@Arahnoid
Arahnoid / toggleHueSatLayers.js
Last active Apr 21, 2019 — forked from Lokno/toggleHueSatLayers.js
[Totle hue/saturation] Toggle the hue and saturation adjustment layers in photoshop #Photoshop
View toggleHueSatLayers.js
#target photoshop
var currentDoc = app.activeDocument;
for ( var i = 0; i < currentDoc.layers.length; i++ ) {
var layer = currentDoc.layers[i];
if( layer.kind === LayerKind.HUESATURATION )
{
layer.visible = layer.visible ? false : true;
}
@Arahnoid
Arahnoid / toggleLayerType.js
Last active Apr 21, 2019 — forked from Lokno/toggleLayerType.js
[Toggle layers visibility ]Toggle visiblity of a certain kind of layer in photoshop #Photoshop
View toggleLayerType.js
// Install by saving to PHOTOSHOP_DIRECTORY/Presets/Scripts
// Also works just by opening it with File->Open..
// Once installed, you can add an action to run it with a keyboard shortcut
// Open Actions window (Window->Actions)
// Click the "Create a New Action" Button (dog-eared paper icon)
// Choose the name of the action and the shortcut keys you want
// Click Record
// Select Insert Menu Item...
// Select File->Scripts->toggleLayerType
@Arahnoid
Arahnoid / gist:3425dbd0211cd2cb4cbc
Last active Apr 21, 2019 — forked from JakeRTFM/gist:6165876
[Get PNG from layers]Get PNG from layer in a group by hide/show one by one #Photoshop
View gist:3425dbd0211cd2cb4cbc
main();
function main(){
var doc = activeDocument;
var docPath = activeDocument.path;
var marketApps = doc.layerSets.getByName("Group Name");
for(var a=0; a<marketApps.layers.length; a++){
//alert(marketApps.layers[a]);
@Arahnoid
Arahnoid / psextendscriptexample.js
Last active Apr 21, 2019 — forked from aral/psextendscriptexample.js
[Export multiple resolution images]Using ExtendScript to save out multiple resolution images from Photoshop (with unsharp mask) #Photoshop
View psextendscriptexample.js
/*
The original files are 960x319.
Image sizes to save:
* 800x266 - Retina for 480x320 resolution (400 logical pixel wide panel areas)
* 740x246 - Desktop and iPad
* 616x205 - Retina for 320x480 resolution (308 logical pixel wide panel areas)
* 400x133 - 480x320 resolution
* 308x102 - 320x480 resolution
@Arahnoid
Arahnoid / export.js
Last active Apr 21, 2019 — forked from nextend/export.js
[Export selected layers]Export multiple selected layers from Photoshop with scripting #Photoshop
View export.js
app.activeDocument.suspendHistory("Export as png", "main()");
function main() {
if (app.documents.length) {
var docRef = app.activeDocument;
if (docRef.layers.length) {
var selected = getSelectedLayersIdx();
for (var i = 0; i < selected.length; i++) {
var layer = selectByIndex(selected[i]),
width = layer.bounds[2] - layer.bounds[0],
You can’t perform that action at this time.