This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Compute | |
| EC2 Virtual Private Servers | |
| Lightsail Amazon's hosting provider (vps, dns, storage) | |
| Lambda Functions you can run, written in Python, NodeJS, Go etc. Can run many in parallel. | |
| Batch Run software jobs on EC2 machines | |
| Elastic Beanstalk Run software on managed virtual machines | |
| Serverless Application Repository Repository of serverless applications that you can deploy (on lambda) | |
| AWS Outposts Basically run Amazon services on your own hardware (datacenter) | |
| EC2 Image Builder Create EC2 (ami?) images automatically |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace KeyRotate; | |
| use Doctrine\Common\Cache\PhpFileCache; | |
| use Doctrine\DBAL\Driver\PDOMySql\Driver; | |
| class PdoMysql extends Driver | |
| { | |
| protected $client; | |
| protected $cache; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hs.hotkey.bind({"cmd", "shift"}, "1", function() | |
| local app = hs.application.get("Joplin") | |
| if app == nil then | |
| local app = hs.application.open("Joplin") | |
| app:activate(true); | |
| else | |
| app:activate(true); | |
| end | |
| end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Services; | |
| use Psr\Http\Message\RequestInterface; | |
| use Zipkin\Propagation\RequestHeaders; | |
| use Zipkin\Tracing; | |
| class ZipkinGuzzleMiddleware { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Display Symfony2 logging with different coloring for different error levels | |
| tail -f var/logs/*.log | gawk ' | |
| /ERROR/ { print "\033[31m" $0 "\033[39;0m"; next; fflush();} | |
| /CRITICAL/ { print "\033[41;33;1m" $0 "\033[39;0m"; next; fflush();} | |
| /DEBUG/ { print "\033[34;1m" $0 "\033[39;0m"; next; fflush();} | |
| /INFO/ { print "\033[32;1m" $0 "\033[39;0m"; next; fflush();} | |
| $0; fflush(); | |
| ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Ports A and B each consist of an 8-bit Peripheral | |
| Data Register (PR) and an 8-bit Data Direction Register | |
| (DDR). | |
| If a bit in the DDR is set to the corresponding bit | |
| in the PR is an output, if a DDR bit is set to a zero, the | |
| corresponding PR bit is defined as an input. | |
| On a READ, the PR reflects the information present on the | |
| actual port pins (PA0-PA7, PBOPB7) for both input and |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| import pygame | |
| import numpy as np | |
| class Car(pygame.sprite.Sprite): | |
| def __init__(self, surface): | |
| self.bounded_rect = surface.get_rect() | |
| super(Car, self).__init__() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <Wire.h> | |
| #define NEXTCMD 128 // Issue when there will be more commands after this one | |
| #define LASTCMD 0 // Issue when when this is the last command before ending transmission | |
| /* Constants and default settings for the PCF */ | |
| // MODE SET | |
| #define MODESET 64 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| declare(strict_types=1); | |
| function foobar(int $arg1, string $arg2) : int | |
| { | |
| return 42; | |
| } | |
| foobar(1, "foo"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "jaytaph/security-example", | |
| "require": { | |
| "symfony/security-core": "~2.8" | |
| }, | |
| "authors": [ | |
| { | |
| "name": "Joshua Thijssen", | |
| "email": "[email protected]" | |
| } |