Skip to content

Instantly share code, notes, and snippets.

View fakhrulhilal's full-sized avatar
🎯
Focusing

Fakhrulhilal M fakhrulhilal

🎯
Focusing
View GitHub Profile
@fakhrulhilal
fakhrulhilal / CSGODedicatedServerManager.psm1
Created July 28, 2019 12:06
Manage CS GO dedicated server using RCON protocol
using namespace System.IO
using namespace System.Net
using namespace System.Net.Sockets
class RconClient {
hidden [Socket]$_socket
hidden [int]$_id = 1
RconClient([Socket]$socket) {
$this._socket = $socket
@fakhrulhilal
fakhrulhilal / lenovo-driver
Last active September 22, 2017 14:38
Get the driver list from lenovo. Useful for creating download list with download manager and generate file checksum
(function(d, w) {
var utility = {
trim: word => word.replace(/(^\s+|\s+$)/g, ''),
empty: word => !word || /^\s*$/.test(word),
createNode: (node, text) => {
let element = d.createElement(node);
if (text) element.innerText = text;
return element;
},
toArray: list => list instanceof Array ? list : Array.prototype.slice.call(list)
@fakhrulhilal
fakhrulhilal / jslibs.js
Last active May 20, 2016 02:52
Include all most of popular javascript libraries to the web browser.
(function ($w, undefined) {
function Namespace(namespace, parent, separator) {
var parts = namespace.split(separator || '.'),
_parent = parent || window,
currentPart = '';
for (i = 0, ii = parts.length; i < ii; i++) {
currentPart = parts[i];
_parent[currentPart] = _parent[currentPart] || {};
_parent = _parent[currentPart];
}