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="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS">
<!-- logon this user automatically
which runs first logon commands -->
<UserAccounts>
<AdministratorPassword>
<Value>ormuco</Value>
View centos
#!/bin/bash
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;
fi;
@JorgeFrancoIbanez
JorgeFrancoIbanez / ubuntu14.04
Last active Aug 6, 2019
SSH KEY cOnfuiguration for only ssh access
View ubuntu14.04
#!/bin/bash
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;
fi;
View Virtio registry for windows
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1af4&dev_1001&subsys_00000000]
"Service"="viostor"
"ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}"
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\CriticalDeviceDatabase\pci#ven_1af4&dev_1001&subsys_00020000]
"Service"="viostor"
"ClassGUID"="{4D36E97B-E325-11CE-BFC1-08002BE10318}"
@JorgeFrancoIbanez
JorgeFrancoIbanez / print-trove-datastore-version-flavors.py
Created Jun 13, 2019
Openstack retrieve datastore version of a single datastore and print it
View print-trove-datastore-version-flavors.py
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
JorgeFrancoIbanez / Python-connections
Last active Jun 13, 2019
Python connections to databases
View Python-connections
Python connections to databases
@JorgeFrancoIbanez
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_IDENTITY_API_VERSION=3
export OS_INTERFACE=public
View hash-salt.py
#!bin/python
import bcrypt
hash = b"Thistextwillbehashed"
hashed = bcrypt.hashpw(hash, bcrypt.gensalt())
print(hashed)
View openstack-swift-api-info-with-auth.py
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.