Skip to content

Instantly share code, notes, and snippets.

@Snake-Sanders
Snake-Sanders / short_notes.md
Last active April 23, 2023 18:07
Elixir env settings

Reduce the debug level of the terminal

  • /config/dev.exs

config :logger, level: :info

Debug Iex using Ecto queries

  • .iex.exs
@Snake-Sanders
Snake-Sanders / cheatsheet-git.md
Last active February 21, 2019 15:12
Git cheat-sheet

Set a directory as a git repo

git init

Stage files to be committed

git add .

Commit files to local database

@Snake-Sanders
Snake-Sanders / Launching SublimeText 3 from console
Created January 1, 2018 10:37
Launching SublimeText 3 from console on MacOS
(On MacOs)
You need to create a link to the application and locate it in the local bin folder
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
source:
http://olivierlacan.com/posts/launch-sublime-text-3-from-the-command-line/
@Snake-Sanders
Snake-Sanders / Vorarlberg.tmTheme
Last active December 29, 2017 12:24
Color Theme for SublimeText
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>author</key>
<string>Snake Sanders</string>
@Snake-Sanders
Snake-Sanders / Airport_monitor_mode.txt
Last active December 23, 2017 10:51
set airport in monitor mode for MacOS
Creating Symlink:
sudo ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport /usr/local/bin/airport
Example of sniffing in monitor mode:
sudo airport en1 sniff 1
This sniffs on channel 1 and saves a pcap capture file to /tmp/airportSniffXXXXXX.pcap (where XXXXXX will vary).
You can view this with tcpdump -r <filename> or by opening it in wireshark.
@Snake-Sanders
Snake-Sanders / ChesterSnakeSnaders.tmTheme
Created August 7, 2017 13:44
Chester theme from atom migrated to Sublime Text 3
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!-- Generated by: TmTheme-Editor -->
<!-- ============================================ -->
<!-- app: http://tmtheme-editor.herokuapp.com -->
<!-- code: https://github.com/aziz/tmTheme-Editor -->
<plist version="1.0">
<dict>
<key>name</key>
<string>SnakeSnaders</string>
@Snake-Sanders
Snake-Sanders / convertToDocx365.rb
Last active June 29, 2017 12:13
Convert Docx for Office 365.
require "fileutils"
# Version 3.1
#
# Description: This script solves the problem when opening docx files with the new office 360. Some documents report "Xml parsing error"
# This is due to an deprecated xml tag. This script parses the docx and removes them.
#
# Requires 7zip installed and added to the path.
#
# usage: