Skip to content

Instantly share code, notes, and snippets.

View DylanDelobel's full-sized avatar
Coffee 😎

Dylan Delobel DylanDelobel

Coffee 😎
View GitHub Profile
@meekowhy
meekowhy / Base64FileUpload.php
Last active July 2, 2021 09:09
Api platform Base64 file upload
<?php
declare(strict_types=1);
namespace App\FileUpload;
interface Base64FileUpload extends FileUpload
{
public function getBase64fileContent(): ?string;
@vincentclaes
vincentclaes / login-to-stackoverflow.py
Last active April 22, 2023 11:40
Schedule an AWS lambda with python 3.8 to run each day and logs in to stackoverflow. Put your email ("EMAIL") and password ("PASS") in the environment variables. lf you visit https://stackoverflow.com/ for 30 consecutive days, you can earn Enthusiast badge. And 100 days, Fanatic badge.
import os
import re
import datetime
import json
import urllib3
from urllib.parse import urlencode
def lambda_handler(event, context):
stack_overflow = StackOverflow()
@gskielian
gskielian / git-specify-ssh-key
Created October 14, 2014 16:51
Specifying SSH Key within Git Clone
#how to specify an ssh key to use when cloning a repo in Mac
ssh-agent bash -c 'ssh-add /Users/UR_USERNAME/.ssh/UR_PRIVATE_KEY; git clone git@DAS_GIT_URL'