# Show a list of Ubuntu packages that are marked as manually installed
# See: https://askubuntu.com/a/492343
comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
This is a pair of bash scripts that can be installed on an Ubuntu server to bootstrap a working minecraft server. They are designed to be run with root permissions.
server.sh
- bootstrap the creation of a service that runs the minecraft serverconsole.sh
- connect to the console of a running server usingscreen
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
def base64url_decode(s): | |
""" Decode base64 encoded strings with stripped trailing '=' """ | |
import base64 | |
return base64.urlsafe_b64decode(s + '=' * (-len(s) % 4)) | |
def unpack_jwt_token(token): | |
""" Splits and decodes a JWT into a header, payload and signature. """ | |
import json | |
encoded_header, encoded_payload, encoded_signature = token.split('.') | |
This file contains 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
package com.platypus.com.platypus.crw.udp; | |
import com.platypus.crw.udp.UdpConstants; | |
import com.platypus.crw.udp.UdpServer; | |
import com.platypus.crw.udp.UdpServer.Request; | |
import java.io.IOException; | |
import java.net.*; | |
import java.util.Collection; | |
import java.util.HashMap; |
This file contains 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
package com.platypus; | |
import com.platypus.crw.FunctionObserver; | |
import com.platypus.crw.udp.UdpVehicleServer; | |
import com.platypus.crw.udp.UdpVehicleService; | |
import com.platypus.crw.udp.VehicleRegistryService; | |
import java.net.InetSocketAddress; | |
import java.net.Socket; | |
import java.net.SocketAddress; |
This file contains 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
package com.platypus; | |
import com.platypus.crw.FunctionObserver; | |
import com.platypus.crw.udp.UdpVehicleServer; | |
import com.platypus.crw.udp.UdpVehicleService; | |
import com.platypus.crw.udp.VehicleRegistryService; | |
import java.net.InetSocketAddress; | |
import java.net.Socket; | |
import java.net.SocketAddress; |
This file contains 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
#Inventor V2.0 ascii | |
Separator { | |
Info { | |
string "empty.iv generated by IVCON." | |
string "Original data in file NO_IN_NAME." | |
} | |
Separator { | |
LightModel { | |
model PHONG |
This file contains 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
# Compute the base to gripper offset for the robot. | |
T0_e = robot.GetLink('grasp_frame').GetTransform() | |
T0_b = robot.GetTransform() | |
Te_b = numpy.dot(numpy.linalg.inv(T0_e), T0_b) | |
# Turn off everything except things named 'gripper'! | |
# Autoscale the window by initially centering the gripper. | |
for link in robot.GetLinks(): | |
if 'gripper' not in link.GetName(): | |
link.SetVisible(False) |
This file contains 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
+============== | |
+ 2 | |
+ =========== | |
+ ========= | |
+ \ | |
========= \ | |
\\ \ | |
=========// / | |
2 / | |
=============/ |
NewerOlder