Skip to content

Instantly share code, notes, and snippets.

View thirtified's full-sized avatar

Julian Dreissig thirtified

  • Berlin, Germany
  • 00:16 (UTC +02:00)
View GitHub Profile
@lucamartellucci
lucamartellucci / OpenSSL_Tips.md
Last active March 23, 2020 17:59
OpenSSL Tips

OpenSSL Tips

Show certificate content

$ openssl x509 -in cert.pem -noout -text | more

Build trustchain

@ryankurte
ryankurte / gencerts.sh
Last active March 6, 2024 03:38
Node.js Client Certificate Validation with Pinning Example
#!/bin/bash
# https://gist.github.com/ryankurte/bc0d8cff6e73a6bb1950
set -e
if [ "$#" -ne 3 ] && [ "$#" -ne 4 ]; then
echo "Usage: $0 CA NAME ORG"
echo "CA - name of fake CA"
echo "NAME - name of fake client"
echo "ORG - organisation for both"
@maciekish
maciekish / resetXcode.sh
Created August 10, 2016 10:13
Reset Xcode. Clean, clear module cache, Derived Data and Xcode Caches. You can thank me later.
#!/bin/bash
killall Xcode
xcrun -k
xcodebuild -alltargets clean
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache"
rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache"
rm -rf ~/Library/Developer/Xcode/DerivedData/*
rm -rf ~/Library/Caches/com.apple.dt.Xcode/*
open /Applications/Xcode.app
@drblue
drblue / fix_onedrive.sh
Last active April 16, 2024 21:54
Fix OneDrive for Mac CPU usage
#!/bin/bash
## Fix OneDrive for Mac CPU usage
##
## Seems this is still a problem 5 years later after I created this little gist.
## I have long since stopped using OneDrive (luckily), but according to
## comments below, I have added the new path for OfficeFileCache for macOS
## Mojave (10.14) and Catalina (10.15).
## Run this on macOS Mojave (10.14) and Catalina (10.15)
find ~/Library/Containers/ -type d -name OfficeFileCache -exec rm -r {} +

Recently, we've been working on extracting Ember conventions from applications we're working on into the framework. Our goal is to make it clearer how the parts of an Ember application work together, and how to organize and bootstrap your objects.

Routing

Routing is an important part of web applications. It allows your users to share the URL they see in their browser, and have the same things appear when their friends click on the link.

The Ember.js ecosystem has several great solutions for routing. But, since it is such an important part of most web applications, we've decided to build it right into the framework.

If you have already modeled your application state using Ember.StateManager, there are a few changes you'll need to make to enable routing. Once you've made those changes, you'll notice the browser's address bar spring to life as you start using your app—just by moving between states, Ember.js will update the URL automatically.

@jetztgradnet
jetztgradnet / gist:808968
Created February 3, 2011 03:03
Elastic Beanstalk configuration options
aws:autoscaling:asg Availability Zones
aws:autoscaling:asg Cooldown
aws:autoscaling:asg Custom Availability Zones
aws:autoscaling:asg MaxSize
aws:autoscaling:asg MinSize
aws:autoscaling:launchconfiguration EC2KeyName
aws:autoscaling:launchconfiguration ImageId
aws:autoscaling:launchconfiguration InstanceType
aws:autoscaling:launchconfiguration MonitoringInterval
aws:autoscaling:launchconfiguration SecurityGroups