Skip to content

Instantly share code, notes, and snippets.

View christi3k's full-sized avatar

Christie Koehler christi3k

View GitHub Profile
@christi3k
christi3k / set-date-time-formats.sh
Created November 3, 2023 00:18 — forked from chris-79/set-date-time-formats.sh
Set my preferred date and time formats on OS X
# declare my US locale
defaults write NSGlobalDomain AppleLocale -string "en_US@currency=USD"
defaults write com.apple.systempreferences AppleIntlCustomFormat -dict-add "AppleIntlCustomLocale" "en_US"
# date string formats
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "1" "yyyy/MM/dd"
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "2" "dd MMM y"
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "3" "dd MMMM y"
defaults write NSGlobalDomain AppleICUDateFormatStrings -dict-add "4" "EEEE, dd MMMM y"

Keybase proof

I hereby claim:

  • I am christi3k on github.
  • I am christi3k (https://keybase.io/christi3k) on keybase.
  • I have a public key ASCYy4Bv21_mpv0wWRIWAoP9Jx-xNXV_0_RvN03hbs2u7Qo

To claim this, I am signing this object:

#cloud-config
users:
- name: zulipdev
ssh_authorized_keys:
- <PUBLIC SSH KEY>
runcmd:
- su -c 'cd /home/zulipdev/zulip && git remote add origin https://github.com/<USERNAME>/zulip.git && git fetch origin' zulipdev
power_state:
mode: reboot
condition: True
#cloud-config
users:
- name: zulipdev
groups: sudo
shell: /bin/bash
sudo: ['ALL=(ALL) NOPASSWD:ALL']
ssh-authorized-keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCtoDC+AAZeosQ1uPhWRUZ9PbfY/FBolq1PLr7Ezs1ERvdIUKzw1LWHMhZLV20URmoWC4O7P2fvrbksHE3uFsJ5SgOhq68V63ABE7PAgpOymxAjO8nKt5rYFtLWICzKCsE8WhrFK3Eu0ILbMgz6Vl0XeuluI3PUNppLiogyhk84mrKKemHn0pwrmIPwYeURiZvSS2UzCTA06mlkcTEKeGCMd5O5+5xmQGGqKsqoCzvb92RIYVREnv+fXbzG4fxu5i0zYYia/kH89HsFoo+zZmDgXV+NVDqixzK8Br79Y9/6O0ct6goQ9ySDDUOyII3/XmL0GnjbpqK/Pv1+49P6ERKv
package_update: true
packages:
---
lib/vagrant/bundler.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/vagrant/bundler.rb b/lib/vagrant/bundler.rb
index 5a5c185..c4a3837 100644
--- a/lib/vagrant/bundler.rb
+++ b/lib/vagrant/bundler.rb
@@ -272,7 +272,6 @@ module Vagrant
#!/bin/bash -xe
echo "deb http://archive.canonical.com/ lucid partner">>/etc/apt/sources.list
apt-get update
sudo apt-get -y install sun-java6-jdk
update-java-alternatives -s java-6-sun
sudo apt-get install scala mysql-server mysql-client libmysql-java git-core
sudo groupadd etherpad
$url = 'https://github.com/socialigniter/blog/zipball/master';
$options = array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_SSL_VERIFYPEER => 0,
CURLOPT_SSL_VERIFYHOST => 0,
CURLOPT_FOLLOWLOCATION => 1,
);
$ch = curl_init($url);
<div id='frontpage-countdown'>
<h3>2011 Call for Proposals is open!</h3>
<p>
We would love to hear all of those interesting ideas you have in your head---and so would everyone else. That's why we will be accepting your proposals for Open Source Bridge through March 16th.
<a href='http://opensourcebridge.org/call-for-proposals/' class='button'>View the Call for Proposals</a>
</p>
</div>
<div id='frontpage-countdown'>
<?php
/**
* reverse.php Takes a sentence as a command line argument and reverses it,
* word by word.
*
* @author Christie Koehler <christiekoehler@gmail.com>
*/
if($argc > 1 && $argv[1] != '--help'){
echo (implode(array_reverse(explode(' ', $argv[1])), ' '));
<?php
/**
* strrev.php Takes a string as a command line argument and reverses it.
*
* @author Christie Koehler <christiekoehler@gmail.com>
*/
if($argc > 1 && $argv[1] != '--help'){
if($argv[1] == '--harder')
echo (implode(array_reverse(str_split($argv[2]))));