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 | |
| # BenQ PD3220U working modes for Purism Librem 13 v4 | |
| # Add higher resolutions via xrandr | |
| # References on issue | |
| # https://forums.puri.sm/t/4k-output-from-librem13-hdmi-port/4441/2 | |
| # Create new modes | |
| # NOTE: use `cvt` not `gtf` to get mode settings |
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
| # If install fails due to git permissions issue following commands first | |
| # source: https://github.com/rust-lang/cargo/issues/3381#issuecomment-308460530 | |
| eval `ssh-agent -s` | |
| ssh-add | |
| cargo ... |
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
| # https://stackoverflow.com/questions/10587615/unix-command-to-prepend-text-to-a-file | |
| # -i creates backup | |
| # semi-colon is delimiter | |
| sed -i.old '1s;^;to be prepended;' inFile |
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
| # Read more: https://github.com/rust-lang/cargo/issues/3381#issuecomment-308460530 | |
| eval `ssh-agent -s` | |
| ssh-add | |
| cargo ... |
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
| sudo docker run -d -i -t --privileged -p 27017-27019:27017-27019 --name mongodb mongo |
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/sh | |
| #Put this script into <gitProject>/hooks/post-receive on the production server | |
| #Make sure this script has execute permissions (chmod +x post-receive) | |
| #You can create a group (like "git"), make it owner of this file, and add | |
| #every user that needs to push to the that group. | |
| echo 'start repo to prod' | |
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
| // Add this snippet to theme functions.php | |
| // Add script for live reload in development mode | |
| function add_live_reload() | |
| { | |
| if (WP_DEBUG) { | |
| echo "<script>document.write('<script src=\"http://' + (location.host || 'localhost').split(':')[0] + ':35729/livereload.js?snipver=1\"></' + 'script>')</script>"; | |
| } | |
| } | |
| add_filter( 'wp_footer', 'add_live_reload'); |
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
| # On OS X be sure to install ssh-copy-id | |
| brew install ssh-copy-id | |
| # Add this function to your .bash_profile/.profile file | |
| # Copy public key to remote host | |
| function authorize () { | |
| ssh-copy-id -i ~/.ssh/id_rsa.pub $@ | |
| } |
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
| !!! 5 | |
| %html | |
| %head | |
| %title= "Your Website" | |
| %meta{ :content => "", :name => "description" } | |
| %meta{ :content => "", :name => "author" } | |
| %meta{ :content => "3 days", :name => "revisit-after" } | |
| %link{ :href => "http://creativecommons.org/licenses/by/3.0/", :rel => "license", :title => "Creative Commons Attribution 3.0 Unported License" } | |
| %link{ :href => "/feed", :rel => "alternate", :title => "Atom", :type => "application/atom+xml" } | |
| %link{ :href => "/css/screen.css", :media => "screen", :rel => "stylesheet" } |