Skip to content

Instantly share code, notes, and snippets.

View apriady's full-sized avatar

Achmad Apriady apriady

View GitHub Profile
@DavidWells
DavidWells / clear-browser-cache.js
Last active February 24, 2021 09:55
Clear Browser cache. Run in your browsers javascript console
//Cache Buster
(function (){
  var rep = /.*\?.*/,
      links = document.getElementsByTagName('link'),
      scripts = document.getElementsByTagName('script'),
      process_scripts = false;
  for (var i=0;i<links.length;i++){
    var link = links[i],
        href = link.href;
    if(rep.test(href)){
@powerc9000
powerc9000 / creating_ios_archives.md
Created July 19, 2016 06:10
Creating and uploading iOS archives from the command line.

I don't like IDEs. I want to code in my editor and use the command line for everything else. I like the flow better and it feels faster to me.

I also like to have one command to do several things I want to do.

I don't want to open Xcode to create an archive, then open the archive window, then upload the archive to iTunes. It's slow and breaks my flow.

Also, in react native, it's trivial to build Android releases on the command line. I want to create and upload both iOS and android from the command line.

So after hours of searching the internet I found a flow I like for creating and uploading archives for iOS all from the command line

@rlindgren
rlindgren / storage.js
Last active May 3, 2019 14:04
Nedb storage adapter for use with the cordova-file-plugin. Drop in replacement for the browser-version. To install pre-built Nedb for use with cordova-file-plugin, see here: https://github.com/rlindgren/nedb-cordova-file
/**
* Way data is stored for this database
* For a Node.js/Node Webkit database it's the file system
* For a browser-side database it's the device file system, exposed via the `cordova-file` plugin
*
* This version is the browser version
*/
var storage = {};
@naveenccmsd
naveenccmsd / app.yaml
Created January 26, 2018 17:13 — forked from aprln/app.yaml
app.yaml for Google App Engine hosting Vue apps built with Quasar framework. Put this file in the "dist" folder then run "gcloud app deploy" inside the "dist" folder.
runtime: php55
api_version: 1
threadsafe: true
default_expiration: "5m"
handlers:
- url: /(.*\.(appcache|manifest))
mime_type: text/cache-manifest
static_files: \1
@dideler
dideler / bot.rb
Last active November 9, 2024 11:37
Sending a notification message to Telegram using its HTTP API via cURL
# Use this script to test that your Telegram bot works.
#
# Install the dependency
#
# $ gem install telegram_bot
#
# Run the bot
#
# $ ruby bot.rb
#
@seahorsepip
seahorsepip / README.md
Last active March 22, 2024 15:30
Reverse SSH tunnel NGINX config script

To be used with /etc/ssh/sshd_config ForceCommand.

Requirements:

Example usage: