Skip to content

Instantly share code, notes, and snippets.

View puryfury's full-sized avatar
👁️
Watching you

(Ծ‸ Ծ) puryfury

👁️
Watching you
View GitHub Profile
@puryfury
puryfury / rename.sh
Created May 24, 2021 13:14
A one-liner shell that rename original file name from URL encoded file name.
# rename uel encoded file to original from files start with '%' in current directory.
for old in \%*; do new=$(echo $old | sed "s@+@ @g;s@%@\\\\x@g" | xargs -0 printf "%b"); mv -- "$old" "$new"; done
@puryfury
puryfury / expapp.sh
Last active May 29, 2022 12:52
Exclude from Gatekeeper quarantine in your downloaded app file for testing your app.
#!/bin/bash
alias napp='xattr -cr'
expapp() {
if [ -z "$1" ]; then
echo "usage: [sudo] exapp /Applications/Some.app"
return 1
fi
if [ "$EUID" -ne 0 ]
@puryfury
puryfury / google.search.xml
Last active June 24, 2018 10:59
OpenSearch for Google without country redirection
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/">
<ShortName>Google NCR Search</ShortName>
<Description>Google NCR Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="32" height="32" type="image/png">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEHklEQVRYhb2WXWwUVRTH56XBotQn33wQBXlTov3gQWtErKB9IGkptPYBxYox6INRa0LQQELRYqEJ8NAPLMQ0bCuBVqzQZhGpH91YJGYJaYMW0O1XZnb6xc7u7Nxz9u+D203vzGx3tlZPcl723j2///m4d66ieDRd1/OIqIqIWolokJl1ZraSHiaiweRapa7reV7jZjTTNNcRURszx+DRmDlKRCdN01y7ZDCAlUKIBmYmr2AXIUIIcTgUCuVmm/XjzHxzqWAXIUHTNNd4gluW9RQza26BaHwURvsXmHn/bYS3bYZasgHqi0UIl5Vg+r23YJxuBo3+lU6ECmC9l8wdcJoYw+z+j6BuKoT6QsHivqkQs598CJoYcxWRthKTk5P3u5U91tcD7ZXizGCba6XPwbzS59oO15kQQjTYNxtnTmUNXuhz9ftd2yGEqLeXfp192mN9PWkDT9VUItJyDLFvziHWcx6RluOYerNKhh+pAxKJdPMgpFYQUZvU8/FRaC8/6wDr1VsRvxZwDQoA8cEBhHeU4t7xz9PuSTGIWhVFURQAD9ovmUjjOw749J7XkJibyxg4YUQy7gEAZjY0TVulEFGVFCA6AtG7ArO1j6Tg4W2bwTNTngJnY0S0XSGiVknZnToIfw6EPwf
@puryfury
puryfury / google.global.url
Created November 27, 2017 14:38
Google bypass geolocation based search for IE or Firefox.
http://ready.to/search/en/?sna=Google%20Global&prf=https%3A%2F%2Fencrypted.google.com%2Fsearch%3Fgl%3Dus%26amp%3Bhl%3Dko%26amp%3Bq%3D&opt=%26lt%3Bsite%26gt%3Bhttps%3A%2F%2Fencrypted.google.com%2F%3Fgl%3Dus%26amp%3Bhl%3Dko%26lt%3B%2Fsite%26gt%3B&img=R0lGODlhEAAQAPcAAABjpQCExgghOQgxYwg5cwhKhAhSjBAxShA5WhBCaxghIRhCcxhKcxhSexhanCEYGCEYOSFCYyFShCFjjCFjlCkpKSlrrSl7tSmczjEpQjk5Sjl7nDmczkIYEEIpMUIxSkJCWkJSSkJznEohIUo5OUpCUkpSY0pja0pjc1IhMVKUvVpzc1ql1mOElGOUtWs5KWtra2trhGtzWmtzjGucvXNCKXNKMXNjc3sQEHtzc3u91oRaKYSEjISMnIxzhJQQAJQxKZRKIZRKMZSMY5SMnJSUjJxze5yltaUQCKVrMaVrY6Wtta0hCK1SGK2MY62tpa21vbVjIbWttb0xCL05GL2MUr2cnL21tcZCEMZrKcZzUsZ7Kca9vc5KEM5aIc5aKc5zGM6EOdZaENZjKdZjMdbGa95jGN5rEN5zGN57Kd6ESt6EUt6cMd6cQud7GOd7IeeEIeeEKeeMIeeMKeeUKeeUMeeUQuecMeelMeetOe97GO+EKe+MOe+cMe+cUu+1Oe+9Su+9lPfGQvfGSvfWWv+tQv/OQv/OSv/OUv/WWv/WY//eY///AP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
@puryfury
puryfury / IropkeBatangM.css
Last active April 18, 2021 08:10
이롭게바탕체 바로쓰는거
/*
* Iropke Batang (Korean)
* http://font.iropke.com/batang/
*/
@font-face {
font-family: 'Iropke Batang';
font-style: normal;
font-weight: 400;
src: url(https://cdn.rawgit.com/iropke/font-iropke-batang/b8f2ad27/IropkeBatangM.eot);
src: url(https://cdn.rawgit.com/iropke/font-iropke-batang/b8f2ad27/IropkeBatangM.eot?#iefix) format('embedded-opentype'),
@puryfury
puryfury / Startup.cs
Created June 21, 2016 13:20
ASP.NET Core MVC Static page route like ASP.NET Web Pages
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
@puryfury
puryfury / Startup.cs
Created May 17, 2013 17:21
Nancy Manage static contents with hooking builder that add a header when request static content.
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using CustomerWanso.Defined;
using Nancy;
using Nancy.Conventions;
@puryfury
puryfury / Startup.cs
Created May 17, 2013 12:06
Nancy.ErrorHandling.IStatusCodeHandler implementation example (Rendering as Razor View error page)
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Reflection;
using System.Text;
using System.Web;
using CustomerWanso.Defined;
@puryfury
puryfury / Statup.cs
Created May 17, 2013 12:03
Nancy Ninject Bootstrapper DAO Inject Example
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
using System.Reflection;
using System.Text;
using System.Web;
using CustomerWanso.Defined;
@puryfury
puryfury / DBConn.cs
Created May 17, 2013 11:59
Nancy Firebird Embedded DB Access Base Example
using System;
using System.Configuration;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.IO;
using System.Reflection;
using System.Web;
using FirebirdSql.Data.FirebirdClient;