Skip to content

Instantly share code, notes, and snippets.

View arafatx's full-sized avatar
💭
Developing a project

MaXi32 arafatx

💭
Developing a project
View GitHub Profile
@esdx
esdx / inpaint_only_masked.json
Last active January 1, 2024 01:18 — forked from 4rmx/inpaint_only_masked.json
workflow for ComfyUI Inpainting (only masked). Expanded version with some comments.
{
"last_node_id": 496,
"last_link_id": 781,
"nodes": [
{
"id": 412,
"type": "Reroute",
"pos": [
254.29027860156253,
1011.5471391070557
@0xKD
0xKD / help.md
Created September 24, 2017 02:46
Find shutdown cause macOS

Run this

log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h

Check reason code in following list:

Code	Description	Solution
@rudolphos
rudolphos / DNSchecker.sh
Last active August 28, 2024 00:51 — forked from lopes/puck.sh
A DNS propagation checker in Shell Script.
#!/bin/bash
#puck.sh
# A DNS propagation checker. Fetches in many DNS servers around
# the world for IPs assigned to a given domain.
#
# Author: José Lopes de Oliveira Júnior <http://joselop.es>
#
#
@zuzzas
zuzzas / debian-preseeded-iso.sh
Last active July 20, 2024 21:38
Create Debian netinstall iso with preseed file
set -e
set -u
# hat-tips:
# - http://codeghar.wordpress.com/2011/12/14/automated-customized-debian-installation-using-preseed/
# - the gist
# required packages (apt-get install)
# xorriso
STEP #1 – change your company logo (let’s start from easy…)
Hover the big Odoo logo on the left side, click on “Edit company data” and give your company your own logo – this will replace the Odoo placeholder logo.
STEP#2 – remove “Powered by Odoo”
Open the view web.login_layout and comment out following lines:
<!-- <span class="oe_footer_seperator"> | </span> -->
<!-- <a href="https://www.odoo.com" target="_blank">Powered by <span>Odoo</span></a> -->
Open the view web.menu_secondary and comment out following line:
@dgoguerra
dgoguerra / script-with-options.sh
Last active November 10, 2024 20:00
Manual alternative to getopt in bash scripts, supporting short and long options
#!/usr/bin/env bash
# File name
readonly PROGNAME=$(basename $0)
# File name, without the extension
readonly PROGBASENAME=${PROGNAME%.*}
# File directory
readonly PROGDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# Arguments
readonly ARGS="$@"
@wboykinm
wboykinm / getjson.php
Created September 27, 2012 08:51
MySQL to geojson parser
<?php
header('Content-type: text/plain');
$username = "[user]";
$password = "[password]";
$hostname = "localhost";
$database = "[database]";
// Opens a connection to a mySQL server
$connection=mysql_connect ($hostname, $username, $password);