Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
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
ffmpeg -i TP.mkv -c:s copy -c:v copy -c:a aac TPaac.mkv |
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
#file -s /dev/xvdf | |
#mkfs -t ext4 /dev/xvdf | |
#mkdir /solrdata | |
#mount /dev/xvdf /solrdata | |
#vim /etc/fstab | |
#mount -t ext4 block_device /mount/point | |
lsblk |
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 | |
if [ -f joined-out.mp4 ]; then | |
echo "File joined-out.mp4 already exists!" | |
exit 0 | |
fi | |
# inspired by http://stackoverflow.com/a/41387530/2780918 | |
[ -e list.txt ] && rm list.txt |
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 | |
sudo chmod -R 000 "/Applications/Symantec Solutions/" | |
sudo chmod -R 000 "/Library/Application Support/Symantec/" | |
sudo chmod -R 000 "/Library/LaunchAgents/com.symantec.uiagent.application.plist" | |
sudo chmod -R 000 /Library/PrivateFrameworks/Sym* |
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 | |
sudo chmod -R 755 "/Applications/Symantec Solutions/" | |
sudo chmod -R 755 "/Library/Application Support/Symantec/" | |
sudo chmod -R 755 "/Library/LaunchAgents/com.symantec.uiagent.application.plist" | |
sudo chmod -R 755 /Library/PrivateFrameworks/Sym* |
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
from sys import version as python_version | |
import logging | |
from BaseHTTPServer import HTTPServer | |
import json | |
from cgi import parse_header, parse_multipart | |
if python_version.startswith('3'): | |
from urllib.parse import parse_qs | |
from http.server import BaseHTTPRequestHandler | |
else: |
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
#!/usr/bin/env bash | |
# ansible all -m script -a "./sshd_alive.sh" --sudo | |
set -e # exit on error | |
set -u # exit on undeclared var | |
set -x # trace | |
if [ ! -f /tmp/ssh_config.bak ]; then | |
cp /etc/ssh/sshd_config /tmp/sshd_config.bak |
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
tail /etc/default/grub | |
echo "GRUB_DISABLE_OS_PROBER=true" >> /etc/default/grub && update-grub && dpkg --configure -a | |
ansible all -a "apt-get -y update" --sudo | |
ansible all -a "apt-get -y upgrade" --sudo | |
ansible all -a "apt-get -y dist-upgrade" --sudo |
NewerOlder