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
{ | |
"$schema": "http://json-schema.org/draft-07/schema#", | |
"title": "Generated schema for Root", | |
"type": "object", | |
"properties": { | |
"skills": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { |
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
#!/bin/sh | |
kubectl get pods -n NAMESPACE | grep -o -e .*${1}[\-a-z0-9]* | while read line; do kubectl logs -f $line -n NAMESPACE -c ${1} --tail 100; done |
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
$(document).ready(function() { | |
$("ytd-thumbnail").remove(); | |
$("img").remove(); | |
$("ytd-topbar-logo-renderer").remove(); | |
$(".html5-video-container").remove() | |
}) | |
$(document).scroll(function() { | |
$("ytd-thumbnail").remove(); | |
$("img").remove(); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import VueWS from 'vue-native-websocket' | |
import Observer from 'vue-native-websocket/src/Observer' | |
import App from './App' | |
import store from './store' | |
const wsOptions = {store: store, format: 'json'} | |
Vue.use(VueWS, "myWsEndpoint", wsOptions) |
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
require "oga" | |
input = "" # sms backup xml file | |
output = "" #sms export txt file | |
file = File.open(input, "r:UTF-8") | |
from_hash = {"1" => "From", "2" => "Me"} | |
messages = [] | |
document = Oga.parse_xml(file) | |
document.xpath("allsms/sms").each do |node| | |
messages << "#{from_hash[node.get(:type)]} (#{node.get(:time)}): #{node.get(:body)}".encode("UTF-8") |
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
#!/usr/bin/env ruby | |
FORBIDDEN_WORDS = ['Table of contents', 'define', 'pragma'].freeze | |
def should_skip_line?(line) | |
!line.start_with?("#") || FORBIDDEN_WORDS.any? { |word| line =~ /#{word}/ } | |
end | |
File.open(ARGV[0], 'r') do |f| | |
in_code_block = 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
require "ruby-prof" | |
result = RubyProf.profile do | |
# code here | |
end | |
printer = RubyProf::CallTreePrinter.new(result) | |
printer.print(File.open("output", "w+")) |
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
https://www.dropbox.com/s/yvhfbies1ubcn9a/ConfigAuxPetitsOignons.terminal?dl=0 |
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
git submodule init | |
git submodule add git://github.com/tpope/vim-fugitive.git bundle/vim-fugitive | |
git commit -m 'Added vim-fugitive' | |
git push |
NewerOlder