Skip to content

Instantly share code, notes, and snippets.

View ressl's full-sized avatar

Robert Ressl ressl

View GitHub Profile
@nateware
nateware / gist:3915757
Created October 19, 2012 01:27
Start Mac VNC server from command line
# Step 1: Set priveleges
$ sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all
Starting...
Setting allow all users to YES.
Setting all users privileges to 1073742079.
Done.
# Step 2: Allow VNC clients
@ressl
ressl / gitlab_retry_ci.md
Last active July 13, 2018 10:54
GitLab retry all failed jobs

#First assign a user to user variable user = User.find_by(username: 'your username here')

Find all failed jobs for the project with the id 62

job = Ci::Build.find_by_sql("select * from ci_builds where status = 'failed' and project_id = '62'")

job.each { |j| Ci::Build.retry(j, user) }