Skip to content

Instantly share code, notes, and snippets.

View thilinag's full-sized avatar

Thilina Gunasekara thilinag

View GitHub Profile
@thilinag
thilinag / change-ubuntu-default-sinhala-font.md
Last active December 2, 2022 15:56
Change default sinhala font in Ubuntu
  1. Download your favourite sinhala font and add it to /usr/share/fonts/ eg: https://fonts.google.com/noto/specimen/Noto+Sans+Sinhala

  2. Create ~/.config/fontconfig/conf.d/50-custom-si.conf and add below content. (Replace Noto Sans Sinhala with your downloaded font family)

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="font">
 
@thilinag
thilinag / surge.php
Created May 12, 2017 10:19
Check surge multiplier
<?php
$ch = curl_init();
$headers[] = "Authorization: Token YOUR_TOKEN";
$headers[] = "Accept-Language: en_US";
$headers[] = "Content-Type: application/json";
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);