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
echo "................................................................................" && | |
echo "Hi! This will update 2 .plist files to disable Adobe Updates as recommended by" && | |
echo "Adobe on http://kb2.adobe.com/cps/408/kb408711.html" && | |
echo "and http://kb2.adobe.com/cps/404/kb404813.html." && | |
echo "Therefore you have to enter your password here. Open this file in TextEdit to see for yourself if you don't trust me." && | |
echo "................................................................................" && | |
sudo defaults write /Library/Preferences/com.adobe.AdobeUpdater.Admin 'Disable.Update' -bool 'YES' && | |
sudo defaults write /Library/Preferences/com.adobe.CSXSPreferences 'UpdatesAllowed' -string '0' && | |
echo "Settings updated. Reboot and have fun." | |
echo "................................................................................" |
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
<?php | |
class CP_Calendar_Event_Handler extends CP_Custom_Content_Handler_Base | |
{ | |
/** | |
* Registers the Calendar Event PostType | |
* | |
*/ | |
public function on_setup_custom_content() | |
{ |
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
#!/bin/bash | |
# A script for re-encoding mkv files into something that iTunes and Apple TV | |
# likes. Suitable for calling from a Folder Action in order to automatically | |
# encode and add new downloaded movies. | |
# Requires HandBrakeCLI: | |
# http://handbrake.fr/downloads2.php | |
# Requires growlnotify (probably works without it): | |
# http://growl.info/extras.php |
This file has been truncated, but you can view the full file.
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
n[Kmkdir kalua | |
mfa@debian:~$ cd kalua | |
mfa@debian:~/kalua$ pipe-pane 'cat >>$HOME/tmux.log[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[K[Kgit clone git://nbd.name/openwrt.git | |
Cloning into openwrt... | |
remote: Counting objects: 72 [K remote: Counting objects: 11255 [K remote: Counting objects: 30159 [K remote: Counting objects: 30307 [K remote: Counting objects: 30428 [K remote: Counting objects: 47943 [K remote: Counting objects: 119132 [K remote: Counting objects: 182337 [K remote: Counting objects: 189834, done.[K | |
remote: Compressing objects: 0% (1/59783) [K remote: Compressing objects: 1% (598/59783) [K remote: Compressing objects: 2% (1196/59783) [K remote: Compressing objects: 3% (1794/59783) [K remote: Compressing objects: 4% (2392/59783) [K remote: Compressing objects: 5% (2990/59783) [K remote: Compressing objects: 6% (3587/59783) [K remote: Compressing objects: 7 |
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
# It's important to convert the vbox image (VMDK or VDI or whatever) using | |
# the same version of VirtualBox that created it. You can try converting the image | |
# with qemu-img or kvm-img, but weird version mismatches will possibly make it not | |
# work. | |
# On your VirtualBox machine: | |
cd $VBOX_ROOT/$MACHINE_ROOT/ | |
VBoxManage clonehd machine.vmdk machine.img --format RAW | |
scp machine.img root@kvm-host:/somewhere |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
#!/bin/sh | |
# script to get open/closed status of MR | |
## use manually: $ sh mr-closed.sh | |
## use in scripts: ./mr-closed.sh && ./do_this_when_closed.sh || ./do_this_when_open.sh | |
# logic | |
## 1. `curl` latest tweet from @MR_door_status | |
## 2. `grep` for 'MR is open' | |
## 3a. if MR is open, echo it and exit 1 |
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
APP=nginx | |
HOST=ars | |
CLASS=2 | |
#echo "make key: $APP.$HOST.encrypted.key" | |
#openssl genrsa -des3 -out $APP.$HOST.encrypted.key 2048 | |
echo "make CSR: $APP.$HOST.csr" | |
openssl req -new -key $APP.$HOST.encrypted.key -out $APP.$HOST.csr |
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
// from <https://github.com/twbs/bootstrap-examples/blob/2998929b39eb3a4d587c6237d98095f9f5b0df2f/starter-template/starter-template.css> | |
body { | |
padding-top: 50px; | |
} | |
.starter-template { | |
padding: 40px 15px; | |
text-align: center; | |
} |
OlderNewer