This file contains 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 | |
pn=$(echo $@ | tr -d " \t\n\r" | sed "s#+49#0#") | |
curl -k -m 3 "https://user:password@10.10.10.10/adr.htm?adrnumber=${pn}" |
This file contains 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 | |
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it! | |
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS. | |
# This script needs to be run from the volume you wish to use. | |
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh | |
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars. | |
# Get active services: launchctl list | grep -v "\-\t0" | |
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents |
This file contains 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
#!/usr/bin/ruby | |
require "rubygems" | |
require "apachelogregex" | |
require "resolv.rb" | |
require "mysql" | |
require 'parsedate' | |
###################################### | |
# Database parameters |
This file contains 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
198.20.69.72/29 | |
198.20.69.96/29 | |
198.20.70.111/32 | |
198.20.70.112/29 | |
198.20.99.128/29 | |
93.120.27.62/32 | |
66.240.236.119/32 | |
71.6.135.131/32 | |
66.240.192.138/32 | |
71.6.167.142/32 |
This file contains 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
Download and install a fresh debian-10 iso in VirtualBox. After boot and login run: | |
``` | |
apt-get install git debootstrap curl | |
git clone https://github.com/ass-a2s/debian-lx-brand-image-builder.git | |
cd debian-lx-brand-image-builder | |
mkdir /mnt/chroot | |
./install -r buster -d /mnt/chroot -m http://ftp2.de.debian.org/debian/ -i debian-10 -p "Debian 10 lx-brand" -D "Debian 10 64-bit lx-brand image." -u https://docs.joyent.com/images/container-native-linux | |
curl -s -u "$USER:$PASSWORD" -T ./debian-10-20200713.tar.gz https://nextcloud.example.com/remote.php/dav/files/user/debian-10-20200713.tar.gz | |
``` |
This file contains 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
<?xml version='1.0'?> | |
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'> | |
<service_bundle type='manifest' name='keycloak'> | |
<service | |
name='network/keycloak' | |
type='service' | |
version='1'> |
This file contains 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
-- paste this into the macOS 'Script-Editor.app' and save it as an app | |
on run | |
do shell script "ps auxwwww |grep \"MacOS/nextcloud\" |grep -v grep | awk '{print $2}' | xargs kill -9" | |
end run |
This file contains 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
#!/opt/local/bin/perl | |
use strict; | |
use Data::Dumper; | |
use DBI; | |
use Sys::Syslog qw(:standard :macros); | |
use DateTime; | |
use POSIX qw(strftime); | |
openlog("mysql_zbx_part", "ndelay,pid", LOG_LOCAL0); |
This file contains 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
#!/usr/bin/env ruby | |
require 'time' | |
require 'activesupport' # install with: gem install 'activesupport' | |
exit 1 if ARGV.size == 0 | |
def build_history(t,table) | |
result = "ALTER TABLE `#{table}` PARTITION BY RANGE ( clock )\n(" | |
while t < Time.now do |
This file contains 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
Our mibe repo with only a few changes for lx-brand mibe-builds: https://github.com/jfqd/mibe | |
Our base image build: https://github.com/jfqd/mi-qutic-base | |
An this is how we build the base image: | |
build_base_image() { | |
cd /opt/mibe/repos | |
if [ ! -d /opt/mibe/repos/mi-qutic-base ]; then | |
/opt/tools/bin/git clone git://github.com/jfqd/mi-qutic-base.git |