First, copy the plist file from (take note, that the number 1,590 may vary in each machine)
/usr/local/Cellar/jenkins/1.590
to LaunchAgent folder:
cp /usr/local/Cellar/jenkins/1.590/homebrew.mxcl.jenkins.plist /Users/medianet/Library/LaunchAgents
| /// <summary> | |
| /// This tool helps to identify and remove empty folders from your Unity 3D project. | |
| /// | |
| /// /// Why do I need this: | |
| /// Empty folders are not committed by git but the connected meta files are. | |
| /// So there will be a creation - deletion cycle between between person with and without such a folder. | |
| /// | |
| /// /// Usage: | |
| /// The tool adds a new menu Tools->Empty Folder Tool. | |
| /// 1. If you "Toggle Auto Delete", every time you remove or move something in your project |
| using System; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Text; | |
| namespace UDP | |
| { | |
| public class UDPSocket | |
| { | |
| private Socket _socket = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp); |
| import asyncio | |
| import threading | |
| import random | |
| def thr(i): | |
| # we need to create a new loop for the thread, and set it as the 'default' | |
| # loop that will be returned by calls to asyncio.get_event_loop() from this | |
| # thread. | |
| loop = asyncio.new_event_loop() |
| # Adapted from https://developers.yubico.com/ykneo-openpgp/ResetApplet.html | |
| gpg-connect-agent <<EOF | |
| /hex | |
| scd serialno | |
| scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
| scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
| scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
| scd apdu 00 20 00 81 08 40 40 40 40 40 40 40 40 | |
| scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 | |
| scd apdu 00 20 00 83 08 40 40 40 40 40 40 40 40 |
| #!/bin/sh | |
| # Use AWS CLI to get the most recent version of an AMI that | |
| # matches certain criteria. Has obvious uses. Made possible via | |
| # --query, --output text, and the fact that RFC3339 datetime | |
| # fields are easily sortable. | |
| export AWS_DEFAULT_REGION=us-east-1 | |
| aws ec2 describe-images \ |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
| using System.IO; | |
| using System.Linq; | |
| using UnityEditor; | |
| using UnityEngine; | |
| public class RemoveEmptyFolders | |
| { | |
| /// <summary> | |
| /// Use this flag to simulate a run, before really deleting any folders. | |
| /// </summary> |
Let's say you're using Ubuntu 13.04 (Raring Ringtail, released in April 2013) and it just went End-of-Life on you, because it's supported for only 6 months, and the deprecated packages are taken down after 12 months.
You'll probably figure this out the hard way. When you run sudo apt-get update, it will eventually report these errors:
Ign http://archive.ubuntu.com raring-updates/universe Sources/DiffIndex
Err http://security.ubuntu.com raring-security/main Sources
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com raring-security/universe Sources
404 Not Found [IP: 91.189.91.15 80]