Skip to content

Instantly share code, notes, and snippets.

jonnyyu

Block or report user

Report or block jonnyyu

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
@jonnyyu
jonnyyu / aurora_serverless.py
Last active Aug 26, 2019
Create Aurora Serverless in CDK
View aurora_serverless.py
from typing import Optional, Union
import jsii
from aws_cdk import (
aws_ec2 as ec2,
aws_rds as rds,
aws_kms as kms,
aws_secretsmanager as secretsmanager,
core,
)
View git_clone_outside_container.txt
This file has been truncated, but you can view the full file.
C:\Data2>git config --global --list
fatal: unable to read config file 'C:/Users/Administrator.ECS-BASE-WIN-20/.gitconfig': No such file or directory
C:\Data2>git config --system --list
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
@jonnyyu
jonnyyu / save_lock_screen_images.bat
Created Nov 28, 2017
Save Windows Lock Screen Images
View save_lock_screen_images.bat
copy %userprofile%\AppData\Local\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets\*.* %userprofile%\Pictures\Windows_LockScreen
cd /d %userprofile%\Pictures\Windows_LockScreen
ren * *.jpg
@jonnyyu
jonnyyu / gist:825340ec485cfbf79e4e0b9a369dc9a1
Created Apr 5, 2017
fake a react-packager to avoid launching packager on CI
View gist:825340ec485cfbf79e4e0b9a369dc9a1
#!/usr/bin/ruby
require 'webrick'
server = WEBrick::HTTPServer.new(:Port => 8081)
server.mount_proc '/' do |req, res|
res.body = 'packager-status:running'
end
server.start
View gist:19286fcd7be928d2b184
require 'formula'
class Llvm33 < Formula
homepage 'http://llvm.org/'
revision 1
stable do
url 'http://llvm.org/releases/3.3/llvm-3.3.src.tar.gz'
sha1 'c6c22d5593419e3cb47cbcf16d967640e5cce133'
@jonnyyu
jonnyyu / main.mm
Created Feb 7, 2014
check app is responding on Mac
View main.mm
//
// main.c
// AppStatusChecker
//
// Created by Jonny Yu on 1/23/14.
// Copyright (c) 2014 Jonny Yu. All rights reserved.
//
#include <CoreServices/CoreServices.h>
#include <ApplicationServices/ApplicationServices.h>
View HelloWorld.cs
using System;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
namespace MSBuildHelloWorldTask
{
public class HelloWorld : Task
{
[Required]
public string FirstName
You can’t perform that action at this time.