Skip to content

Instantly share code, notes, and snippets.

/* Zazuzx.wordpress.com
1.44″ 128 * 128 SPI V1.1 Display Tutorial
*/
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <TFT_ILI9163C.h>
// Definition of COLORS
#define WHITE 0xFFFF
#define BLACK 0x0000
#define BLUE 0x001F
@arx76
arx76 / ad9850.pde
Created July 10, 2017 13:58 — forked from raivisr/ad9850.pde
AD9850 useful test sketch for Arduino(-s)
/*
Simple controller for AD9850 modules
Uses serial protocol (refer to AD9850 datasheet what pins need to be pulled up/down
Uses library by Elecfreaks http://elecfreaks.com/store/download/datasheet/breakout/DDS/EF_AD9850_library.zip
(for use with chipkit delete that unnecessary line "#include <avr/pgmspace.h>" from .h file)
Fix the pin numbers used to communicate with module
Serial comms - 9600, NewLine (0x0A) denotes end of input,
f 10000 - set frequency
s 20 20000 10 1000 - sweep from frequency to frequency using this step size in that many milliseconds
o 10 10000 5 3000 - oscillating sweep from frequency to frequency and back using this step size in that many ms
@arx76
arx76 / filter.d_nginx-auth.conf
Created August 18, 2017 13:21 — forked from JulienBlancher/filter.d_nginx-auth.conf
Fail2ban Config with Nginx and SSH
#
# Auth filter /etc/fail2ban/filter.d/nginx-auth.conf:
#
# Blocks IPs that makes too much accesses to the server
#
[Definition]
failregex = ^<HOST> -.*"(GET|POST).*HTTP.*"
ignoreregex =
@arx76
arx76 / debian-gfs.sh
Created September 2, 2017 21:11 — forked from cloudrck/debian-gfs.sh
Debian 8 Jessie GlusterFS Install and Configuration
#!/bin/bash
set -e
# Debian 8 'Jessie' GlusterFS Install
#########
#ToDo:
# * Change guid/suid of mount
# * Give option for cluster type
# * Change variables via command line read
########
@arx76
arx76 / install_ispconfig_nginx_debian.sh
Created September 24, 2017 21:39 — forked from jniltinho/install_ispconfig_nginx_debian.sh
Install ISPConfig +Nginx on Debian 9.1 64Bits
#!/bin/bash
## Install ISPConfig 3 on Debian 9.1 64Bits
## ISPConfig3 3 + Nginx + Debian 9.1 64Bits
## VM HD 50GB, swap 2GB, / 20GB, /var/www all
## Filesystem ext4
## Run as root
## Link: https://www.howtoforge.com/tutorial/perfect-server-debian-jessie-nginx-bind-dovecot-ispconfig-3.1/
# Check if user has root privileges
@arx76
arx76 / install_rundeck.sh
Created September 24, 2017 21:41 — forked from jniltinho/install_rundeck.sh
Install Rundeck on Ubuntu
#!/bin/bash
## Install Rundeck on Ubuntu 16.04
## http://rundeck.org/downloads.html
## Run as root (sudo su)
apt-get update && apt-get upgrade -y
apt-get install openjdk-8-jdk -y
wget http://dl.bintray.com/rundeck/rundeck-deb/rundeck-2.9.3-1-GA.deb
dpkg -i rundeck-2.9.3-1-GA.deb
@arx76
arx76 / install_dotnet-sdk.sh
Created September 24, 2017 21:41 — forked from jniltinho/install_dotnet-sdk.sh
Install .NET Core 2.0.0 SDK for Ubuntu 16.04
#!/bin/bash
## Install .NET Core 2.0.0 SDK on Ubuntu 16.04 64Bits
## Author: Nilton OS www.linuxpro.com.br
## https://www.microsoft.com/net/core#linuxubuntu
## https://docs.microsoft.com/en-us/aspnet/core/publishing/apache-proxy
## https://medium.com/@renato.groffe/net-core-e-sql-server-em-linux-primeiros-passos-89a7cb475ebd
## Version 0.1
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
@arx76
arx76 / install_redmine_nginx.sh
Created September 24, 2017 21:42 — forked from jniltinho/install_redmine_nginx.sh
Install Redmine on Debian 8.7 64Bits + Nginx
#!/bin/bash
## Install Redmine + Nginx
## Tested on Debian 8.7 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## Version: 0.1
# Check if user has root privileges
if [[ $EUID -ne 0 ]]; then
echo "You must run the script as root or using sudo"
@arx76
arx76 / sqlserver-linux-backup.py
Created September 24, 2017 21:43 — forked from jniltinho/sqlserver-linux-backup.py
SQL Server command line Backup Linux
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## SQL Server command line backup Linux
## On OpenSUSE 42.2 64Bits
## Author: Nilton OS -- www.linuxpro.com.br
## http://stackoverflow.com/questions/880487/sql-server-command-line-backup-statement
## https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-migrate-sqlpackage
## Version: 0.2
### BACKUP SCRIPT SQLSERVER CLI
@arx76
arx76 / install_php71_debian.sh
Created September 24, 2017 21:44 — forked from jniltinho/install_php71_debian.sh
Install PHP 7.1 on Debian 8.6 64Bits
#!/bin/bash
### Install PHP 7.1 on Debian 8.6 64Bits
### https://www.howtoforge.com/tutorial/how-to-install-php-7-on-debian/
### http://www.shaunfreeman.name/compiling-php-7-on-centos/
apt-get install build-essential nano autoconf
apt-get install libfcgi-dev libfcgi0ldbl libjpeg62-turbo-dbg libmcrypt-dev