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
set history=500 | |
" Enable filetype plugins | |
filetype plugin on | |
filetype indent on | |
" Set to auto read when a file is changed from the outside | |
set autoread | |
" With a map leader it's possible to do extra key combinations | |
" like <leader>w saves the current file | |
let mapleader = " " | |
" highlights the current line |
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/bash | |
# Usage: sudo switch_ssh "file-prefix" | |
# Example: | |
# Files "my-project-id_rsa", "my-project-config" exist in ~/.ssh | |
# "sudo switch_ssh my-project" | |
# "my-project-id_rsa" is copied to "id_rsa", "my-project-config" is copied to "config" | |
cd ~/.ssh |
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 python | |
import flickrapi | |
import requests | |
import os | |
import re | |
FLICKR_KEY = "your api key" | |
FLICKR_SECRET = "your api secret" | |
USER_ID = "your user id" |
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
<?php | |
$curl = curl_init(); | |
curl_setopt_array($curl, array( | |
CURLOPT_RETURNTRANSFER => 1, | |
CURLOPT_URL => 'https://lamproslabs.com', | |
CURLOPT_CONNECTTIMEOUT => 10 | |
)); | |
$data = curl_exec($curl); |