Skip to content

Instantly share code, notes, and snippets.

Jorge Franco Ibañez JorgeFrancoIbanez

  • Ormuco
Block or report user

Report or block JorgeFrancoIbanez

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View disable service
Set-ItemProperty -Path 'HKLM:\System\CurrentControlSet\Services\MapsBroker' -Name Start -Value 4
$onesync = (Get-ChildItem 'HKLM:\System\CurrentControlSet\Services' | ?{$_.PSChildName -like "OneSync*"}).Name
$here = Get-Location
cd HKLM:\
ForEach($sync in $onesync) {
Set-ItemProperty -Path $sync -Name Start -Value 4
cd $here
Get-Service OneSync* | Stop-Service -Force
Get-Service MapsBroker | Stop-Service -Force
View autoun
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="oobeSystem">
<component xmlns:wcm="" xmlns:xsi="" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<!-- logon this user automatically
which runs first logon commands -->
View centos
for i in $(grep "^[^#;]" /etc/ssh/sshd_config); do
echo $i
for s in ChallengeResponseAuthentication PasswordAuthentication PermitRootLogin X11Forwarding GSSAPIAuthentication;do
echo $s
if [[ $i == "$s"* ]]; then
echo $i;
echo $s;
sed -i "s/$s .*/$s no/g" /etc/ssh/sshd_config;
JorgeFrancoIbanez / ubuntu14.04
Last active Aug 6, 2019
SSH KEY cOnfuiguration for only ssh access
View ubuntu14.04
for i in $(grep "^[^#;]" /etc/ssh/sshd_config); do
echo $i
for s in ChallengeResponseAuthentication PasswordAuthentication PermitRootLogin X11Forwarding;do
echo $s
if [[ $i == "$s"* ]]; then
echo $i;
echo $s;
sed -i "s/$s .*/$s no/g" /etc/ssh/sshd_config;
View Virtio registry for windows
Windows Registry Editor Version 5.00
JorgeFrancoIbanez /
Created Jun 13, 2019
Openstack retrieve datastore version of a single datastore and print it
from keystoneauth1.identity import v3
from keystoneauth1 import session
from troveclient.v1 import client as Trove
resources = {}
class Auth:
def __init__(self):
username = "username"
password = "password"
JorgeFrancoIbanez / Python-connections
Last active Jun 13, 2019
Python connections to databases
View Python-connections
Python connections to databases
JorgeFrancoIbanez / openstack_CLI_token_auth_Linux.rc
Created Jun 12, 2019
Openstack CLI token auth method template for keytone version 3 in OS based in Linux
View openstack_CLI_token_auth_Linux.rc
export OS_USERNAME= <User email>
export OS_TOKEN= <Openstack auth TOKEN>
export OS_TENANT_ID= <Project-ID>
export OS_AUTH_URL=https://api-endpoint:5000/v3
export OS_AUTH_TYPE=token
export OS_INTERFACE=public
import bcrypt
hash = b"Thistextwillbehashed"
hashed = bcrypt.hashpw(hash, bcrypt.gensalt())
import argparse
import requests #needs to be installed
import json
parser = argparse.ArgumentParser(description='Get data of your project from your object storage service.')
parser.add_argument('--user', type=str, required=True, help='Portal customer account')
parser.add_argument('--password', type=str, required=True, help='Portal customer password')
parser.add_argument('--project', type=str, required=True, help='User project ID. \n')
parser.add_argument('--endpoint', type=str, required=True, help='Endpoint where the request are going to be done.\n'
'Requires protocol and port. \n'
You can’t perform that action at this time.