Skip to content

Instantly share code, notes, and snippets.

View efturtle's full-sized avatar

Alberto Cuevas efturtle

  • GlobalLogic
  • GDL, Jalisco
View GitHub Profile
@smling
smling / install-oh-my-posh.sh
Created February 26, 2023 15:14
Setup oh-my-posh in Ubuntu Linux
# Install oh-my-posh and add executable permission.
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh
# Setup themes and set permission.
mkdir ~/.poshthemes
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip
unzip ~/.poshthemes/themes.zip -d ~/.poshthemes
chmod u+rw ~/.poshthemes/*.json
@Harshxda
Harshxda / window-terminal-settings.json
Last active April 11, 2023 23:05
Window terminal Profiles json and color schemes
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neisdev
neisdev / index.html
Created August 3, 2020 04:41
Tailwind - Responsive Navbar
<header class="border-b md:flex md:items-center md:justify-between p-4 pb-0 shadow-lg md:pb-4">
<!-- Logo text or image -->
<div class="flex items-center justify-between mb-4 md:mb-0">
<h1 class="leading-none text-2xl text-grey-darkest">
<a class="no-underline text-grey-darkest hover:text-black" href="#">
Site Title
</a>
</h1>
@JJunShim
JJunShim / profiles.json
Last active April 11, 2023 22:58
Windows Terminal settings json color schemes
{
"$schema": "https://aka.ms/terminal-profiles-schema",
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"profiles":
[
{
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
@vijayantkatyal
vijayantkatyal / profile.json
Last active April 11, 2023 22:53
Windows Terminal Color Schema
{
"globals" :
{
"alwaysShowTabs" : true,
"defaultProfile" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
"initialCols" : 120,
"initialRows" : 30,
"keybindings" :
[
{
@LyleNav
LyleNav / Partner.java
Created December 13, 2018 06:52
Memory Game
package com.example.ljcnavarro.navarro;
import android.os.CountDownTimer;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.Button;
import android.widget.TextView;
@psgareja
psgareja / formvalidation.html
Created October 12, 2018 14:54
form validation
<!DOCTYPE html>
<html>
<head>
<title>jQuery Validation</title>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="bootstrap.css">
<link href="jquery-ui.css" rel="stylesheet">
<style type="text/css">
body{
@rvg2
rvg2 / checklogin.php
Created October 21, 2014 16:22
Login
<?php
$host="localhost"; // Host name
$username="root"; // Mysql username
$password=""; // Mysql password
$db_name="website"; // Database name
$tbl_name="members"; // Table name
// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
@ZeusAFK
ZeusAFK / jar_starter.cs
Created July 14, 2014 21:29
Aplicación de consola en C# para iniciar un archivo jar, verifica si java esta instalado y cumple con la versión mínima requerida.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.Windows.Forms;
namespace Jar_Starter
{
class Program