This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List block devices | |
lsblk | |
# Umount. | |
# You should replace <?> by letter or number | |
sudo umount /dev/sd<?><?> | |
# This is a destructive command and wipes the entire USB drive with the contents of the iso, so be careful | |
sudo dd bs=4M if=path/to/input.iso of=/dev/sd<?> conv=fdatasync status=progress | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Licensed to the Apache Software Foundation (ASF) under one | |
or more contributor license agreements. See the NOTICE file | |
distributed with this work for additional information | |
regarding copyright ownership. The ASF licenses this file | |
to you 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Author: Alvaro Merino Garcia | |
# The purpose of this script is to use it as param of rebase -x "this script using full path" | |
# to process a bulk rename of commits | |
STRING_TO_BE_REPLACED="STRY0000000" | |
DESIRED_STRING_USING_IN_REPLACE="STRY1111111" | |
# Retrieve actual commit message using git log -1 | |
COMMIT_MSG="$(git log --pretty=format:%s -1)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# Many thanks to http://stackoverflow.com/users/400617/davidism | |
# This code under "I don't care" license | |
# Take it, use it, learn from it, make it better. | |
# Start this from cmd or shell or whatever | |
# Go to favourite browser and type localhost:5000/admin | |
import sys | |
from flask import Flask | |
from flask.ext.sqlalchemy import SQLAlchemy | |
from flask.ext.admin import Admin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import base64 | |
import requests | |
from enum import Enum | |
""" | |
Script to connect to ps3838 API | |
URL to check API User Guide: | |
https://www.tender88.com/static/index.php/es-es/help/api-user-guide-es-es |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MAILTO=youremailhere | |
@daily certbot renew --quiet && systemctl reload nginx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const {Harvester} = require('captcha-manager'); | |
const request = require('request-promise-native'); | |
const harvester = new Harvester(); | |
const availableCaptchaResponseTokens = []; | |
const siteKey = '6LeWwRkUAAAAAOBsau7KpuC9AV-6J8mhw4AjC3Xz'; |