time.google.com
time1.google.com
time2.google.com
time3.google.com
Just run this from your Mac terminal and it'll drop you in a container with full permissions on the Docker VM. This also works for Docker for Windows for getting in Moby Linux VM (doesn't work for Windows Containers).
docker run -it --rm --privileged --pid=host justincormack/nsenter1
more info: https://github.com/justincormack/nsenter1
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
So you want to commit changes generated by a GitHub Actions workflow back to your repo, and have that commit signed automatically?
Here's one way this is possible, using the REST API, the auto-generated GITHUB_TOKEN
, and the GitHub CLI, gh
, which is pre-installed on GitHub's hosted Actions runners.
You don't have to configure the git
client, just add a step like the one below... Be sure to edit FILE_TO_COMMIT
and DESTINATION_BRANCH
to suit your needs.
Last updated: 2017-03-18
exiftool -filename -filemodifydate -createdate -r -if '(not $datetimeoriginal) and $filetype eq "JPEG"' .
###Output photos that don't have datetimeoriginal to a CSV### Note this can take a long time if you have a lot of jpgs
import os, os.path, sys, urllib2, requests | |
class PyPiError(Exception): | |
def __init__(self, value): | |
self.value = value | |
def __str__(self): | |
return repr(self.value) | |
def _chunk_report(bytes_so_far, chunk_size, total_size): | |
if (total_size != None): |
alias dos2unix-recursive='find . -iname '*.tpl' | xargs dos2unix' | |
alias edit='mcedit' | |
alias del='rm' | |
alias deltree='rm -r' | |
alias dir='/bin/ls $LS_OPTIONS --format=vertical' | |
alias attrib='chmod' | |
alias chdir='cd' | |
alias copy='cp' | |
alias ls='ls -a' |
#!/bin/sh | |
# | |
# Orinally made by Lovell Fuller for sharp | |
# https://github.com/lovell/sharp | |
# | |
# Usage: | |
# curl -s https://gist.githubusercontent.com/h2non/89bb2f87c6499d0b25f1/raw/bf3d0743107f02f5db2b93c53f7f0e07a1c33112/libvips-installer.sh | sudo bash - | |
# |
# I will eat you family and your dog if you use FROM ubuntu for container that runs a service in production | |
# Reading: http://phusion.github.io/baseimage-docker/ | |
FROM phusion/baseimage:0.9.15 | |
# inspired by https://github.com/progrium/buildstep | |
RUN mkdir /build | |
ADD ./files-build/ /build/ | |
RUN chmod --recursive go-rwx /build | |
RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive /bin/bash /build/prepare | |
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* |