Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dulacp
dulacp / opera.fen
Last active October 12, 2022 13:14
Opera Game FEN
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq e3 0 1
rnbqkbnr/pppp1ppp/8/4p3/4P3/8/PPPP1PPP/RNBQKBNR w KQkq e6 0 2
rnbqkbnr/pppp1ppp/8/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R b KQkq - 1 2
rnbqkbnr/ppp2ppp/3p4/4p3/4P3/5N2/PPPP1PPP/RNBQKB1R w KQkq - 0 3
rnbqkbnr/ppp2ppp/3p4/4p3/3PP3/5N2/PPP2PPP/RNBQKB1R b KQkq d3 0 3
rn1qkbnr/ppp2ppp/3p4/4p3/3PP1b1/5N2/PPP2PPP/RNBQKB1R w KQkq - 1 4
rn1qkbnr/ppp2ppp/3p4/4P3/4P1b1/5N2/PPP2PPP/RNBQKB1R b KQkq - 0 4
rn1qkbnr/ppp2ppp/3p4/4P3/4P3/5b2/PPP2PPP/RNBQKB1R w KQkq - 0 5
rn1qkbnr/ppp2ppp/3p4/4P3/4P3/5Q2/PPP2PPP/RNB1KB1R b KQkq - 0 5
rn1qkbnr/ppp2ppp/8/4p3/4P3/5Q2/PPP2PPP/RNB1KB1R w KQkq - 0 6
@dulacp
dulacp / download.py
Created August 26, 2020 17:02
Download all images from Zenfolio
import os
import re
import requests
import zenapi
_dir_root = '~/Downloads/ZenfolioBackup'
def process_gallery(gallery, curr_dir):
@dulacp
dulacp / debounce.py
Created December 4, 2018 00:39 — forked from walkermatt/debounce.py
A debounce function decorator in Python similar to the one in underscore.js, tested with 2.7
from threading import Timer
def debounce(wait):
""" Decorator that will postpone a functions
execution until after wait seconds
have elapsed since the last time it was invoked. """
def decorator(fn):
def debounced(*args, **kwargs):
def call_it():
@dulacp
dulacp / README.md
Last active July 24, 2018 10:04
CRMint - deploy master branch with Google Cloud Shell

Deploy CRMint on Google Cloud Platform

Step by step deployment

  1. Go to https://console.cloud.google.com
  2. Select or create your project
  3. Click "Cloud Shell" button

You are now ready to run these commands:

@dulacp
dulacp / Raspberry-WAP-config-steps.md
Last active August 29, 2020 05:04
Configure a Raspberry Pi 3 (Debian Jessie) as a isolated Wi-Fi Access Point

Raspberry as a standolone Wi-Fi Access Point

A reminder on how to configure a Raspberry Pi 3 (Debian Jessie) as a Wi-Fi Access Point

Find the Raspberry Pi ethernet ip-address

Instructions for the macOS platform, little trick to find the raspberry pi ip-address while connected through ethernet.

Connect the Raspberry Pi with an ethernet cable

<style>
.iframe-container {
background: #ccc;
position: relative;
height: 0;
padding-bottom: 75%; /* 4/3 on mobile, padding = 3/4 */
}
.iframe-container iframe {
position: absolute;
top: 0;
@dulacp
dulacp / iframe.html
Last active October 21, 2020 08:03
360player iframe simple example
<script src="https://360player.io/static/dist/scripts/embed.js" defer></script>
<iframe src="https://360player.io/p/k6f7rb/" frameborder="0" width=560 height=315 allow="fullscreen; xr-spatial-tracking" data-token="k6f7rb"></iframe>
@dulacp
dulacp / keybase.md
Last active November 27, 2017 10:50

Keybase proof

I hereby claim:

  • I am dulacp on github.
  • I am dulaccc (https://keybase.io/dulaccc) on keybase.
  • I have a public key whose fingerprint is 10B3 54B6 F5C5 1E34 6FD9 A800 16C8 459A 0397 834C

To claim this, I am signing this object:

# VERSION 1.0.4
# Author: @madhavajay
# This currently works for iOS and watchOS in the Simulator and Devices
# Changes
# Using ${TOOLCHAIN} in two places now
# Added double quotes " around paths
# Fixed watchOS Issues
# Instructions iOS
@dulacp
dulacp / sync.sh
Created August 1, 2015 12:10
Synchronize two AWS buckets
aws s3 sync s3://source-bucket s3://destination-bucket --acl=bucket-owner-full-control --source-region <region> --region <destination-region>