Skip to content

Instantly share code, notes, and snippets.

View yannlugrin's full-sized avatar

Yann Lugrin yannlugrin

View GitHub Profile
@yannlugrin
yannlugrin / settings.json
Last active July 7, 2020 11:32
windows-terminal
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@yannlugrin
yannlugrin / main.ars
Last active July 6, 2019 10:02
Origins Discord ARS
[INFO]
____ _ _
/ __ \ (_) (_)
| | | |_ __ _ __ _ _ _ __ ___
| | | | '__| |/ _` | | '_ \/ __|
| |__| | | | | (_| | | | | \__ \
\____/|_| |_|\__, |_|_| |_|___/
__/ |
|___/
--------------------------------------------------------------------------------
@yannlugrin
yannlugrin / gnwarf.json
Last active June 24, 2019 18:14
vanilla-questing.me route including Darnassus reputation
{
"path": [
{
"zone": "morogh",
"experience": 5.67,
"waypoints": [
{
"coords": { "x": 34, "y": 72 },
"align": "bottom",
"header": "coldridge pass enterance",

Keybase proof

I hereby claim:

  • I am yannlugrin on github.
  • I am yannlugrin (https://keybase.io/yannlugrin) on keybase.
  • I have a public key ASAcwo8f-iwnoC_sfojB_Yz_ZssA9NA33e9ofRiA88jNVQo

To claim this, I am signing this object:

@yannlugrin
yannlugrin / update-dnsimple.plist
Last active October 13, 2016 16:05
Update DNSimple record with current ip (dynamic DNS).
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>io.yalty.update-dnsimple</string>
<key>ProgramArguments</key>
<array>
<string>sh</string>
<string>/.../update-dnsimple.sh</string>
var DateHelper = {
// Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time
// Ruby strftime: %b %d, %Y %H:%M:%S GMT
time_ago_in_words_with_parsing: function(from) {
var date = new Date;
date.setTime(Date.parse(from));
return this.time_ago_in_words(date);
},
time_ago_in_words: function(from) {
Dir[Rails.root.join('**', '*.rb')].each do |f|
c = File.open(f).read
File.open(f, 'w').write("# encoding: UTF-8\n" + c)
end
class LifeGame
attr_reader :matrix
def initialize(string)
@matrix = string_to_matrix(string)
end
def iterate
old_matrix = Marshal.load(Marshal.dump(matrix))
matrix.each_index do |y|
Host srv1
Hostname srv1.client.fr
User root
ProxyCommand ssh firewall nc %h %p
Host srv2
Hostname srv2.client.fr
User root
ProxyCommand ssh firewall nc %h %p
require 'rake/packagetask'
Rake::PackageTask.new("myapp", "1.2.3") do |p|
p.need_tar_bz2 = true
p.package_files.include("README")
p.package_files.include("lib/**/*.rb")
end