Skip to content

Instantly share code, notes, and snippets.

View z3ntu's full-sized avatar

Luca Weiss z3ntu

View GitHub Profile
@z3ntu
z3ntu / init.rc
Last active November 4, 2015 15:08
Contents of different files --- CM11 for Fairphone ---
# Copyright (C) 2012 The Android Open Source Project
#
# IMPORTANT: Do not create world writable files or directories.
# This is a common source of Android security bugs.
#
import /init.environ.rc
import /init.usb.rc
import /init.${ro.hardware}.rc
import /init.trace.rc
@z3ntu
z3ntu / TINF
Last active November 5, 2015 11:29
Bash script for TINF, PLEASE edit yours!
#!/bin/bash
#
# 3EHIF, Luca Weiss, 2015-11-05
#
read -p "Please enter the title: " title
echo "Please now enter lines, finish with entering ---"
p_part=""
@z3ntu
z3ntu / UnityForArch.sh
Created December 18, 2015 08:47
Installs unity for arch
#!/bin/sh
sudo echo "***Starting script 'unity-arch.in'...***"
echo "==============================
Adding Unity repos to pacman.conf..."
echo '[Unity-for-Arch]' | sudo tee -a /etc/pacman.conf
echo 'SigLevel = Optional TrustAll' | sudo tee -a /etc/pacman.conf
echo 'Server = http://dl.dropbox.com/u/486665/Repos/$repo/$arch' | sudo tee -a /etc/pacman.conf
echo ' ' | sudo tee -a /etc/pacman.conf
echo '[Unity-for-Arch-Extra]' | sudo tee -a /etc/pacman.conf
@z3ntu
z3ntu / Editor.log
Created December 18, 2015 14:39
Log from Unity Editor 5.3.0f4 on Ubuntu
mono profile = '/opt/Unity/Editor/Data/Mono/lib/mono/2.0'
Initialize mono
Mono path[0] = '/opt/Unity/Editor/Data/Managed'
Mono path[1] = '/opt/Unity/Editor/Data/Mono/lib/mono/2.0'
Mono path[2] = '/opt/Unity/Editor/Data/UnityScript'
Mono path[3] = '/opt/Unity/Editor/Data/Mono/lib/mono/2.0'
Mono config path = '/opt/Unity/Editor/Data/Mono/etc'
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,defer=y,address=0.0.0.0:56260
Desktop is 1920 x 1080 @ 60 Hz
@z3ntu
z3ntu / updateall.sh
Created December 31, 2015 12:31
Script for updating programs with the source code from git repositories.
#!/bin/bash
# Script by github.com/z3ntu
for dir in */; do
echo "Updating $dir."
cd $dir
output="$(git pull)"
if [ "$output" != 'Already up-to-date.' ]; then
if [ -x "build.sh" ]; then
echo "Running buid.sh."
diff --git a/PKGBUILD b/PKGBUILD
index f59795e..1e930d1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -11,8 +11,8 @@ license=('GPL3')
depends=('parted')
options=('!buildflags'
'!makeflags')
-conflicts=
-provides=
@z3ntu
z3ntu / import_sql_file.md
Created February 11, 2016 09:25
Instructions to import an SQL file into your mysql installation.

Instructions

how to import a .sql file into your mysql database

  • Change directory to the directory of your .sql file cd <directory-of-sql-script>
  • Enter the mysql console C:\xampp\mysql\bin\mysql.exe -u root
  • Create the database create database schuldb;
  • Use the created database use schuldb;
@z3ntu
z3ntu / PKGBUILD
Last active February 11, 2016 09:27
Updated PKGBUILD for PacketTracer 6.3
# Maintainer: Runnytu < runnytu at gmail dot com >
# OldMaintainer: Alexey Kharlamov <der@2-47.ru>
# Contributor: David Dufberg Tøttrup <david at dufberg dot se>
# Contributor: Jordi De Groof <jordi(dot)degroof(at)gmail(dot)com>
# Contributor: pyther <pyther@pyther.net>
# Contributor: Luca Weiss <WEI16416@spengergasse.at>
pkgname=packettracer
pkgver=6.3
pkgrel=1
@z3ntu
z3ntu / pkgbuild_reader.sh
Created February 21, 2016 18:46
pyPKGBUILD from the Arch Linux forum
#!/bin/sh
if [ -f $1 ]; then
. $1
VARIABLE="pkgname pkgver pkgrel pkgdesc license url md5sums install source arch group provides makedepends conflicts replaces backup depends"
for VAR in $VARIABLE
do
eval "echo \"$VAR=\${$VAR[@]}\""
done
fi
@z3ntu
z3ntu / .travis.yml
Created February 23, 2016 13:05
Travis configuration file for MiNET (https://github.com/NiclasOlofsson/MiNET)
language: csharp
solution: src/MiNET/MiNET.sln
mono:
- latest
- weekly
- beta
- alpha
script: xbuild /p:TargetFrameworkVersion="v4.5" src/MiNET/MiNET.sln