Skip to content

Instantly share code, notes, and snippets.

View artynet's full-sized avatar

Arturo Rinaldi artynet

View GitHub Profile
@artynet
artynet / cyrillic2latin_file_renamer.py
Created March 21, 2016 21:37 — forked from ramanqul/cyrillic2latin_file_renamer.py
Cyrillic to Latin File Changer
#!/usr/bin/python
# -*- coding: utf-8 -*-
from os import walk, rename, unlink, mkdir, remove
from os.path import isdir, exists
from sys import argv, exit, getfilesystemencoding
from shutil import copyfile
import shutil
conversion = {
@artynet
artynet / mingw-w64-3.10-osx10.9.sh
Created April 13, 2016 12:17 — forked from Drakulix/mingw-w64-3.10-osx10.9.sh
Script to install a Mingw-w64 Cross-Compiler Suite on Mac OS X 10.9
#!/bin/sh
# dependencies
echo "Installing dependencies via Homebrew (http://brew.sh)"
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew update
brew install gcc48
@artynet
artynet / fix_wget_ca.sh
Created May 21, 2016 00:52 — forked from chetan/fix_wget_ca.sh
How to fix wget certificate issues
wget --no-check-certificate https://raw.github.com/bagder/curl/master/lib/mk-ca-bundle.pl
perl mk-ca-bundle.pl && rm certdata.txt
mkdir -p ~/.ssl/ && mv ca-bundle.crt mk-ca-bundle.pl ~/.ssl
echo "ca_certificate = ~/.ssl/ca-bundle.crt" >> ~/.wgetrc
@artynet
artynet / build-openocd.sh
Created May 22, 2016 13:15 — forked from cjmeyer/build-openocd.sh
Bash: Build OpenOCD with JLink support
#! /usr/bin/sh
#
# Build script to cross-compile OpenOCD with MinGW on Mint Linux (FTDI, JLINK, TI-ICDI, OSBDM).
#
# 7zip
# curl
# git
# MinGW-W64
# libtool
# Automake
@artynet
artynet / buildnode-raspbpi2-v7.sh
Last active July 17, 2017 19:05
Simple bash script to cross-compile node.js source (v7 release as well) for RPi2 platform
#!/bin/bash
## Node.js for Raspberry Pi 2 Packaging Script
## =========================================
## Use like this:
## ./buildnode.sh <node_tarball_version>
clean () {
rm -rvf node-v$1 node-v$1-rpi2
}
@artynet
artynet / uninstall_office_2016.sh
Created February 6, 2017 12:57 — forked from pirafrank/uninstall_office_2016.sh
Uninstall Office 2016 from OS X completely
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo -e "
ROOT PRIVILEDGES NEEDED!
You have to run this script as root.
Aborting...
"
exit 1
else
@artynet
artynet / .bashrc
Created March 18, 2017 22:41 — forked from marioBonales/.bashrc
Default .bashrc for ubuntu
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
@artynet
artynet / arduino-linux-setup.sh
Last active April 13, 2018 07:46
simple bash script to setup your Arduino IDE under linux OSes
# arduino-linux-setup.sh : A simple Arduino setup script for Linux systems
# Copyright (C) 2015 Arduino Srl
#
# Author : Arturo Rinaldi
# E-mail : [email protected]
# Project URL : https://github.com/artynet/arduino-linux-setup
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@artynet
artynet / build_nsis_osx.sh
Last active June 6, 2017 13:13
Build NSIS on OSX
BUILD nsis v2.46 on OSX >= 10.9
scons PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no install-stubs install-plugins install-data install-utils install-examples install-doc install-conf
scons APPEND_CCFLAGS=--stdlib=libstdc++ APPEND_LINKFLAGS=--stdlib=libstdc++ \
PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no install-compiler
scons PREFIX=/Users/arturo/Programmi/nsis-2.46 ZLIB_W32=/Users/arturo/Programmi/Zlib-1.2.7-win32-x86 \
@artynet
artynet / build_nsis_linux.sh
Last active April 25, 2019 05:15
Build NSIS on Linux
OSX
BUILD nsis v2.46 on OSX >= 10.9
scons PREFIX=/home/arturo/Programmi/nsis-2.46 ZLIB_W32=/home/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no install-stubs install-plugins install-data install-utils install-examples install-doc install-conf
scons APPEND_CCFLAGS=--stdlib=libstdc++ APPEND_LINKFLAGS=--stdlib=libstdc++ \
PREFIX=/home/arturo/Programmi/nsis-2.46 ZLIB_W32=/home/arturo/Programmi/Zlib-1.2.7-win32-x86 \
STRIP=no install-compiler