Skip to content

Instantly share code, notes, and snippets.

View ryanwi's full-sized avatar

Ryan Williams ryanwi

View GitHub Profile
# error with sassc
make "DESTDIR="
compiling ./libsass/src/units.cpp
clang: error: the clang compiler does not support '-march=native'
make: *** [units.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/user/.gem/ruby/2.6.3/gems/sassc-2.2.1 for inspection.
Results logged to /Users/user/.gem/ruby/2.6.3/extensions/-darwin-20/2.6.0-static/sassc-2.2.1/gem_make.out
@ryanwi
ryanwi / builder-without-jquery.js
Last active June 27, 2021 19:57
page builder without jQuery or jQuery UI for autocomplete
// Look, no jQuery
'use strict';
let terms;
let categories;
let series;
function populateTermsDatalist() {
const list = document.getElementById('datalistTerms');
@ryanwi
ryanwi / builder-with-jquery.js
Last active June 27, 2021 19:56
page builder with jQuery and jQuery UI for autocomplete
'use strict';
let terms;
let categories;
let series;
const highChartConverter = (function ( $ ) {
return {
@ryanwi
ryanwi / copy-twitter-links.js
Created September 22, 2017 21:34
Copy all twitter links from a web page
@ryanwi
ryanwi / server-setup.md
Last active September 21, 2024 23:31
Setting up a new linux web server

create limited user

adduser example_user

adduser example_user sudo OR

ActionScript
Ada
Akka
AppleScript
Arc
Assembly
Boo
C
C++
C#
@ryanwi
ryanwi / postgres csv
Created February 22, 2016 00:11
Export Query Results as CSV
$ psql -d postgres://username:password@server:port/database -t -A -F"," -c "query" > output.csv
# With Chrome, go to your slack team https://*.slack.com/team
# Open JS console
copy(JSON.stringify($.map($("a[title*='Email']"), function(a) {return $(a).text()})))
require 'twitter'
# twitter app keys from dev.twitter.com
KEY = ''
SECRET = ''
TOKEN = ''
TOKEN_SECRET = ''
# Add members in batch
def add_list_members(list_slug, members)
# Install command line tools
# http://www.windowsazure.com/en-us/documentation/articles/command-line-tools/
# setup xplat-cli (Cross Platform Command Line Interface)
# http://www.windowsazure.com/en-us/documentation/articles/xplat-cli/#install
$ azure account download
$ azure account import {path to .publishsettings file}
info: Executing command account import
info: Found subscription: Windows Azure MSDN - Visual Studio Professional
info: Setting default subscription to: Windows Azure MSDN - Visual Studio Professional