Skip to content

Instantly share code, notes, and snippets.

View w0rd-driven's full-sized avatar
🌴
Chill

Jeremy Brayton w0rd-driven

🌴
Chill
View GitHub Profile
@w0rd-driven
w0rd-driven / web.config
Last active December 14, 2015 00:19
Correcting WebAPI delete/put verbs in typical ASP.NET MVC template web.config. The problem typically stems from using WebDAV, which seems to "hijack" the delete & put. You have to remove both the module (line 3) and handler (line 6).
<system.webServer>
<modules runAllManagedModulesForAllRequests="false">
<remove name="WebDAVModule" />
</modules>
<handlers>
<remove name="WebDAV" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" />
<remove name="ExtensionlessUrlHandler-ISAPI-4.0_64bit" />
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<add name="ExtensionlessUrlHandler-ISAPI-4.0_32bit" path="*." verb="GET,HEAD,POST,DEBUG,PUT,DELETE,PATCH,OPTIONS" modules="IsapiModule" scriptProcessor="%windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll" preCondition="classicMode,runtimeVersionv4.0,bitness32" responseBufferLimit="0" />
@w0rd-driven
w0rd-driven / _config.yml
Last active March 20, 2016 23:32
Implementing Wordpress-style tags in Octopress
tag_dir: tags
@w0rd-driven
w0rd-driven / .env.gitlab
Created September 8, 2016 23:43
Gitlab CI for Laravel 5.x: Testing
APP_ENV=test
APP_DEBUG=true
APP_KEY=SomeRandomString
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=homestead
DB_USERNAME=homestead

Keybase proof

I hereby claim:

  • I am w0rd-driven on github.
  • I am w0rddriven (https://keybase.io/w0rddriven) on keybase.
  • I have a public key whose fingerprint is F044 E837 635F 63C6 A9AF E841 C1C5 EAFD C838 43E0

To claim this, I am signing this object:

@w0rd-driven
w0rd-driven / virtualbox-build-output.log
Created November 14, 2016 15:17
Settler PHP 5.6 updates build log
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'bento/ubuntu-14.04'...
Progress: 10%
Progress: 20%
Progress: 30%
Progress: 40%
Progress: 50%
Progress: 70%
Progress: 80%
@w0rd-driven
w0rd-driven / passwords.txt
Created November 18, 2016 20:19
BFG Repo-Cleaner --replace-text example
PASSWORD1 # Replace literal string 'PASSWORD1' with '***REMOVED***' (default)
PASSWORD2==>examplePass # replace with 'examplePass' instead
PASSWORD3==> # replace with the empty string
regex:password=\w+==>password= # Replace, using a regex
regex:\r(\n)==>$1 # Replace Windows newlines with Unix newlines

Effective Engineer - Notes

What's an Effective Engineer?

  • They are the people who get things done. Effective Engineers produce results.

Adopt the Right Mindsets

@w0rd-driven
w0rd-driven / History|-104164a|entries.json
Last active January 3, 2023 21:32
VSCode Settings Sync
{"version":1,"resource":"file:///Users/Shared/repositories/personal/elixir/dockyard_academy/blog/lib/blog_web/controllers/comment_controller.ex","entries":[{"id":"pNlm.ex","timestamp":1671533821731},{"id":"gRSl.ex","timestamp":1671533964154},{"id":"WZBi.ex","timestamp":1671736939274},{"id":"s3wc.ex","timestamp":1671736970459},{"id":"GWBD.ex","timestamp":1671737016998},{"id":"0sMU.ex","timestamp":1671737043990},{"id":"8I7E.ex","timestamp":1671737094286},{"id":"N5Uv.ex","timestamp":1671737117029},{"id":"z4Qg.ex","timestamp":1671737203685},{"id":"3SGZ.ex","timestamp":1671737219403},{"id":"tweM.ex","timestamp":1671737229416},{"id":"KBcA.ex","timestamp":1671737254263},{"id":"laOC.ex","timestamp":1671737318339},{"id":"1cML.ex","timestamp":1671737341455},{"id":"DDxd.ex","timestamp":1671737380283},{"id":"tqZ1.ex","timestamp":1671737411384},{"id":"sdeY.ex","timestamp":1671737441714},{"id":"2IW6.ex","timestamp":1671737467440},{"id":"kVBE.ex","timestamp":1671737482950},{"id":"CiiM.ex","timestamp":1671737540172},{"id":"k

Teller Bank Challenge

Mix.install([:req, :jason, :kino])

Your Solution

username = Kino.Input.text("Username") |> Kino.render()
@w0rd-driven
w0rd-driven / teller_challenge-codebeam_2022.livemd
Created November 5, 2022 04:21
Teller Challenge for Code BEAM America 2022

Teller Bank Challenge

Mix.install([:req, :jason, :kino])

Your Solution

username = Kino.Input.text("Username") |> Kino.render()