Skip to content

Instantly share code, notes, and snippets.

go get stash.mycompany.com/project/repo
go: downloading stash.mycompany.com/project/repo v0.0.9
go get stash.mycompany.com/project/repo: stash.mycompany.com/project/repo@v0.0.9: verifying module: stash.mycompany.com/project/repo@v0.0.9: reading https://sum.golang.org/lookup/stash.mycompany.com/projecty/repo@v0.0.9: 410 Gone
server response: not found: stash.mycompany.com/project/repo@v0.0.9: unrecognized import path "stash.mycompany.com/project/repo": https fetch: Get "https://stash.mycompany.com/project/repo?go-get=1": dial tcp: lookup stash.mycompany.com on [2001:4860:4860::8888]:53: server misbehaving
apiVersion: v1
kind: PersistentVolume
metadata:
name: example-pv
spec:
capacity:
storage: 10Gi
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Delete
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: optik-testapp
namespace: optik-ae
spec:
replicas: 1
selector:
matchLabels:
app: optik-testapp
@psykidellic
psykidellic / nonworkingdatadisk.json
Last active December 4, 2018 07:09
ARM to deploy two kinds of nodex
{
"apiVersion": "[variables('apiVersion')]",
"type": "Microsoft.Compute/virtualMachines",
"name": "[concat(resourceGroup().name, '-cdh-', add(copyIndex(),1))]",
"copy": {
"name": "CDHNODEASG1",
"count": "[int(variables('Settings').nodemaxSize.size)]"
},
"location": "[variables('location')]",
"dependsOn": [
auth = Blueprint("auth", __name__)
@auth.route("/login", methods=["POST"])
def login():
"""
Logs the user in
"""
if current_user is not None and current_user.is_authenticated():
return jsonify({'username': current_user.username})
find: (type, str, callback) -> # find == search?!
if type == 'playlists'
- @fetchVideosFromPlaylist("#{str}?v=2", callback)
+ @fetchPlaylist(str, callback)
else
- @search(str, callback)
+ @find_by_id(str, callback)
+ # else
+ # @search(str, callback)
diff --git a/app/assets/javascripts/modules/models/providers/youtube.js.coffee b/app/assets/javascripts/modules/models/providers/youtube.js.coffee
index 8b8cd65..d307e46 100644
--- a/app/assets/javascripts/modules/models/providers/youtube.js.coffee
+++ b/app/assets/javascripts/modules/models/providers/youtube.js.coffee
@@ -23,7 +23,7 @@ define (require) ->
find: (type, str, callback) -> # find == search?!
if type == 'playlists'
- @fetchVideosFromPlaylist("#{str}?v=2", callback)
+ @fetchPlaylist(str, callback)
(ENV)cobra-~/src/beamtous git:(soundcloud-playlists): ./script/scrape_playlist.py 'ritesh nadhani' http://www.saavn.com/play/featured/hindi/Yesudas_Gems
Scrapinghttp://www.saavn.com/play/featured/hindi/Yesudas_Gems
Adding http://youtube.com/watch?v=GxfJmap33zg for "Chand Jaise Mukhde Pe" "Sawan Ko Aane Do" 1979
No result found for: "Chanchal Naina Mohini Chitvan" "Phulwari" 2000
No result found for: "Jab Deep Jale Aane" "Chitchor" 1976
No result found for: "Jaaneman Jaaneman Tere Do Nain" "Baton Baton Mein-Choti Si Baat-Rajnigandha-Angoor" 2005
No result found for: "Madhuban Khushboo Deta Hai (Male)" "Saajan Bina Suhagan" 1978
Adding http://youtube.com/watch?v=Y01rAQnmOqw for "Surmayee Ankhiyon Mein (Sad)" "Sadma" 1983
Adding http://youtube.com/watch?v=l_q_d8zgfto for "Aaj Se Pehle Aaj Se Jyada" "Chitchor" 1976
Adding http://youtube.com/watch?v=QHtU_jYkQks for "Aapki Mehki Huyi Zulf Ko" "Trishul" 1977
{
"response": {
"artists": [
{
"biographies": [
{
"license": {
"attribution": "Last.fm",
"attribution-url": "http://www.last.fm/music/Mubali/+wiki",
"type": "cc-by-sa",
https://soundcloud.com/reggaerajahs/pressure-drop-39-january-14th
https://soundcloud.com/reggaerajahs/pressure-drop-38-january-7th
https://soundcloud.com/reggaerajahs/pressure-drop-37-december-24th
https://soundcloud.com/reggaerajahs/pressure-drop-36-december-17th
https://soundcloud.com/reggaerajahs/pressure-drop-35-december-10th
https://soundcloud.com/reggaerajahs/pressure-drop-34-december-3rd