This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ***** BEGIN GPL LICENSE BLOCK ***** | |
| # | |
| # | |
| # 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 2 | |
| # of the License, or (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, | |
| # but WITHOUT ANY WARRANTY; without even the implied warranty of |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| The following are command line commands for backing up /dev/sda1 in the same manner | |
| that "redo backup and restore" uses. Note that the MD5 of the partition files will | |
| not be the same because gzip stores info about the current time | |
| (http://superuser.com/questions/617934/): | |
| #mount network drive | |
| mount.cifs '//host.example.com/fab/temp' /mnt/backup -o username=myuser,password=mypass | |
| #save backup list (sda1 in our case) | |
| echo sda1 > /mnt/backup/20141009.backup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function widget:GetInfo() | |
| return { | |
| name = "Group Label - new", | |
| desc = "Displays label on units in a group", | |
| author = "gunblob, Pako", | |
| date = "June 12, 2008, 29.01.2016", | |
| license = "GNU GPL, v2 or later", | |
| layer = 0, | |
| enabled = true | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #branches develop release | |
| BRANCH="develop" | |
| date=$(date) | |
| OUTPUT=$(python /home/spring/scripts/upq.py) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from cffi import FFI | |
| ffi = FFI() | |
| ffi.cdef( | |
| """ | |
| bool IsUserAnAdmin(void); | |
| """ | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| t's quite easy, no disassembling required. | |
| 1. Enable SFTP in the web interface | |
| 2. Open a SFTP connection to the box using your admin account | |
| 3. Change directory to the Admin: cd Admin | |
| 4. Create a link for default.runlevel file: symlink /etc/initng/runlevel/default.runlevel default.runlevel | |
| 5. Create a link for shadow file: symlink /etc/shadow shadow | |
| 6. Create a link for unicorn.sharing.ssh.conf file: symlink /etc/unicorn/unicorn_conf/unicorn.sharing.ssh.conf unicorn.sharing.ssh.conf | |
| 7. You can close SFTP connection now | |
| 8. Open the web file manager in your browser and navigate to the Admin folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /******************************************************************** | |
| * Description: galvo9kins.c | |
| * Kinematics for 2 axis galvanometer scanner | |
| * Derived from: | |
| * | |
| * Author: Jozsef Papp / hg5bsd | |
| * License: coding and fitting it into EMC2 from our part is GPL alike | |
| * | |
| * System: realtime Linux, EMC2 | |
| * Copyright (c) 2010 All rights reserved. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #branches develop release | |
| BRANCH="develop" | |
| date=$(date) | |
| OUTPUT=$(python /home/spring/scripts/upq.py) | |
| VERSION=$(echo "$OUTPUT" | cut -d' ' -f1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################################################ | |
| # heiden.py | |
| # | |
| # Post for heidenhain | |
| # | |
| # TurBoss 01/07/2016 | |
| # | |
| ################################################################################ | |
| from . import nc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ################################################################################ | |
| # fadal.py | |
| # | |
| # Fadal ISO NC code creator | |
| # | |
| # TurBoss, 19/06/2016 | |
| # | |
| ################################################################################ | |
| import math |