Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
🇵🇭

I'M YourOnly.One techmagus

💭
🇵🇭
View GitHub Profile
@bagder
bagder / trrprefs.md
Last active Sep 19, 2022
This once held TRR prefs. Now it has moved.
View trrprefs.md

NOTE

This content has moved.

Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!

View archivedl.php
#!/usr/bin/php
<?php
declare(strict_types = 1);
// require_once ('hhb_.inc.php');
hhb_init ();
if ($argc !== 3) {
fprintf ( STDERR, "usage: %s timestamp url\n", $argv [0] );
fprintf ( STDERR, "example: %s 20091012061648 http://www.p4w.se\n", $argv [0] );
die ( 1 );
}
@Pulimet
Pulimet / AdbCommands
Last active Sep 29, 2022
Adb useful commands list
View AdbCommands
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader
@techmagus
techmagus / keybase.md
Last active Jun 3, 2017
Keybase verification
View keybase.md

Keybase proof

I hereby claim:

  • I am techmagus on github.
  • I am yukino (https://keybase.io/yukino) on keybase.
  • I have a public key whose fingerprint is CDB7 5E8E 8397 0FE2 8887 A05A DF3B 8EBF D250 A680

To claim this, I am signing this object:

@revelt
revelt / Hugo — Replace dashes on taxonomy terms
Created Jun 19, 2016
When your Hugo taxonomy term consists of multiple words, it will be shown with dashes. Here's how to restore spaces.
View Hugo — Replace dashes on taxonomy terms
<a href="/categories/{{ $name | urlize }}">{{ replace $name "-" " " }}</a>
@d1manson
d1manson / BlobWorker.js
Last active Jun 27, 2018
Using an HTML5 Blob, you can get around the same-origin security restriction for Web Workers. The only slight complication is the need to return a Worker-like interface synchrounously. But this is actually fairly simple. Requires jQuery $ for ajax call. IE doesn't permit making workers from blob-urls, but other browsers do.
View BlobWorker.js
Worker = (function(){
var nativeWorker = Worker;
var BlobWorker = function(){
this.queuedCallList = [];
this.trueWorker = null;
this.onmessage = null;
}
BlobWorker.prototype.postMessage = function(){
if(this.trueWorker)
@andrewlkho
andrewlkho / gist:7373190
Last active Sep 23, 2022
How to use authentication subkeys in gpg for SSH public key authentication
View gist:7373190

GPG subkeys marked with the "authenticate" capability can be used for public key authentication with SSH. This is done using gpg-agent which, using the --enable-ssh-support option, can implement the agent protocol used by SSH.

Requirements

A working gpg2 setup is required. It may be possible to use gpg 1.4 but with gpg-agent compiled from gpg2. If you are using OS X 10.9 (Mavericks) then you may find the instructions [here][1] useful.

@jdevalk
jdevalk / gist:5623050
Created May 21, 2013
Redirect script sample NGINX code. Make sure this location line sits above the "location /" code in your NGINX config.
View gist:5623050
location /redirect/ {
rewrite ^/redirect/(.*)$ /redirect/index.php?id=$1 last;
}
@jdevalk
jdevalk / .htaccess
Last active Jun 24, 2022
These three files together form an affiliate link redirect script.
View .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteRule (.*) ./index.php?id=$1 [L]
</IfModule>
@lancejpollard
lancejpollard / meta-tags.md
Created Mar 5, 2012
Complete List of HTML Meta Tags
View meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">