Skip to content

Instantly share code, notes, and snippets.

View ks7000's full-sized avatar
馃幆
Focusing

ks7000.net.ve (#FullSnackDeveloper) ks7000

馃幆
Focusing
View GitHub Profile
@ks7000
ks7000 / Feliz D铆a del Programador y la Programadora.php
Created September 13, 2017 21:09
El d铆a 256 de cada a帽o se celebra nuestro d铆a, nosotros los h茅ores an贸nimos que, por ahora, escribimos c贸digo para ordenadores y motorizamos al mundo por medio de los ordenadores (ya no podemos vivir sin ellos) 隆El verdadero programador y verdadera programadora cuenta desde cero! 隆Falta agregar c贸digo para a帽os bisiestos!
<?php
header('Content-type: text/html; charset=UTF-8');
header('Content-language: es-ve');
date_default_timezone_set("America/Caracas");
// El verdadero programador CUENTA DESDE CERO
if (date("z") == "255"){
echo "隆Feliz D铆a del Programador y de la Programadora! 馃 ";
}else{
echo "Hoy es un buen d铆a para programar 馃 .";
}
#!/usr/bin/python
# coding=utf-8
#
# Copyright [2017] [Jimmy Olano, Twitter @ks7000]
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
@ks7000
ks7000 / Write_Blocker.ps1
Created October 21, 2017 16:34
Guion para bloquear y desbloquear la escritura en dispostivos usb en Windows con Powershell.
# Script para bloquear y desbloquear la escritura en dispostivos usb.
# Autor: Francisco Palenzuela Luque @fpalenzuela
# Blog: https://aprendizdesysadmin.com/powershell_-contruyendo-nuestro-usb-write-blocker/
# Constantes y variables
$RegRutaCompleta = 'hklm:\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies'
$RegRuta = 'hklm:\SYSTEM\CurrentControlSet\Control'
$ExisteRegistro = Test-Path -path $RegRutaCompleta
@ks7000
ks7000 / vboxdrv.sh
Last active December 9, 2017 02:10
VirtualBox version 5.1 para Debian 9 "Stretch" x86 (32 bits): an谩lisis para poder instalar este popular hipervisor bajo Kernel linux 4.13
#! /bin/sh
# Oracle VM VirtualBox
# Linux kernel module init script
#
# Copyright (C) 2006-2015 Oracle Corporation
#
# This file is part of VirtualBox Open Source Edition (OSE), as
# available from http://www.virtualbox.org. This file is free software;
# you can redistribute it and/or modify it under the terms of the GNU
@ks7000
ks7000 / direccion_ip_publica.py
Last active March 6, 2022 20:35
Guion para obtener direcci贸n IP p煤blica con Python 2 y Python 3
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
version = sys.version[0]
if version == '2':
import urllib2 as urllib
else:
import urllib.request as urllib
@ks7000
ks7000 / html-languages.txt
Created April 19, 2019 12:29 — forked from JamieMason/html-languages.txt
HTML lang attribute / ISO language code reference / Culture names
CULTURE SPEC.CULTURE ENGLISH NAME
--------------------------------------------------------------
Invariant Language (Invariant Country)
af af-ZA Afrikaans
af-ZA af-ZA Afrikaans (South Africa)
ar ar-SA Arabic
ar-AE ar-AE Arabic (U.A.E.)
ar-BH ar-BH Arabic (Bahrain)
ar-DZ ar-DZ Arabic (Algeria)
ar-EG ar-EG Arabic (Egypt)
@ks7000
ks7000 / MySQL guion para respaldar.sh
Created March 6, 2020 20:22
Gui贸n para respaldar bases de datos en MySQL Community Server 8.0.19
#!/bin/bash
# <Gui贸n para respaldar bases de datos en MySQL Community Server 8.0.19>
# Copyright (C) <2020> <Jimmy Olano 馃嚮馃嚜>
#
# Este programa es software libre: puedes redistribuirlo y/o modificarlo
# bajo los t茅rminos de la Licencia P煤blica General de GNU, publicada por
# la Fundaci贸n de Software Libre, ya sea la versi贸n 3 de la Licencia, o
# (a su elecci贸n) cualquier versi贸n posterior.
#
# Este programa se distribuye con la esperanza de que sea 煤til,
#!/bin/bash
#****************************************************************************************************
# _ _ ____ _
# Project ___| | | | _ \| |
# / __| | | | |_) | |
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
# Copyright (C) 1998 - 2022, Daniel Stenberg, <[email protected]>, et al (et alii, here Jimmy Olano).
#