Skip to content

Instantly share code, notes, and snippets.

View blenderdeluxe's full-sized avatar
❤️
I love programming

Diego Cortés blenderdeluxe

❤️
I love programming
View GitHub Profile
global proc updatePhotometricLights(string $filePath) {
// Encuentra todas las luces fotométricas en la escena
string $photometricLights[] = `ls -type "aiPhotometricLight"`;
// Actualiza el atributo 'Photometry File' para cada luz
for ($light in $photometricLights) {
setAttr ($light + ".aiFilename") -type "string" $filePath;
}
}
#!/bin/bash
#Script para Desactivar ó Activar Touch de Wacom Bamboo Pen and Touch
# ------------ Creado por Diego Cortés -----------------
# -------------- www.blenderdeluxe.com -----------------
function verif(){
string $array[] = `ls -sl`;
for ( $item in $array )
{
setAttr -type "string" ($item + ".aiAov") "postes";
}
$image_storage = '';
$newImage->resize(800, null, function ($constraint) {
$constraint->aspectRatio();
})->encode('jpg', 90);
//Guardo nueva imagen grande
Storage::disk('s3')->getDriver()->getAdapter()->getClient()->putObject(array(
'Bucket' => config('filesystems.disks.s3.bucket'),
'Key' => $image_storage . $name . '.jpg',
'Body' => $newImage->__toString(),
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
import urllib.request
import json
from bs4 import BeautifulSoup as soup
myurl = 'https://cookpad.com/cl/recetas/15028629-postre-de-huesillos?ref=guest_feed'
req = urllib.request.Request(
myurl,
data=None,
headers={
UPDATE wp_options SET option_value = replace(option_value, 'http://www.oldurl', 'http://www.newurl') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'http://www.oldurl','http://www.newurl');
UPDATE wp_posts SET post_content = replace(post_content, 'http://www.oldurl', 'http://www.newurl');
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.oldurl','http://www.newurl');
@blenderdeluxe
blenderdeluxe / setup.md
Created October 6, 2017 06:27 — forked from chris-jamieson/setup.md
Set up Franz for Ubuntu
  • Download Franz for your distribution from MeetFranz.com
  • change into the same directory as the downloaded file, then sudo tar -xf Franz-linux-x64-0.9.10.tgz -C /opt/franz
  • (optional) wget "https://cdn-images-1.medium.com/max/360/1*v86tTomtFZIdqzMNpvwIZw.png" -O franz-icon.png then sudo cp franz-icon.png /opt/franz
  • (optional) sudo touch /usr/share/applications/franz.desktop then sudo vim /usr/share/applications/franz.desktop

paste the following lines into the file, then save the file:

[Desktop Entry]
Name=Franz
Comment=
@blenderdeluxe
blenderdeluxe / gist:0942e466b13141d1e04c97b79fbdf1b8
Created June 28, 2017 22:42 — forked from katowulf/gist:4741111
Firebase security rules for a simple chat room model
{
"chat": {
// the list of chats may not be listed (no .read permissions here)
// a chat conversation
"$key": {
// if the chat hasn't been created yet, we allow read so there is a way
// to check this and create it; if it already exists, then authenticated
// user (specified by auth.id) must be in $key/users
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class MenuManager : MonoBehaviour {
public void BotonJugar()
{