- Avoid using root credentials
- Turn on cloudtrail
- Turn on config recorder
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
# Sane security defaults for SSH clients. Disables everything old and nasty. | |
# Explanation: http://mochtu.de/2015/01/06/securing-ssh-connections/ | |
# Background information: https://stribika.github.io/2015/01/04/secure-secure-shell.html | |
# OSX Users: consider updating your openssh version, or you might see an error. | |
Host * | |
KexAlgorithms [email protected],diffie-hellman-group-exchange-sha256 | |
# delete diffie-hellman-group-exchange-sha1 | |
Ciphers [email protected],aes256-ctr,aes192-ctr,aes128-ctr | |
MACs [email protected],[email protected],[email protected],[email protected],hmac-sha2-512,hmac-sha2-256,hmac-ripemd160,[email protected] |
Our goal here is to have one USB stick to rule them all. Objectives:
- We want a full system - not a live CD
- We want to boot this system on a Macbook Pro (requires UEFI)
- We want to boot this system on a Acer C720 Chromebook (requires Legacy BIOS support)
- We want the system "functional"
The last bullet is subject to interpretation, but I'm defining functional as:
- X Windows works (with LXDE)
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
{ | |
"version":3, | |
"file":"Other", | |
"lineCount":20, | |
"mappings":";;;;;;AAQI,OAAOA,MAAO,EAAI,WAAY,EAAG,OAAOC,OAAQ,EAAI,WAAY,EAAGD,MAAMC,QAAS,GAAIA,O,GACxFD,MAAMC,QAAS,CAAE,YAAW,CAG7B,QAAS,CAACC,CAAM,CAAEC,CAAO,CAAEC,CAAlB,CAA6B,CAGvC,Y,CAWAC,SAASA,CAAO,CAACC,CAAM,CAAEC,CAAT,CAAgB,CAC9B,OAAOC,CAAM,CAAC,IAAKA,CAAM,CAAC,QAAQ,CAAA,CAAG,EAAE,CAAE,CAAE,SAAS,CAAEF,CAAb,CAAhB,EAAyC,CAAEC,CAAvD,CADiB,CAIhCE,SAASA,CAAK,CAACC,CAAD,CAAM,CAQlB,OAPAC,CAAO,CAACC,SAAS,CAAE,QAAQ,CAACC,CAAD,CAAM,CAC3BA,CAAI,GAAIH,C,EACVC,CAAO,CAACE,CAAG,CAAE,QAAQ,CAACC,CAAK,CAAEC,CAAR,CAAa,CAC3BL,CAAGM,eAAe,CAACD,CAAD,C,GAAOL,CAAI,CAAAK,CAAA,CAAK,CAAED,EADT,CAA3B,CAFsB,CAA1B,CAML,CACKJ,CARW,CAkBpBO,SAASA,EAAS,CAACC,CAAK,CAAEC,CAAR,CAAgB,CAChC,IAAIC,EAAO,CAAA,CAAE,CAEb,IAAS,IAAAC,EAAE,GAAGH,CAAKE,KAAnB,CAA0B,CACxB,GAAIF,CAAKE,KAAM,CAAAC,CAAA,CAAG,GAAIF,CAAMC,KAAM,CAAAC,CAAA,EAAI,KAAK,CAC3CD,CAAIE,KAAK,CAACJ,CAAKE,KAAM,CAAAC,CAAA,CAAZ,CAFe,CAI1B,OAAOD,CAPyB,CAmClCG,SAASA,EAAW,CAACC,CAAK,CAAEV,CAAR,CAAe,CACjC,GAAIW,KAAKC,UAAUC,SACjB,OAAOH,CAAKG,QAAQ,CAA |
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
/** | |
* State-based routing for AngularJS | |
* @version v0.2.10 | |
* @link http://angular-ui.github.com/ | |
* @license MIT License, http://www.opensource.org/licenses/MIT | |
*/ | |
typeof module!="undefined"&&typeof exports!="undefined"&&module.exports===exports&&(module.exports="ui.router"),function(n,t,i){"use strict";function l(n,t){return e(new(e(function(){},{prototype:n})),t)}function p(n){return f(arguments,function(t){t!==n&&f(t,function(t,i){n.hasOwnProperty(i)||(n[i]=t)})}),n}function ht(n,t){var r=[];for(var i in n.path){if(n.path[i]!==t.path[i])break;r.push(n.path[i])}return r}function ct(n,t){if(Array.prototype.indexOf)return n.indexOf(t,Number(arguments[2])||0);var r=n.length>>>0,i=Number(arguments[2])||0;for(i=i<0?Math.ceil(i):Math.floor(i),i<0&&(i+=r);i<r;i++)if(i in n&&n[i]===t)return i;return-1}function w(n,t,i,r){var o=ht(i,r),u,h={},c=[],s,f;for(s in o)if(o[s].params&&o[s].params.length){u=o[s].params;for(f in u)ct(c,u[f])>=0||(c.push(u[f]),h[u[f]]=n[u[f]])}return e({},h,t)}function b(n,t){var i={};ret |
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
private HttpContext GetContext(IEnumerable<KeyValuePair<string,string>> postVariables) | |
{ | |
postVariables = postVariables ?? Enumerable.Empty<KeyValuePair<string, string>>(); | |
var context = new System.Web.HttpContext( | |
new System.Web.HttpRequest("", "http://tempuri.org", ""), | |
new HttpResponse(new StringWriter())); | |
var sessionContainer = new System.Web.SessionState.HttpSessionStateContainer("id", new System.Web.SessionState.SessionStateItemCollection(), | |
new HttpStaticObjectsCollection(), 10, true, | |
HttpCookieMode.AutoDetect, | |
System.Web.SessionState.SessionStateMode.InProc, false); |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 | |
{ | |
class Program | |
{ |
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
javascript: (function ($) { | |
function load_script(src, callback) { | |
var s = document.createElement('script'); | |
s.src = src; | |
s.onload = callback; | |
document.getElementsByTagName('head')[0].appendChild(s); | |
} | |
function invertElement() { | |
var colorProperties = ['color', 'background-color']; |
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
/* | |
Original code by Nick Brenn | |
Modified by Marc de Vinck | |
Make Projects Arduino-based 4WD robot | |
http://makeprojects.com/Project/Build-your-own-Arduino-Controlled-Robot-/577/1 | |
*/ | |
#include <AFMotor.h> | |
AF_DCMotor motor1(1, MOTOR12_8KHZ); | |
AF_DCMotor motor2(2, MOTOR12_8KHZ); | |
AF_DCMotor motor3(3, MOTOR12_1KHZ); |
NewerOlder