Skip to content

Instantly share code, notes, and snippets.

View sudomann's full-sized avatar
🌆
Night Owl

Willy Njundong sudomann

🌆
Night Owl
View GitHub Profile
@sudomann
sudomann / out.tf
Created February 4, 2019 18:26
data.google_compute_zones fails to inherit `project` from provider in parent module
$ terraform plan
yableModuleVariable
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
module.gcp.module.us-east4.module.iroha_node.var.name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.module.iroha_node.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.module.us-east4.var.vpc_name - *terraform.NodeApplyableModuleVariable
module.gcp.google_compute_network.iroha_vpc - *terraform.NodeAbstractResource
module.gcp.provider.google - *terraform.NodeApplyableProvider
module.gcp.provider.google.us-east4 - *terraform.NodeApplyableProvider
@sudomann
sudomann / Engine.ini
Created August 15, 2019 00:15
UT4 Engine.ini Settings to Minimize Cycles Wasted on Rubbish Cosmetics
[SystemSettings]
r.AmbientOcclusionLevels=0
r.BloomQuality=0
r.DepthOfFieldQuality=0
r.SSR.Quality=0
r.DetailMode=0
r.LensFlareQuality=0
r.MaxAnisotropy=0
r.oneframethreadlag=1
r.simpledynamiclighting=1
#!/bin/bash
NS=$1
NS_CHECK=$(kubectl get ns | grep $NS | awk '{print $1}')
if [[ $NS_CHECK == $NS ]];
then
echo "Namespace $NS will be deleted"
else
echo "No such namespace named $NS"
exit 1
fi
This file has been truncated, but you can view the full file.
a'isha,1
a'ishah,1
a-jay,1
aa'isha,1
aa'ishah,1
aaban,1
aabas,1
aabha,1
aabia,1
aabid,1
@sudomann
sudomann / issue.md
Created February 25, 2020 18:18
react-native-ui-kitten 4.4.1 performance improvement instruction result in failed metro launch
#include <iostream>
using namespace std;
int main() {
// I'll first create all the variables that are needed to store user inputs
// Student Name
string name;
// Participation Score
const tokenChecker = (config) => {
if (Transport.Http.isAccessTokenValid(config)) return config;
try {
Transport.Auth.fetchNewAccessTokenAsync().then((access) => {
/* Transport.Http.updateAuthorizationHeader accepts a token string
then formats it into a proper Authorization header string.
It then assigns that value to the axios instance's .defaults.headers.common.Authorization
for future requests.
Finally it returns that formatted header string for use by the caller.
In this case, I want to add it to the current request before it goes out
const tokenChecker = (config) => {
if (!someCondition) {
try {
return somePossiblyThrowingAsync()
.then(successCallback);
} catch (e) {
switch (true) {
case e instanceof AccessTokenRefreshError: {
console.warn('AccessTokenRefreshError');
break;
import { authClient } from "./auth-client";
import { httpClient } from "./http-client";
import { IllegalModificationError } from "./errors";
export const Transport = {
get Auth() {
return authClient;
},
get Http() {
const transformContact = (contact) => {
const obj = {};
[
Contacts.Fields.Name,
Contacts.Fields.Nickname,
Contacts.Fields.MaidenName,
].forEach((fieldName) => {
if (contact[fieldName]) obj[fieldName] = contact[fieldName];
});