This file contains 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
sudo apt update | |
sudo apt install build-essential | |
asdf plugin-add rust https://github.com/asdf-community/asdf-rust.git | |
asdf install rust |
This file contains 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
;K Line Test created by Sebastianv650 | |
; from https://mattshub.com/2017/10/02/linear-advance/ | |
; updated for PETG temperatures by luisdelarosa (@louielouie) | |
; hotend 240C | |
; bed 85C | |
M107 | |
M83 ; extruder relative mode | |
M104 S240 ; set extruder temp | |
M140 S85 ; set bed temp |
This file contains 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
ansible all -m ping | |
ansible all -a "/bin/echo hello" |
This file contains 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
$ sudo apt-get install software-properties-common | |
$ sudo apt-add-repository ppa:ansible/ansible | |
$ sudo apt-get update | |
$ sudo apt-get install ansible |
This file contains 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
# Add this snippet to the top of your playbook. We'll refer to this as "your-playbook.yml" | |
# It will install python2 if missing (but checks first so no expensive repeated apt updates) | |
# [email protected] | |
# Assumes that you are not running as root | |
# Run via: "ansible-playbook --ask-become-pass your-playbook.yml" | |
# v1.1 by [email protected] / @louielouie | |
- hosts: all | |
gather_facts: False | |
This file contains 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
package Reddit; | |
import java.util.LinkedList; | |
import java.util.List; | |
import com.google.gson.Gson; | |
import com.google.gson.JsonArray; | |
import com.google.gson.JsonElement; | |
import com.google.gson.JsonObject; | |
import com.google.gson.JsonParser; |
This file contains 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
grep -R subspec * | cut -d' ' -f1 | uniq -c | sort |
This file contains 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
package com.example.frequencytest; | |
import android.app.Activity; | |
import android.graphics.Bitmap; | |
import android.graphics.Canvas; | |
import android.graphics.Color; | |
import android.graphics.Paint; | |
import android.media.AudioFormat; | |
import android.media.AudioRecord; | |
import android.media.MediaRecorder; |
This file contains 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
pod 'RestKit', :podspec => 'local/path/to/RestKit.podspec' |
This file contains 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
if(mLiveCard == null){ | |
//Publish your card | |
}else{ | |
mLiveCard.unpublish(); | |
//Set liveCard's view | |
mLiveCard.setNonSilent(true); | |
mLiveCard.publish(); | |
} |
NewerOlder