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
| # On the host to run the container | |
| docker run --privileged -i -t -v ~/host-folder-to-mount:/root/folder-ro:ro ubuntu | |
| # Inside the container | |
| # Need to create the upper and work dirs inside a tmpfs. | |
| # Otherwise OverlayFS complains about AUFS folders. | |
| mkdir -p /tmp/overlay && \ | |
| mount -t tmpfs tmpfs /tmp/overlay && \ | |
| mkdir -p /tmp/overlay/{upper,work} && \ | |
| mkdir -p /root/folder && \ |
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 | |
| set -euo pipefail | |
| $REPO_DIR=~/devel | |
| repos="1password bitwarden dashlane lastpass opvault passwordbox roboform stickypassword truekey zoho-vault" | |
| # pull all repos | |
| ( | |
| for repo in $repos; do | |
| echo $repo |
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
| -- Copyright (C) 2017 Dmitry Yakimenko (detunized@gmail.com). | |
| -- Licensed under the terms of the MIT license. See LICENCE for details. | |
| -- Duplicate line Far Manager editor macro | |
| Macro { | |
| description = "Duplicate line"; | |
| area = "Editor"; | |
| key = "CtrlD"; | |
| action=function() |
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 ruby | |
| # This script sorts static libraries in the topological order suitable for | |
| # passing to ld. No need for --start-group/--end-group anymore. Should speed | |
| # up the linking a bit. When the libraries contain actual circular dependecies | |
| # the script will detect minimal groups of those and surround them with | |
| # --start-group/--end-group. | |
| # | |
| # To run you need Linux (maybe OS X), Ruby 1.9+ and the rgl gem installed: | |
| # |
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
| global_variables.sort.each do |name| | |
| puts "#{name}: #{eval "#{name}.inspect"}" | |
| end |
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
| // Copyright (C) 2019 Dmitry Yakimenko (detunized@gmail.com). | |
| // Licensed under the terms of the MIT license. See LICENCE for details. | |
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.CSharp.Syntax; |
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
| // (c) 2011 detunized (http://detunized.net) | |
| // Paste the shader below into http://www.iquilezles.org/apps/shadertoy/?p=deform | |
| // Click and drag the mouse around | |
| #ifdef GL_ES | |
| precision highp float; | |
| #endif | |
| uniform vec2 resolution; | |
| uniform vec4 mouse; |
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
| require "open-uri" | |
| def github_activity username | |
| open("https://github.com/#{username}") { |io| io.read } | |
| .scan(/fill="#(.{6})" data-count="(\d+)"/) | |
| .map { |i| {color: i[0], value: i[1].to_i} } | |
| end | |
| p github_activity "your-username" |
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 | |
| cd '/Library/Application Support/Pulse Secure/Pulse' | |
| sudo sed -i '' \ | |
| s'/connection-policy-override: "false"/connection-policy-override: "true"/' \ | |
| connstore.dat | |
| sudo killall PulseTray 'Pulse Secure' dsAccessService |
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
| // Copyright (C) 2019 Dmitry Yakimenko (detunized@gmail.com). | |
| // Licensed under the terms of the MIT license. See LICENCE for details. | |
| using System; | |
| using System.IO; | |
| using System.Linq; | |
| using Microsoft.CodeAnalysis; | |
| using Microsoft.CodeAnalysis.CSharp; | |
| using Microsoft.CodeAnalysis.CSharp.Syntax; |
NewerOlder