Skip to content

Instantly share code, notes, and snippets.

View kiquetal's full-sized avatar
🎯
Focusing

Enrique\m/Talavera kiquetal

🎯
Focusing
  • <)
  • Paraguay
View GitHub Profile
@kiquetal
kiquetal / GlobalProtect-Portal-Linux.readme
Created March 7, 2024 18:21 — forked from iamdylanngo/GlobalProtect-Portal-Linux.readme
Guide setup GlobalProtect Portal on Linux
# Guide setup GlobalProtect Portal on Linux
## Setup GlobalProtect
sudo apt update
Download GlobalProtect: https://github.com/jundat95/GlobalProtectVPN/raw/master/PanGPLinux-5.0.8-c6.tgz
Go to folder Downloads and Unzip: tar -xvzf PanGPLinux-5.0.8-c6.tgz
@kiquetal
kiquetal / go_concurrency.md
Created December 6, 2023 19:43 — forked from 1UC1F3R616/go_concurrency.md
Go Routines and Channels Done Right.

Using Select to get output from multiple channels based on when they are ready:

package main

import (
	"fmt"
	"time"
)
# This file is a template, and might need editing before it works on your project.
# To contribute improvements to CI/CD templates, please follow the Development guide at:
# https://docs.gitlab.com/ee/development/cicd/templates.html
# This specific template is located at:
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Getting-Started.gitlab-ci.yml
# This is a sample GitLab CI/CD configuration file that should run without any modifications.
# It demonstrates a basic 3 stage CI/CD pipeline. Instead of real tests or scripts,
# it uses echo commands to simulate the pipeline execution.
#
@kiquetal
kiquetal / gist:5e926f204c866e986694a2940bf6e9de
Last active December 11, 2020 02:14
Particion ebs root HVM 2020 aws
Luego de casi 2 días al fin pude particionar una instancia ebs root de aws
Primer paso
Recursos utilizados:
Un nuevo volumen (el que contendra los datos de un ebs volumen que ya corria)
Se utiliza el volumen de una instancia corriendo (la que queremos modificar) (tendremos que detener la instancia
y realizar un disattach ,ya que era un ebs root)

It seems that it does not matter what timezone is on the server as long as you have the time set right for the current timezone, know the timezone of the datetime columns that you store, and are aware of the issues with daylight savings time.

On the other hand if you have control of the timezones of the servers you work with then you can have everything set to UTC internally and never worry about timezones and DST.

Here are some notes I collected of how to work with timezones as a form of cheatsheet for myself and others which might influence what timezone the person will choose for his/her server and how he/she will store date and time.

MySQL Timezone Cheatsheet

openssl rsa -in qbss-co.apigee.com.key -out server.pem
openssl rsa -in server.key -text > private.pem
openssl x509 -inform PEM -in server.crt > public.pem
cat certificate cat > combined.pem
@kiquetal
kiquetal / DesignSupport.kt
Created October 10, 2017 12:19 — forked from mgranberry/DesignSupport.kt
A set of Anko-compatible extensions for Google's Material Design Support Library
fun ViewManager.appBarLayout(init: AppBarLayout.() -> Unit = {}) =
__dslAddView({ AppBarLayout(it) }, init, this)
fun ViewManager.collapsingToolbarLayout(init: CollapsingToolbarLayout.() -> Unit = {}) =
__dslAddView({ CollapsingToolbarLayout(it) }, init, this)
fun ViewManager.coordinatorLayout(init: CoordinatorLayout.() -> Unit = {}) =
__dslAddView({ CoordinatorLayout(it) }, init, this)
fun ViewManager.floatingActionButton(init: FloatingActionButton.() -> Unit = {}) =
kotlinc hello.kt -include-runtime -d hello.jar
java -jar hello.jar
git rm -r --cached .