Skip to content

Instantly share code, notes, and snippets.

View fallen90's full-sized avatar
🏠
Working from home

fallen90

🏠
Working from home
View GitHub Profile
@fallen90
fallen90 / download-vs-code-server.sh
Last active December 13, 2023 15:57 — forked from b01/download-vs-code-server.sh
Linux script to download latest VS Code Server, good for Docker (tested in Alpine).
#!/bin/sh
# Copyright 2023 Khalifah K. Shabazz
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the “Software”),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
import React from 'react';
class MicroFrontend extends React.Component {
componentDidMount() {
const { name, host, document } = this.props;
const scriptId = `micro-frontend-script-${name}`;
if (document.getElementById(scriptId)) {
this.renderMicroFrontend();
return;
{
"general": {
"download_dir": "/tmp/downloads",
"db_path": "/tmp/downloads.db",
"log_size": 999
},
"server": {
"host": "0.0.0.0",
"port": 5656
},
const getObj = function(){}
const jslDisable = function(){}
@fallen90
fallen90 / download-books.js
Last active June 17, 2021 17:22
Download books in m.wuxiaworld.co, not to be confused with the official Wuxiaworld.
/**
* Fetches book contents from m.wuxiaworld.co,
* and prepare it for Calibre import.
*
* To create great eBooks with Calibre, do the ff:
* - Open Calibre
* - Ctrl-Shift-E or click `Add books` Dropdown and select `Add Empty Book`
* - Set Details to your book, and select AZW3 (for kindle) or ePub, I set it to AZW3 for my Paperwhite
* - Right-click the book you just created and click `Edit book`
* - In the File Browser panel, remove `part0000.html` in the Text node.
@fallen90
fallen90 / styles.css
Last active April 23, 2019 11:41 — forked from mohammedzamakhan/styles.css
styles.css for VSCODE custom css loader
/** italics **/
[data-mode-id="typescript"] .mtki {
font-family: 'Gochi Hand';
font-weight: 600;
font-size: 21px;
font-style: normal;
}
[data-mode-id="typescript"] .mtk3.mtki {
color: #b5b5b5 !important;
@fallen90
fallen90 / .zshrc
Created March 26, 2019 01:47
Sample zshrc with aliases
## Alias functions
copyToClipboard(){
# requires xclip
xclip -sel c < $1
}
gotoProjects(){
cd "/home/fallen90/Projects/${1}"
}
gotoGoProjects(){
<?php
include("itexmo.class.php");
$itexmo = new iTexMo("API_CODE");
//SEND SMS
echo $itexmo->sendSMS("Number", "MESSAGE");
//LIST OUTGOING SMS
echo $itexmo->listOutgoingSMS();
<?php
class iTextMo {
protected $API_CODE = "";
protected $API_BASE = "https://www.itexmo.com/php_api/";
protected $API_ENDPOINTS = array(
'SEND_SMS' => 'api.php',
'GET_INFO' => 'apicode_info.php',
'LIST_OUTGOING' => 'display_outgoing.php',
'SERVER_STATUS' => 'serverstatus.php',
'CLEAR_OUTGOING' => 'delete_outgoing_all.php'
[
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Build Succeeded"
}
},
{
"type": "section",