Skip to content

Instantly share code, notes, and snippets.

View Cxarli's full-sized avatar
🔓
'; DROP TABLE bugs --

Charlie Cxarli

🔓
'; DROP TABLE bugs --
View GitHub Profile
@Cxarli
Cxarli / glutin version tree
Last active September 21, 2017 17:21
Glutin v0.9.2 version tree
$ cargo tree -p glutin # https://github.com/sfackler/cargo-tree
glutin v0.9.2
├── lazy_static v0.2.8
├── libc v0.2.31
├── osmesa-sys v0.1.2
│ └── shared_library v0.1.7
│ ├── lazy_static v0.2.8 (*)
│ └── libc v0.2.31 (*)
├── shared_library v0.1.7 (*)
@Cxarli
Cxarli / recently updated packages
Created September 10, 2017 15:03
recently updated packages
[2017-09-09 13:09] [ALPM] upgraded linux-api-headers (4.10.1-1 -> 4.12.7-1)
[2017-09-09 13:09] [ALPM] upgraded glibc (2.25-7 -> 2.26-3)
[2017-09-09 13:09] [ALPM] upgraded gcc-libs (7.1.1-4 -> 7.2.0-2)
[2017-09-09 13:09] [ALPM] upgraded ncurses (6.0+20170527-1 -> 6.0+20170902-1)
[2017-09-09 13:09] [ALPM] upgraded android-tools (8.0.0_r4-1 -> 8.0.0_r4-2)
[2017-09-09 13:09] [ALPM] upgraded babl (0.1.24-1 -> 0.1.30-1)
[2017-09-09 13:09] [ALPM] upgraded binutils (2.28.0-4 -> 2.29.0-1)
[2017-09-09 13:09] [ALPM] upgraded p11-kit (0.23.7-1 -> 0.23.8-1)
[2017-09-09 13:09] [ALPM] upgraded expat (2.2.3-1 -> 2.2.4-1)
[2017-09-09 13:09] [ALPM] upgraded libxml2 (2.9.5rc2+0+g69936b12-1 -> 2.9.5+6+g07e227ed-1)
@Cxarli
Cxarli / glxinfo output
Created September 10, 2017 14:49
glxinfo output
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample,
GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile,
#!/bin/fish
set cookie (nget -l 11 -- -S 2>&1 | grep Set-Cookie | sed -E 's/.+data=([a-zA-Z0-9%]+).*/\1/g' | urldecode)
echo "Cookie: $cookie" >&2
set file (mktemp "XXXXXXXX.php")
set tmp_file (mktemp "XXXXXXXX.php")
@Cxarli
Cxarli / main.lisp
Last active February 22, 2017 23:18
;; Constants
;;; TICK: The time between renders
(setf TICK 0.5)
;; Symbols
(setq WALL '\#)
(setq PEMP '\ )
(setq PDOT '\.)
(setq PILL '*)
#include <iostream>
int main(void);
// Yes I know they have the same value, but the name is different
#define _UNDEF ( (uint32_t) ~0 )
#define _DONE ( (uint32_t) ~0 )
using System;
namespace Test {
class MainClass {
public static void Main(string[] args) {
Student charlie = new Student ("Charlie", 7);
charlie.WhoAreYou();
}
}
@Cxarli
Cxarli / StringPlusTest.php
Last active April 27, 2016 19:43
A tester for StringPlus.php
<?php
include 'StringPlus.inc';
$string = new StringPlus("Hello World");
print strval($string) . "\n";
print "\n--- contains \n";
print new StringPlus($string->contains("o W")) . "\t[true]\n";
print new StringPlus($string->contains("o W", true)) . "\t[true]\n";
@Cxarli
Cxarli / StringPlus.php
Created April 27, 2016 19:42
A PHP framework for making it easier to do common string functions
<?php
class StringPlus {
public $str = '';
public function __construct($string) {
// Convert booleans
if ( $string === true ) {
$this->str = "true";
} else if ($string === false) {
$this->str = "false";
@Cxarli
Cxarli / atom-updater.sh
Created March 14, 2016 17:28
Atom Updater
#!/bin/bash
downloadurl=`curl -i "https://atom.io/download/deb" 2>/dev/null | grep "Location: " | cut -d' ' -f2 `
version=`echo "$downloadurl" | grep -Eo "v([0-9]+\.){1,}[0-9]+"`
# Check if file exists
if [ -e .atom-version ]; then
curver=`cat .atom-version`
else
curver="unknown"