This file contains 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 javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.*; | |
import java.net.Socket; | |
import java.net.SocketAddress; | |
import java.util.concurrent.locks.Condition; | |
import java.util.concurrent.locks.Lock; |
This file contains 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
<!-- Application theme. --> | |
<style name="MyTheme" parent="@android:style/Theme.Holo"> | |
<item name="android:windowActionBarOverlay">true</item> | |
<item name="android:actionBarStyle">@style/MyTheme.ActionBar</item> | |
<item name="android:windowContentOverlay">@null</item> | |
<item name="android:windowBackground">@color/red_background</item> | |
</style> | |
<style name="MyTheme.ActionBar" parent="android:Widget.Holo.ActionBar"> | |
<item name="android:background">@android:color/transparent</item> | |
<item name="android:backgroundStacked">@android:color/transparent</item> |
This file contains 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 json,requests,pprint | |
gh_url = "https://api.github.com" | |
username = 'wehappyfew' | |
# a token is needed for 2 Factor Auth, otherwise only Name/Pass | |
custom_token = 'blablablablablablabla' # a custom personal token from GitHub | |
repo_name = 'your_repo_name' | |
new_default_branch = 'something' # this is going to change every time | |
#encode to JSON |
This file contains 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
/* Based on https://stackoverflow.com/questions/65213615/cdk-to-enable-dns-resolution-for-vpcpeering */ | |
import { custom_resources } from 'aws-cdk-lib'; | |
import { aws_ec2 as ec2, aws_iam as iam, aws_logs as logs } from 'aws-cdk-lib'; | |
import { Construct } from 'constructs'; | |
export interface AllowVPCPeeringDNSResolutionProps { | |
vpcPeering: ec2.CfnVPCPeeringConnection, | |
} |