Skip to content

Instantly share code, notes, and snippets.

View Sharkbyteprojects's full-sized avatar
🐋
Focusing

Sharkbyteprojects Sharkbyteprojects

🐋
Focusing
View GitHub Profile
@Sharkbyteprojects
Sharkbyteprojects / NSIS Script Putty INSTALLER.nsi
Last active October 20, 2018 07:04
Beispielscript PUTTy INSTALLER NSIS
!define APPNAME "Putty"
!define COMPANYNAME "SharkByte"
!define DESCRIPTION "Ein SSH Client"
# Modern UI
!include MUI2.nsh
# These three must be integers
RequestExecutionLevel admin ;Require admin rights on NT6+ (When UAC is turned on)
@Sharkbyteprojects
Sharkbyteprojects / apache-install.sh
Last active January 26, 2019 19:40
Hilft, APACHE 2 zu installieren.
#Für Windows:
#Installieren sie XAMPP https://www.apachefriends.org/de/index.html
#Für Linux:
# Laden sie die datei per wget --no-check-certificate http://services.sharkbyte.bplaced.net/</apache.sh herunter
# Geben sie folgendes ein: chmod +x apache.sh
#Danach ./apache.sh
clear
echo Eventuell müssen sie das ROOT Kennwort eingeben. Geben sie dies ein wenn sie aufgefordert werden. Bei Fragen wegen Festplattenspeicher müssen sie J eingeben
sudo apt-get install apache2
clear
@Sharkbyteprojects
Sharkbyteprojects / halt.bat
Last active October 11, 2018 18:13
Herunterfahren Desktop Icon
@echo off
echo Moechten sie wirklich Herunterfahren
pause
stop.bat
@Sharkbyteprojects
Sharkbyteprojects / run cmd.nsi
Last active November 6, 2018 19:38
Startet die Cmd
Name "EXEC cmd"
OutFile "exec test.exe"
SetCompressor lzma
InstallDir "$DOCUMENTS"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\German.nlf"
Page instfiles
Section
SetOutPath $INSTDIR
ExecWait "cmd";RUN CMD --> instead of cmd you can also enter the program path of any program that will be executed.
SectionEnd
@Sharkbyteprojects
Sharkbyteprojects / gen.py
Last active December 4, 2018 18:02
Passwordgenerator DE
# Repos: https://bitbucket.org/Sharkbyteprojects/passwordgenerator/
# Lizenz: https://bitbucket.org/Sharkbyteprojects/passwordgenerator/raw/6eb05bf88a03b5856fc7764470e4ff693c37f8a5/LICENSE
import time
import sys
import random
geladene_daten = ['1','2','3','4','5','6','7','8','9','0','q','w','e','r','t','z','u','i','o','p','a','s','d','f','g','h','j','k','l','y','x','c','v','b','n','m','.',',',';',':','_','-','@','!','"','§','%','&','/','(',')','=','?','#','*','+','~','Q','W','E','R','T','Z','U','I','O','P','A','S','D','F','G','H','J','K','L','Y','X','C','V','B','N','M','<','>','|','°']
choice = (random.choice(geladene_daten) + random.choice(geladene_daten) + random.choice(geladene_daten) + random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice(geladene_daten)+ random.choice
@Sharkbyteprojects
Sharkbyteprojects / printing.js
Last active December 4, 2018 22:00
Abfage js für html Dokumente GERMAN|Deutsch
//Before use printing() you must embed script with <script src="path to script/printing.js"></script>
//"path to script" must be replaced by the path
function printing(){
var printingvar = confirm(unescape("M%F6chten sie das Dokument Drucken%3F"));
if(printingvar) {
console.log("Das Drucken wurde mit " + printingvar + " angenommen");
console.log("Dokument wird gedruckt");
window.print()
} else {
console.log("Drucken wurde mit " + printingvar + " abgelehnt")
@Sharkbyteprojects
Sharkbyteprojects / ESC.cs
Created January 26, 2019 19:43
ESC Close Script for Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ESC : MonoBehaviour
{
void Update(){
if(Input.GetKey("escape"))
{
Application.Quit();
@Sharkbyteprojects
Sharkbyteprojects / Beispielscript.nsi
Created January 27, 2019 11:38
NSIS BEISPIELSCRIPT
; Beispiel-Skript
Name "MeinBeispiel"
OutFile "installer.exe"
SetCompressor lzma
InstallDir "$PROGRAMFILES\beispiel"
InstallDirRegKey HKLM "SOFTWARE\beispiel" "installdir"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\German.nlf"
Page directory
Page instfiles
Section
//START WITH NODE.JS:
//node WEBSERVER-WITH_DETECTION.js
var http = require('http');
var user = 0;
console.log("HTTP SERVER ON localhost:8080");
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
res.write(req.url);
user++;
console.log(user + ". USER EINGABE: " + req.url);
@Sharkbyteprojects
Sharkbyteprojects / pdfmerge.bat
Last active February 19, 2019 17:45
PDF MERGE TO USE GHOSTSCRIPT AND LATEX on 64 Bit Systems
@echo off
REM PDF MERGE 64x BIT operating system
:: Attension: gs must be in the PATH
title PDFMERGE
echo Welcome %USERNAME% on %COMPUTERNAME% to PDFMERGE
if "%1" == "-tex" goto texcomp
if "%1" == "-help" goto help
::if "%1" == "-node" node
if "%1" == "-?" goto help
if "%1" == "" goto fail