Skip to content

Instantly share code, notes, and snippets.

View khpeek's full-sized avatar

Kurt Peek khpeek

View GitHub Profile
@s1moe2
s1moe2 / clone.go
Last active February 14, 2024 06:01
Clone private GitHub repo with go-git
// SSHClone clones a private GitHub repository using SSH, in the directory passed as parameter
func SSHClone(dest string) error {
var publicKey *ssh.PublicKeys
sshKey, err := ioutil.ReadFile("/Users/youruser/.ssh/id_rsa")
if err != nil {
return err
}
publicKey, err = ssh.NewPublicKeys("git", sshKey, "")
if err != nil {
@erkattak
erkattak / AndroidManifest.xml
Created June 19, 2017 18:47
Android Application Setup for use with Charles Proxy
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:networkSecurityConfig="@xml/network_security_config">
@sebmarkbage
sebmarkbage / JSXSpreadAttributes.md
Last active August 13, 2020 15:18
JSX Spread Attributes

JSX Spread Attributes

If you know all the properties that you want to place on a component a head of time, it is easy to use JSX:

  var component = <Component foo={x} bar={y} />;

Mutating Props is Bad, mkay