Skip to content

Instantly share code, notes, and snippets.

rlam3

Block or report user

Report or block rlam3

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
@rlam3
rlam3 / .git_ignore
Created Jan 12, 2019
2019_01_12_ios_swift_newbie_gotcha_medium_001
View .git_ignore
*.ipa
*.app.dSYM.zip
@rlam3
rlam3 / blue_text.vue
Created Jul 25, 2019
vue with stylus
View blue_text.vue
<template>
<div>
<p class="blue_text">{{ msg }}</p>
</div>
</template>
<script>
export default {
@rlam3
rlam3 / RenderImage.vue
Last active Jul 27, 2019
Good vs Bad Way of Rendering image
View RenderImage.vue
<template>
<div>
<div>
<div v-for="(panel, index) in panelList" :key="index" class="panel">
<img class="" :src="panel.imagePath" /> /// Approach 1
<img class="" :src="require(panel.imagePath2)" /> /// Approach 2 WRONG!!! WEBPACK HATES YOU
<div class="">
<div class="">
{{ panel.title }}
</div>
@rlam3
rlam3 / disable-cleanmymac.md
Created Aug 21, 2019
Mac disables "Setapp CleanMyMac-setapp.HealthMonitor" launchd services
View disable-cleanmymac.md

sudo vim /private/var/db/launchd.db/com.apple.launchd/overrides.plist

Add the following code,as entries like:

<key>com.macpaw.CleanMyMac-setapp.HealthMonitor</key>
<dict>
<key>Disabled</key>
<true/>
</dict>
@rlam3
rlam3 / pull_deploy_kubernetes.sh
Last active Oct 1, 2019
pull_deploy_kubernetes
View pull_deploy_kubernetes.sh
$ kubectl get all # 1
╰─ kubectl get all
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 4d18h
$ kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10 # 2
╰─ kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.10
deployment.apps/hello-minikube created
$ kubectl get all # 3
You can’t perform that action at this time.