Skip to content

Instantly share code, notes, and snippets.

View sebastianmorenoe's full-sized avatar
🇨🇱
Creating Cloud Spanish Content

Sebastián Moreno E sebastianmorenoe

🇨🇱
Creating Cloud Spanish Content
View GitHub Profile
@gelopfalcon
gelopfalcon / Cheatsheet-gcp.md
Last active October 31, 2022 15:58
Google Cloud Platform - GCP gcloud, gsutil, etc.

1.1 Personalization

Make the Cloud SDK your own; personalize your configuration with properties.

Name Summary
gcloud config set Define a property (like compute/zone) for the current configuration.
gcloud config get-value: Fetch value of a Cloud SDK property.
gcloud config list Display all the properties for the current configuration.
gcloud config configurations create Create a new named configuration.
@P1xt
P1xt / wikipedia.service.ts
Created March 17, 2017 20:06
Setting headers on an Angular 2 http get request
import { Injectable } from '@angular/core';
import { Http, Headers, Response } from '@angular/http';
@Injectable()
export class GetWikipediaService {
constructor(private http: Http) { }
searchWiki = (query) => {
@KristofferBerge
KristofferBerge / web.config
Last active January 13, 2020 17:15
Configuration file for Azure web app to support angular2 applications with routing and long urls for auth tokens.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.web>
<httpRuntime maxQueryStringLength="32768" maxUrlLength="65536"/>
</system.web>
<system.webServer>
<security>
<requestFiltering>
<requestLimits maxQueryString="32768"/>
</requestFiltering>
@ygotthilf
ygotthilf / jwtRS256.sh
Last active May 21, 2024 02:21
How to generate JWT RS256 key
ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key
# Don't add passphrase
openssl rsa -in jwtRS256.key -pubout -outform PEM -out jwtRS256.key.pub
cat jwtRS256.key
cat jwtRS256.key.pub