CCCPaste

Create Minimal Linux with busybox and initrd

#!/bin/bash

pwd=`echo $PWD`
dir="miniLinux"
fs="initramfs"

Basic MySQL Shell commands

#Mysql Shell notes

#restart service if needed
sudo /etc/init.d/mysql restart

Programovanie zad. č. 1

#include <stdio.h>

int main() {

int dlzka, sirka, vyska, pocet;

Blender 3D rotate object and set keyframes

#Python Script for Blender 3d that rotates currently selected object and sets keyframes
import bpy
for x in range(1,250,10):
bpy.data.scenes["Scene"].frame_current=x
bpy.context.object.rotation_euler.x+=1

Wifi Network info and passwords

#Get Wifi info - assuming your

#scan nearby networks
sudo iwlist wlan0 scan

Encrypt a file and upload it

#Encrypt file
openssl aes-256-cbc -in me.jpg -out me.jpg.enc

#same thing, but output as ASCII
openssl aes-256-cbc -in me.jpg -out me.jpg.enc -a

Send Keys on Midi input press

#!/usr/bin/env python

import sys, pygame, pygame.midi
import os #for calling xte to 'sendkeys' My not be the best way, but works...on Linux...if you have xautomation installed

switchkalkulacka

#include <stdio.h>

int main() {
float a, b, c;
char x;

Port/Network Scanner for Android/ARM Devices with Busybox

#!/system/bin/sh

#set PORTS
ports=(80 21 22 23)

Názov úlohy: El. kocka
Úloha: Zastavte generovanie náhodných čísel od 1 do 6 pomocou SW_PC0.
bit_is_clear(PINC, 0)
bit_is_set(PINC, 0)